summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-01 21:57:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-01 21:57:20 +0000
commit243aa7b95cc15352dbc7b8f87a7c77e8c135c897 (patch)
tree5bca69a66897855f5561594d59a51eaddca15675 /etc
parentab72b53b9be62fd723a9ed921a326bd02c9dcc3a (diff)
downloadpfsense-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.inc14
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");
+}
+
+
?>
OpenPOWER on IntegriCloud