summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1997-11-20 22:31:11 +0000
committernate <nate@FreeBSD.org>1997-11-20 22:31:11 +0000
commitd3bfedd38f4fc06ab65d4eb807b4ae2732aa5415 (patch)
treedd67e14c6c0055c61a426bf31d9136f3fef9c061 /etc
parent8feb0ae52506269f94e1d4f95295b2bc2094e8d4 (diff)
downloadFreeBSD-src-d3bfedd38f4fc06ab65d4eb807b4ae2732aa5415.zip
FreeBSD-src-d3bfedd38f4fc06ab65d4eb807b4ae2732aa5415.tar.gz
- In addtition to flushing the routes, also flush the arp cache when bringing
up the new network link. Submitted by: Guido van Rooij <guido@gvr.org>
Diffstat (limited to 'etc')
-rwxr-xr-xetc/pccard_ether5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index b8a6c59..4084ea7 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -1,8 +1,8 @@
#!/bin/sh -
#
-# pccardether interfacename [ifconfig option]
+# pccard_ether interfacename [ifconfig option]
#
-# example: pccardether ep0 -link0
+# example: pccard_ether ep0 -link0
#
# Suck in the /etc/rc.conf variables
@@ -29,6 +29,7 @@ fi
if [ "x${static_routes}" != "x" ]; then
# flush beforehand, just in case....
route -n flush
+ arp -d -a
for i in ${static_routes}; do
eval route_args=\$route_${i}
route add ${route_args}
OpenPOWER on IntegriCloud