Use arpsend instead of arping
authorDimitris Aragiorgis <dimara@grnet.gr>
Tue, 4 Mar 2014 12:49:08 +0000 (14:49 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Wed, 5 Mar 2014 16:28:09 +0000 (18:28 +0200)
arpsend comes along with ndsend with vzctl package.
We send only one packet in order not to delay ifup script.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

common.sh

index 208ae02..a3b03d8 100755 (executable)
--- a/common.sh
+++ b/common.sh
@@ -71,8 +71,8 @@ function routed_setup_ipv4 {
   # Send GARP from host to upstream router
   get_uplink $TABLE
   echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
-  $SNF_NETWORK_LOG $0 "arping  -c3 -I $UPLINK -U $IP"
-  arping  -c3 -I $UPLINK -U $IP
+  $SNF_NETWORK_LOG $0 "arpsend -U -i $IP -c1 $UPLINK"
+  arpsend -U -i $IP -c1 $UPLINK
   echo 0 > /proc/sys/net/ipv4/ip_nonlocal_bind
 
 }