Package: wide-dhcpv6 / 20080615-22

Metadata

Package Version Patches format
wide-dhcpv6 20080615-22 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Fix manpages.patch | (download)

dhcp6c.8 | 8 4 + 4 - 0 !
dhcp6c.conf.5 | 4 2 + 2 - 0 !
dhcp6ctl.8 | 13 6 + 7 - 0 !
dhcp6relay.8 | 1 0 + 1 - 0 !
dhcp6s.8 | 10 5 + 5 - 0 !
dhcp6s.conf.5 | 2 1 + 1 - 0 !
6 files changed, 18 insertions(+), 20 deletions(-)

 fix manpages

This patch fixes wide-dhcpv6 manpages (paths, typos, ...).

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0002 Don t strip binaries.patch | (download)

Makefile.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 don't strip binaries

This patch prevents wide-dhcpv6 build system from stripping built binaries.

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0003 Close inherited file descriptors.patch | (download)

dhcp6c.c | 7 6 + 1 - 0 !
dhcp6relay.c | 6 6 + 0 - 0 !
dhcp6s.c | 5 5 + 0 - 0 !
3 files changed, 17 insertions(+), 1 deletion(-)

 close inherited file descriptors

wide-dhcpv6 binaries should close inherited fds.

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0004 GNU libc6 fixes.patch | (download)

addrconf.c | 16 8 + 8 - 0 !
cftoken.c | 12 6 + 6 - 0 !
cftoken.l | 12 6 + 6 - 0 !
common.c | 226 113 + 113 - 0 !
common.h | 2 1 + 1 - 0 !
config.c | 268 134 + 134 - 0 !
configure | 50 49 + 1 - 0 !
configure.in | 7 7 + 0 - 0 !
dhcp6.h | 7 7 + 0 - 0 !
dhcp6_ctl.c | 40 20 + 20 - 0 !
dhcp6c.c | 246 123 + 123 - 0 !
dhcp6c_ia.c | 86 43 + 43 - 0 !
dhcp6c_script.c | 36 18 + 18 - 0 !
dhcp6relay.c | 118 59 + 59 - 0 !
dhcp6relay_script.c | 28 14 + 14 - 0 !
dhcp6s.c | 446 223 + 223 - 0 !
if.c | 12 6 + 6 - 0 !
lease.c | 14 7 + 7 - 0 !
prefixconf.c | 24 12 + 12 - 0 !
timer.c | 6 3 + 3 - 0 !
20 files changed, 859 insertions(+), 797 deletions(-)

 gnu libc6 fixes

Fixes for recent libc releases.

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0005 Update ifid on interface restart.patch | (download)

dhcp6c.c | 9 9 + 0 - 0 !
1 file changed, 9 insertions(+)

 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>

0006 Add new feature dhcp6c profiles.patch | (download)

cfparse.y | 23 22 + 1 - 0 !
cftoken.l | 10 10 + 0 - 0 !
config.c | 334 190 + 144 - 0 !
config.h | 3 3 + 0 - 0 !
dhcp6c.8 | 9 9 + 0 - 0 !
dhcp6c.c | 5 4 + 1 - 0 !
dhcp6c.conf.5 | 7 7 + 0 - 0 !
7 files changed, 245 insertions(+), 146 deletions(-)

 add new feature: dhcp6c profiles

This patch enables users to define interface profiles so one can configure a
group of interfaces the same way without having to provide an interface
statement for each.

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0007 Adding ifid option to the dhcp6c.conf prefix interfa.patch | (download)

cfparse.y | 10 9 + 1 - 0 !
cftoken.l | 1 1 + 0 - 0 !
config.c | 19 14 + 5 - 0 !
config.h | 2 1 + 1 - 0 !
dhcp6c.conf.5 | 10 10 + 0 - 0 !
5 files changed, 35 insertions(+), 7 deletions(-)

 adding ifid option to the dhcp6c.conf prefix-interface statement
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

This adds the ability to override the default EUI-64 address selection.
Useful for interfaces without a unique hardware address, or for creating
more userfriendly addresses in general.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0008 Close file descriptors on exec.patch | (download)

cftoken.c | 8 8 + 0 - 0 !
cftoken.l | 8 8 + 0 - 0 !
common.c | 15 14 + 1 - 0 !
dhcp6_ctl.c | 3 3 + 0 - 0 !
dhcp6_ctlclient.c | 3 3 + 0 - 0 !
dhcp6c.c | 11 10 + 1 - 0 !
dhcp6relay.c | 6 6 + 0 - 0 !
missing/getifaddrs.c | 9 7 + 2 - 0 !
8 files changed, 59 insertions(+), 4 deletions(-)

 close file descriptors on exec

Avoid FD leakage to children
Closes: #757848

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0009 Fix renewal of IA NA.patch | (download)

addrconf.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix renewal of ia na

Submitted-by: Vegard Engen <vegard@engen.priv.no>
Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0010 Call client script after interfaces have been update.patch | (download)

dhcp6c.c | 18 9 + 9 - 0 !
1 file changed, 9 insertions(+), 9 deletions(-)

 call client script after interfaces have been updated

Closes: #734644

Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>

