Workaround to add IPv6 support to getifaddrs
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 12 Jan 2019 17:50:25 +0000 (17:50 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 12 Jan 2019 17:50:25 +0000 (17:50 +0000)
commit26705ec03aeb1e15d0991ac2b9424cf48a2e30dd
tree85669afa3486350a9c9dc0525d45afce62106867
parent22d3ff8193f7cd64d87d5ce459d04143a0b030d3
Workaround to add IPv6 support to getifaddrs

ifreq only contains sockaddr structures, which are not big enough for
IPv6 addresses. This takes another, ugly, approach, by parsing fsysopts
/servers/socket/2 options...

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-ifaddrs_v6.diff
sysdeps/mach/hurd/ifaddrs.c [new file with mode: 0644]