Fix roken getifaddrs for IPv4 & IPv6 on HP-UX & Solaris
commit25c12511a26a61a619a1e866d083d2d018952281
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:43:08 +0000 (7 18:43 -0800)
tree5e6bb9e8f0a4f3cbc50ca28d7db7524f8e772c0b
parent33ac24851e2c7333e28f07c4ae7b76a253bcdfd5
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.

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