SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup

glen glen at pld-linux.org
Wed Oct 3 08:55:52 CEST 2007


Author: glen
Date: Wed Oct  3 08:55:52 2007
New Revision: 8770

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
- trim network length from $IP4ADDR when doing arping

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup	Wed Oct  3 08:55:52 2007
@@ -185,9 +185,9 @@
 	fi
 
 	if is_yes "$IPV4_NETWORKING" && [ -n "${IP4ADDR}" -a -x /sbin/arping ]; then
-		# update ARP cache of neighboring computers
-		/sbin/arping -q -A -c 1 -I ${DEVICE} ${IP4ADDR}
-		( sleep 2; /sbin/arping -q -U -c 1 -I ${DEVICE} ${IP4ADDR} ) > /dev/null 2>&1 < /dev/null &
+		# update ARP cache of neighbouring computers
+		/sbin/arping -q -A -c 1 -I ${DEVICE} ${IP4ADDR%/*}
+		( sleep 2; /sbin/arping -q -U -c 1 -I ${DEVICE} ${IP4ADDR%/*} ) > /dev/null 2>&1 < /dev/null &
 	fi
 
 	# IPv4/6 gateways and default routes


More information about the pld-cvs-commit mailing list