summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dispatch.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-02-14 22:18:13 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-02-14 22:18:13 +0000
commita31939470420bb6567cc43889e40a1a3fa4357b0 (patch)
treea2445fabde5fdc427a081691110d9d08065ca70a /sbin/dhclient/dispatch.c
parent710264b751b432437d8f0f064c693498383a04fe (diff)
When an interface generates an RTM_IFINFO message, it may be as the
result of its LLADDR changing! Check said address and if it differs from what we think it is, simulate a SIGHUP to restart, getting the new address and a new lease for it. Spotted by, fix tested by, and ok beck@
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r--sbin/dhclient/dispatch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index 64553aea46a..31241325130 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.71 2013/02/13 19:32:52 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.72 2013/02/14 22:18:12 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -97,9 +97,6 @@ discover_interface(void)
if (!ifi->ifp)
error("%s: not found", ifi->name);
- /* Register the interface... */
- if_register_receive();
- if_register_send();
freeifaddrs(ifap);
}