Revision e49a2031
Added by Ermal LUÇI almost 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
867 | 867 |
unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf"); |
868 | 868 |
if(does_interface_exist("$realif")) { |
869 | 869 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true); |
870 |
pfSense_interface_flags($realif, -IFF_UP); |
|
870 |
if ($destroy == true) |
|
871 |
pfSense_interface_flags($realif, -IFF_UP); |
|
871 | 872 |
mwexec("/usr/sbin/arp -d -i {$realif} -a"); |
872 | 873 |
} |
873 | 874 |
break; |
874 | 875 |
default: |
875 | 876 |
if(does_interface_exist("$realif")) { |
876 | 877 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true); |
877 |
pfSense_interface_flags($realif, -IFF_UP); |
|
878 |
if ($destroy == true) |
|
879 |
pfSense_interface_flags($realif, -IFF_UP); |
|
878 | 880 |
mwexec("/usr/sbin/arp -d -i {$realif} -a"); |
879 | 881 |
} |
880 | 882 |
break; |
Also available in: Unified diff
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.