$config['system']['disablelargereceiveoffloading'] = true; } elseif (isset($config['system']['disablelargereceiveoffloading'])) { unset($config['system']['disablelargereceiveoffloading']); } if (!empty($_POST['disablevlanhwfilter'])) { $config['system']['disablevlanhwfilter'] = true; } elseif (isset($config['system']['disablevlanhwfilter'])) { unset($config['system']['disablevlanhwfilter']); } if (count($input_errors) == 0) { setup_polling(); if (isset($config['system']['sharednet'])) { system_disable_arp_wrong_if(); } else { // system_enable_arp_wrong_if set_sysctl(array("net.link.ether.inet.log_arp_wrong_iface" => "1", "net.link.ether.inet.log_arp_movements" => "1")); } setup_microcode(); write_config(); $savemsg = get_std_save_message(); prefer_ipv4_or_ipv6(); filter_configure(); } } legacy_html_escape_form_data($pconfig); include "head.inc"; ?> <body> <?php include "fbegin.inc";
function system_enable_arp_wrong_if() { set_sysctl(array("net.link.ether.inet.log_arp_wrong_iface" => "1", "net.link.ether.inet.log_arp_movements" => "1")); }