mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 07:15:44 +00:00
Remove ARPCHECK and ARPSEND code.
This commit is contained in:
@@ -38,10 +38,6 @@ if [ x$reason = xPREINIT ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ x$reason = xARPCHECK ] || [ x$reason = xARPSEND ]; then
|
|
||||||
exit 0;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
|
if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
|
||||||
[ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then
|
[ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then
|
||||||
if [ x$old_ip_address != x ] && [ x$alias_ip_address != x ] && \
|
if [ x$old_ip_address != x ] && [ x$alias_ip_address != x ] && \
|
||||||
@@ -49,7 +45,8 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
|
|||||||
ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
|
ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
|
||||||
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
|
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]; then
|
if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]
|
||||||
|
then
|
||||||
ifconfig $interface inet -alias $old_ip_address $medium
|
ifconfig $interface inet -alias $old_ip_address $medium
|
||||||
route delete $old_ip_address 127.1 >/dev/null 2>&1
|
route delete $old_ip_address 127.1 >/dev/null 2>&1
|
||||||
for router in $old_routers; do
|
for router in $old_routers; do
|
||||||
|
Reference in New Issue
Block a user