summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-03 17:59:49 +0000
committerErmal <eri@pfsense.org>2010-09-03 17:59:49 +0000
commite49a2031bd2c3c4b79660b671c7b592d199446f7 (patch)
tree147f7bd334a6a74a36ae8a1164b8771303953d77 /etc/inc/interfaces.inc
parentc12fb6cb5408cbcaa6090d4871bf500a705d7d7b (diff)
downloadpfsense-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.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
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;
OpenPOWER on IntegriCloud