0011 resolv warnings so as to make blhc and gcc both happ.patch | (download)

Makefile.in | 21 11 + 10 - 0 !
addrconf.c | 11 10 + 1 - 0 !
missing/arc4random.c | 3 2 + 1 - 0 !
prefixconf.c | 11 10 + 1 - 0 !
4 files changed, 33 insertions(+), 13 deletions(-)

 resolv warnings so as to make "blhc" and "gcc" both happy

- blhc complained: lacking of CFLAGS/CPPFLAGS for C files in Makefile
- gcc complained implicit declaration of function 'time'
- gcc complained ignoring return value of 'read'
- adjust objects dependency and make parallel build working

Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>

0012 fix a redefined YYDEBUG warning of gcc for the code .patch | (download)

cftoken.l | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 fix a redefined "yydebug" warning of gcc for the code generated by
 bison/flex

Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>

0013 added several comments examples by Stefan Sperling.patch | (download)

CHANGES | 4 4 + 0 - 0 !
dhcp6c.conf.sample | 43 40 + 3 - 0 !
dhcp6s.conf.sample | 54 46 + 8 - 0 !
3 files changed, 90 insertions(+), 11 deletions(-)

 added several comments/examples. (contributed by stefan sperling)


0014 Support to build on kFreeBSD n GNU Hurd platform.patch | (download)

cftoken.c | 4 2 + 2 - 0 !
cftoken.l | 4 2 + 2 - 0 !
common.c | 38 19 + 19 - 0 !
config.c | 8 4 + 4 - 0 !
configure | 2 1 + 1 - 0 !
configure.in | 2 1 + 1 - 0 !
dhcp6_ctl.c | 2 1 + 1 - 0 !
dhcp6_ctlclient.c | 2 1 + 1 - 0 !
dhcp6c.c | 6 3 + 3 - 0 !
dhcp6relay.c | 6 3 + 3 - 0 !
dhcp6s.c | 4 2 + 2 - 0 !
if.c | 2 1 + 1 - 0 !
missing/getifaddrs.c | 2 1 + 1 - 0 !
13 files changed, 41 insertions(+), 41 deletions(-)

 support to build on kfreebsd & gnu/hurd platform

Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>

0015 a bit info to logger when get OPTION_RECONF_ACCEPT.patch | (download)

common.c | 10 10 + 0 - 0 !
dhcp6.h | 2 1 + 1 - 0 !
2 files changed, 11 insertions(+), 1 deletion(-)

 add a bit info to logger when get option_reconf_accept(20) dhcpv6
 option
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Closes: #562079
Reported-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>

0016 fix typo in dhcp6c.8 manpage.patch | (download)

dhcp6c.8 | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix typo in dhcp6c.8 manpage

Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>

0017 Remove unused linking with libfl.patch | (download)

Makefile.in | 10 7 + 3 - 0 !
1 file changed, 7 insertions(+), 3 deletions(-)

 remove unused linking with libfl

Due to the yylex requirement this caused FTBFS
when a shared libfl is provided.

Closes: #893008

0018 dhcpv6 ignore advertise messages with none of reques.patch | (download)

dhcp6c.c | 67 55 + 12 - 0 !
1 file changed, 55 insertions(+), 12 deletions(-)

 dhcpv6: ignore advertise messages with none of requested data and
 missed status codes.

with RENEW fix. Thanks TheMiron.

[ Roger Shimizu's comment ]
0019 Server should not bind control port if there is no s.patch | (download)

dhcp6_ctl.c | 16 13 + 3 - 0 !
dhcp6s.c | 2 1 + 1 - 0 !
2 files changed, 14 insertions(+), 4 deletions(-)

 server should not bind control port if there is no shared secret

And add two additional check of shared secret
- checks validity of the read shared secret and set ctlkey structure
  pointer not NULL only if there is really any shared secret.
- check if ctlkey is NULL or if shared secret is NULL or empty
  (pointer is not NULL, but there are no data - length is 0).

This resolved upstream issue #36:
- https://sourceforge.net/p/wide-dhcpv6/bugs/36

Closes: #799080

0020 Adding option to randomize interface id.patch | (download)

cfparse.y | 9 8 + 1 - 0 !
cftoken.l | 1 1 + 0 - 0 !
config.c | 9 9 + 0 - 0 !
config.h | 2 1 + 1 - 0 !
dhcp6c.conf.5 | 9 9 + 0 - 0 !
5 files changed, 28 insertions(+), 2 deletions(-)

 adding option to randomize interface id

Please find attached a patch that adds a new feature to
wide-dhcpv6-client, namely an option ("ifid-random") in the
prefix-interface section of dhcp6c.conf to generate a random interface
id on startup. This is useful if you wish to have the final 64 bits of
your IPv6 address change from time to time - a sort of very rough
equivalent of IPv6 Privacy Extensions. If you do not add "ifid-random"
to the config file, then nothing about the client's current behaviour
changes.

Note that if your prefix-interface section has both the current "ifid
X" option (where X is whatever number you want to manually assign as
your interface id) and the new "ifid-random" option, then the
interface id is randomized and "ifid X" is ignored.

Thanks,
Christopher Martin