From 35a72f9708bccef6092e37cdb2e31faf7ec04803 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Mon, 21 Dec 2009 16:08:23 +0100 Subject: 103_update-ifid-on-restart.diff from the Debian package version 20080615-8: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Interface ID may have changed between a stop and start." Signed-off-by: Bjørn Mork --- dhcp6c.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dhcp6c.c b/dhcp6c.c index c959b7c..edeca80 100644 --- a/dhcp6c.c +++ b/dhcp6c.c @@ -768,6 +768,15 @@ client6_ifctl(ifname, command) switch(command) { case DHCP6CTL_COMMAND_START: + /* + * The ifid might have changed, so reset it before releasing the + * lease. + */ + if (ifreset(ifp)) { + dprintf(LOG_NOTICE, FNAME, "failed to reset %s", + ifname); + return (-1); + } free_resources(ifp); if (client6_start(ifp)) { debug_printf(LOG_NOTICE, FNAME, "failed to restart %s", -- cgit v1.2.3