Fix roken getifaddrs for IPv4 & IPv6 on HP-UX & Solaris
commitd91a2f90daaebf24f5e494aff1126770732f8eb9
authorTed Percival <ted.percival@quest.com>
Fri, 4 Dec 2009 20:50:29 +0000 (4 13:50 -0700)
committerLove Hornquist Astrand <lha@h5l.org>
Tue, 8 Dec 2009 02:44:25 +0000 (7 18:44 -0800)
tree0469a572c67bedd8c09490ad4f3e2d88169b8640
parent25c12511a26a61a619a1e866d083d2d018952281
Fix roken getifaddrs for IPv4 & IPv6 on HP-UX & Solaris

HP-UX only returns IPv6 addresses using SIOCGLIFCONF,
SIOCGIFCONF has to be used for IPv4 addresses.
Solaris uses the same code as described in the comments, which
should correctly detect all addresses when running in a zone.

This adds the code that went missing from commit e20183da.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
lib/roken/getifaddrs.c