]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
flush any local arp entries for the given ip on add/del
authorAndrew Tridgell <tridge@samba.org>
Tue, 29 May 2007 09:34:04 +0000 (19:34 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 29 May 2007 09:34:04 +0000 (19:34 +1000)
(This used to be ctdb commit 814decd66423e955b443f0729ceec581c0d0c0e3)

ctdb/tools/events

index 2536e59c395add3d3426a8cd5d445d4a0a141072..2ce4a983c0cf63094f6d8003a94863b1346ac886 100755 (executable)
@@ -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
        ;;