Revision 5630c91c
Added by Ermal Luçi over 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
778 | 778 |
|
779 | 779 |
$realif = get_real_interface($interface); |
780 | 780 |
|
781 |
mwexec("/usr/sbin/arp -d -i {$realif} -a"); |
|
782 | 781 |
|
783 | 782 |
/* remove interface up file if it exists */ |
784 | 783 |
unlink_if_exists("{$g['tmp_path']}/{$realif}up"); |
... | ... | |
814 | 813 |
if(does_interface_exist("$realif")) { |
815 | 814 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true); |
816 | 815 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " down"); |
816 |
mwexec("/usr/sbin/arp -d -i {$realif} -a"); |
|
817 | 817 |
} |
818 | 818 |
break; |
819 | 819 |
default: |
820 | 820 |
if(does_interface_exist("$realif")) { |
821 | 821 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true); |
822 | 822 |
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " down"); |
823 |
mwexec("/usr/sbin/arp -d -i {$realif} -a"); |
|
823 | 824 |
} |
824 | 825 |
break; |
825 | 826 |
} |
Also available in: Unified diff
Ticket #275. Run the arp deletion command only if and interface exists and on those types which makes sense.