diff options
author | Ermal <eri@pfsense.org> | 2010-09-03 17:59:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-03 17:59:49 +0000 |
commit | e49a2031bd2c3c4b79660b671c7b592d199446f7 (patch) | |
tree | 147f7bd334a6a74a36ae8a1164b8771303953d77 | |
parent | c12fb6cb5408cbcaa6090d4871bf500a705d7d7b (diff) | |
download | pfsense-e49a2031bd2c3c4b79660b671c7b592d199446f7.zip pfsense-e49a2031bd2c3c4b79660b671c7b592d199446f7.tar.gz |
Ticket #843. Disable for now bringing down the interface unless we want to destroy it. While this is not all correct this seems to help alleviate problems when the parent is shared on cloned types.
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 2577d22..c05229d 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -867,14 +867,16 @@ function interface_bring_down($interface = "wan", $destroy = false) { unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf"); if(does_interface_exist("$realif")) { mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true); - pfSense_interface_flags($realif, -IFF_UP); + if ($destroy == true) + pfSense_interface_flags($realif, -IFF_UP); mwexec("/usr/sbin/arp -d -i {$realif} -a"); } break; default: if(does_interface_exist("$realif")) { mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true); - pfSense_interface_flags($realif, -IFF_UP); + if ($destroy == true) + pfSense_interface_flags($realif, -IFF_UP); mwexec("/usr/sbin/arp -d -i {$realif} -a"); } break; |