[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: gettext/src/hostname.c, ipv6 macro
From: |
prapp |
Subject: |
re: gettext/src/hostname.c, ipv6 macro |
Date: |
Sun, 03 Mar 2002 22:38:58 -0500 |
gettext-0.11/src/hostname.c
refers to members of struct in6_addr not present on my system.
The relevant macro is:
# define ipv6_ntop(buffer,addr) \
sprintf (buffer, "%x:%x:%x:%x:%x:%x:%x:%x", \
ntohs ((addr).in6_u.u6_addr16[0]), \
ntohs ((addr).in6_u.u6_addr16[1]), \
called by:
ipv6_ntop (buffer, *(const struct in6_addr*) h->h_addr_list[i]);
My struct in6_addr (which is maybe old ?) looks like the one found here:
http://www.zvon.org/tmRFC/RFC2553/Output/chapter3.html#sub2
or here:
http://ou800doc.caldera.com/SDK_netapi/sockC.TheIPv6sockaddrstructure.html
I wouldn't have noticed this, if my system had an inet_ntop, but it doesn't :(
Caveat: I'm not very conversant with IPV6.
rsync has a complicated replacement for inet_ntop, which I don't follow, but
I think they just cast the whole thing to a void * to start out with, and
then the complicated code is to watch for runs of zeros.
Anyway, I'll probably just undef the HAVE_IPV6 in my config.h, and
let you decide what you think about this. Feel free to contact me,
but as mentioned, I really don't know much about ipv6 socket structures.
Cordially,
Perry
- re: gettext/src/hostname.c, ipv6 macro,
prapp <=