In IPv6/v4 dual stack world, we use inet_pton() in place of
inet_aton() in IPv4-only world (see RFC2553 for function prototype).
inet_pton() gets address family information as argument (AF_INET6,
for example). There's no standard function for IPv6-only
address string decoder.
I would like to use inet_pton() to implement
resolv.c:get_host_ipaddr6(). inet_pton() prior to ISC BIND82 has
a bug and I have fixed code for it (to be used for workaround).
However, it looks that ethereal tries to avoid use of AF_INET{,6}
in the source code for portability (to be able to run on platforms
that does not have AF_INET6), and it prevents me from using
standard inet_pton(). What should I do in this case?
itojun
Powered by MHonArc 2.6.10