dhcp/dhcp-4.1.0-ping_from_if.patch

13 lines
589 B
Diff
Raw Permalink Normal View History

diff -Nru dhcp-4.1.0.orig/client/scripts/linux dhcp-4.1.0/client/scripts/linux
--- dhcp-4.1.0.orig/client/scripts/linux 2009-01-17 15:15:09.000000000 +0100
+++ dhcp-4.1.0/client/scripts/linux 2009-01-17 15:16:15.000000000 +0100
@@ -211,7 +211,7 @@
ifconfig $interface inet $new_ip_address $new_subnet_arg \
$new_broadcast_arg
set $new_routers
- if ping -q -c 1 $1; then
+ if ping -q -c 1 -I $interface $1; then
if [ x$new_ip_address != x$alias_ip_address ] && \
[ x$alias_ip_address != x ]; then
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg