diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-01 21:57:20 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-01 21:57:20 +0000 |
commit | 243aa7b95cc15352dbc7b8f87a7c77e8c135c897 (patch) | |
tree | 5bca69a66897855f5561594d59a51eaddca15675 /etc | |
parent | ab72b53b9be62fd723a9ed921a326bd02c9dcc3a (diff) | |
download | pfsense-243aa7b95cc15352dbc7b8f87a7c77e8c135c897.zip pfsense-243aa7b95cc15352dbc7b8f87a7c77e8c135c897.tar.gz |
Add patches from databeestje which:
This will supress ARP messages when interfaces share the same physical network
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 58e3794..6b14f16 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -619,11 +619,25 @@ function system_set_harddisk_standby() { } function system_setup_sysctl() { + global $config; + $sysctl = return_filename_as_array("/etc/sysctl.conf"); foreach($sysctl as $sysc) { if($sysc <> "") mwexec("sysctl {$sysc}"); } + if (isset($config['system']['sharednet'])) { + system_disable_arp_wrong_if(); + } +} + +function system_disable_arp_wrong_if() { + mwexec("/sbin/sysctl -n net.link.ether.inet.log_arp_wrong_iface=0"); } +function system_enable_arp_wrong_if() { + mwexec("/sbin/sysctl -n net.link.ether.inet.log_arp_wrong_iface=1"); +} + + ?> |