diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:43:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:43:03 +0000 |
commit | f504d0d8a469f3f913a853e97020112fcf262c1b (patch) | |
tree | 25a4b573f8fc510c99d931a382598bee699a215c /debian/patches/0005-Update-ifid-on-interface-restart.patch | |
parent | Adding upstream version 20080615. (diff) | |
download | wide-dhcpv6-debian.tar.xz wide-dhcpv6-debian.zip |
Adding debian version 20080615-23.debian/20080615-23debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0005-Update-ifid-on-interface-restart.patch')
-rw-r--r-- | debian/patches/0005-Update-ifid-on-interface-restart.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/0005-Update-ifid-on-interface-restart.patch b/debian/patches/0005-Update-ifid-on-interface-restart.patch new file mode 100644 index 0000000..9f479e5 --- /dev/null +++ b/debian/patches/0005-Update-ifid-on-interface-restart.patch @@ -0,0 +1,33 @@ +From: Jeremie Corbier <jeremie+debian@famille-corbier.net> +Date: Tue, 6 Apr 2010 15:51:12 +0200 +Subject: Update ifid on interface restart + +Interface ID may have changed between a stop and start. + +[rogershimizu@gmail.com: slightly modified according to 0004-GNU-libc6-fixes.patch] +Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net> +Signed-off-by: Roger Shimizu <rogershimizu@gmail.com> +--- + dhcp6c.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/dhcp6c.c b/dhcp6c.c +index c959b7c..1e897d2 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)) { ++ debug_printf(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", |