gresolv: Fix handling of IPv6 nameservers
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Dec 2010 16:40:52 +0000 (16:40 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Dec 2010 21:47:46 +0000 (21:47 +0000)
commit40fca394d11b9e6104e5f9c8ff6090c5af719a1b
treed8c3ae0f84ae0b8a2afdd185f9fc1b622b4be65b
parent3c9edd5e215d2939b0f61c7f6cd87d30c6965f6d
gresolv: Fix handling of IPv6 nameservers

If IPv6 nameservers were specified in /etc/resolv.conf, we would end up
sending NS queries to 0.0.0.0 because we weren't parsing the __res_state
structure correctly. We were assuming that all listed nameservers would
be Legacy IP.

Also fix connect_udp_channel() to generate the address correctly instead
of just asssuming Legacy IP.
gweb/gresolv.c