Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2004 21:27:45 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 66278 for review
Message-ID:  <200412022127.iB2LRjND008828@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=66278

Change 66278 by sam@sam_ebb on 2004/12/02 21:27:37

	use selective arp cache flushing logic from dhclient-script

Affected files ...

.. //depot/projects/wifi/etc/pccard_ether#3 edit

Differences ...

==== //depot/projects/wifi/etc/pccard_ether#3 (text+ko) ====

@@ -177,8 +177,8 @@
 
 	#
 	# Remove the network interface and cleanup ARP table
-	# XXX no way to limit arp flush to one interface
 	#
 	ifconfig ${interface} delete down
-	arp -d -a
+	arp -an ${interface} | \
+		sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' | sh
 esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412022127.iB2LRjND008828>