mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
system: remove system_arp_wrong_if() in favour of #5467
It applies all sysctls on interfaces settings save but there isn't much of a point splitting the functionality or hardcoding yet another spot with the required sysctls.
This commit is contained in:
parent
8c71359163
commit
766dc45283
@ -116,6 +116,8 @@ function get_default_sysctl_value($id)
|
||||
'net.link.bridge.pfil_local_phys' => '0',
|
||||
'net.link.bridge.pfil_member' => '1',
|
||||
'net.link.bridge.pfil_onlyip' => '0',
|
||||
'net.link.ether.inet.log_arp_movements' => isset($config['system']['sharednet']) ? '0' : '1',
|
||||
'net.link.ether.inet.log_arp_wrong_iface' => isset($config['system']['sharednet']) ? '0' : '1',
|
||||
'net.link.tap.user_open' => '1',
|
||||
'net.link.vlan.mtag_pcp' => '1',
|
||||
'net.local.dgram.maxdgram' => '8192',
|
||||
@ -147,6 +149,8 @@ function system_sysctl_required()
|
||||
'net.inet.ip.intr_queue_maxlen',
|
||||
'net.inet6.ip6.forwarding',
|
||||
'net.inet6.ip6.intr_queue_maxlen',
|
||||
'net.link.ether.inet.log_arp_movements',
|
||||
'net.link.ether.inet.log_arp_wrong_iface',
|
||||
'net.link.vlan.mtag_pcp',
|
||||
'net.local.dgram.maxdgram',
|
||||
'net.route.multipath',
|
||||
@ -800,23 +804,12 @@ function system_sysctl_configure($verbose = false)
|
||||
}
|
||||
|
||||
set_sysctl(system_sysctl_get());
|
||||
system_arp_wrong_if();
|
||||
|
||||
if ($verbose) {
|
||||
echo "done.\n";
|
||||
}
|
||||
}
|
||||
|
||||
function system_arp_wrong_if()
|
||||
{
|
||||
global $config;
|
||||
|
||||
set_sysctl(array(
|
||||
'net.link.ether.inet.log_arp_wrong_iface' => isset($config['system']['sharednet']) ? '0' : '1',
|
||||
'net.link.ether.inet.log_arp_movements' => isset($config['system']['sharednet']) ? '0' : '1',
|
||||
));
|
||||
}
|
||||
|
||||
function system_kernel_configure($verbose = false)
|
||||
{
|
||||
global $config;
|
||||
|
||||
@ -246,7 +246,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
write_config();
|
||||
interface_dhcpv6_configure('duidonly', null); /* XXX refactor */
|
||||
system_arp_wrong_if();
|
||||
system_sysctl_configure();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user