From: Andrew Tridgell Date: Tue, 29 May 2007 09:34:04 +0000 (+1000) Subject: flush any local arp entries for the given ip on add/del X-Git-Tag: tevent-0.9.20~348^2~2640 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9891c6b975faadd1cf13e41d8ce9d2afaca1e68d;p=thirdparty%2Fsamba.git flush any local arp entries for the given ip on add/del (This used to be ctdb commit 814decd66423e955b443f0729ceec581c0d0c0e3) --- diff --git a/ctdb/tools/events b/ctdb/tools/events index 2536e59c395..2ce4a983c0c 100755 --- a/ctdb/tools/events +++ b/ctdb/tools/events @@ -17,6 +17,8 @@ case $cmd in echo "Failed to add $ip/$maskbits on dev $iface" exit 1 } + # if we have a local arp entry for this IP then remove it + /sbin/arp -d $ip 2> /dev/null exit 0 ;; @@ -32,6 +34,8 @@ case $cmd in echo "Failed to del $ip on dev $iface" exit 1 } + # if we have a local arp entry for this IP then remove it + /sbin/arp -d $ip 2> /dev/null exit 0 ;;