Rev 391: flush any local arp entries for the given ip on add/del in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Tue May 29 09:34:04 GMT 2007


------------------------------------------------------------
revno: 391
revision-id: tridge at samba.org-20070529093404-3pc3xeus3tgyrq3h
parent: tridge at samba.org-20070529072329-y1wnscebfnwlk63p
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-05-29 19:34:04 +1000
message:
  flush any local arp entries for the given ip on add/del
modified:
  tools/events                   events-20070529030121-04fjh63cxfh8v1pj-1
=== modified file 'tools/events'
--- a/tools/events	2007-05-29 07:23:29 +0000
+++ b/tools/events	2007-05-29 09:34:04 +0000
@@ -17,6 +17,8 @@
 		 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 @@
 		 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
 	;;
 



More information about the samba-cvs mailing list