[Bug 6194] udhcpc6 source address is null, should be link-local address

bugzilla at busybox.net bugzilla at busybox.net
Sat Mar 4 18:03:59 UTC 2017


https://bugs.busybox.net/show_bug.cgi?id=6194

support at tiggerswelt.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |support at tiggerswelt.net

--- Comment #1 from support at tiggerswelt.net ---
Created attachment 6936
  --> https://bugs.busybox.net/attachment.cgi?id=6936&action=edit
Use link-local-address on udhcpc6

Hi there,

although this ticket is very old, I faced the same problem. Using a recent
busybox 1.26.2 it was not possible to get an IPv6 assigned using dhcpc6. I've
tested with dnsmasq and ISC DHCPD6. While dnsmasq tries to send its
DHCP-Responses via the loopback-device to a null-address, DHCPD6 just throws an
error like "destination unreachable".

As there is no appropriate ioctl like SIOCGIFADDR for IPv6, I've rewritten
udhcp_read_interface() using getifaddrs() to make it compatible with both,
IPv4- and IPv6-Setups, and changed dhcpc6 to write it's link-local-address to
raw generated packets - if there is one.

Using the attached patch I was able to receive an IPv6-Address via DHCP6 -
again tested with dnsmasq and ISC DHCPD6. The rewritten udhcp_read_interface()
should perform slower and require more memory as its predecessor.

My Build-Environment is GCC 6.3.0 and Musl 1.1.16 on x86_64-x32.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list