system: bootstrap a default value and always apply #3806

So that users are not seeing issues because they haven't done a
config reset yet.  It also allows us to bump the default again
if needed.
This commit is contained in:
Franco Fichtner 2019-11-14 09:23:36 +01:00
parent 8917f1c06f
commit 4a4d72afd8
2 changed files with 3 additions and 1 deletions

View File

@ -208,7 +208,7 @@
<item>
<descr><![CDATA[Maximum outgoing UDP datagram size]]></descr>
<tunable>net.local.dgram.maxdgram</tunable>
<value>8192</value>
<value>default</value>
</item>
</sysctl>
<system>

View File

@ -106,6 +106,7 @@ function get_default_sysctl_value($id)
'net.link.bridge.pfil_member' => '1',
'net.link.bridge.pfil_onlyip' => '0',
'net.link.tap.user_open' => '1',
'net.local.dgram.maxdgram' => '8192',
'security.bsd.see_other_gids' => '0',
'security.bsd.see_other_uids' => '0',
'vfs.read_max' => '32',
@ -128,6 +129,7 @@ function system_sysctl_get()
'net.enc.in.ipsec_filter_mask' => '2', /* after processing */
'net.enc.out.ipsec_bpf_mask' => '1', /* before processing */
'net.enc.out.ipsec_filter_mask' => '1', /* before processing */
'net.local.dgram.maxdgram' => 'default',
);
if (isset($config['sysctl']['item'])) {