diff options
author | brooks <brooks@FreeBSD.org> | 2005-09-08 22:15:19 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-09-08 22:15:19 +0000 |
commit | 4384a744062b95c7fb4dff0bd7e9031c5db8e631 (patch) | |
tree | 8dae1e45f6aa8b8981b0b76c15278f04952e1431 /sbin/dhclient | |
parent | a5dfb4378d5e5b9ef7278335cbfb341349b9b633 (diff) | |
download | FreeBSD-src-4384a744062b95c7fb4dff0bd7e9031c5db8e631.zip FreeBSD-src-4384a744062b95c7fb4dff0bd7e9031c5db8e631.tar.gz |
When we fail to aquire a lease, our lease expires without a sucessful
renewal, or we lose link, be more forceful about clearing interface
state so another interface that connects to the same network has a
chance of working. This doesn't address attemping to connect to both at
once, but appears to allow unplugging from a wired interface and then
inserting a wireless card that associates with an AP bridged to the same
LAN.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient-script | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index 8087fed..75589d6 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -247,6 +247,7 @@ EXPIRE|FAIL) delete_old_address delete_old_routes fi + ifconfig $interface delete # XXX Why add alias we just deleted above? add_new_alias if [ -f /etc/resolv.conf.save ]; then |