[Nut-upsdev] Re: [nut-commits] svn commit r708 - in trunk: .
Peter Selinger
selinger at mathstat.dal.ca
Sat Jan 6 20:33:08 CET 2007
My list (netdb.h) ends after 3 items:
/* Possible values for `ai_flags' field in `addrinfo' structure. */
# define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */
# define AI_CANONNAME 0x0002 /* Request for canonical name. */
# define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */
-- Peter
Arjen de Korte wrote:
>
> Peter Selinger wrote:
>
> > With the Ipv6 patch (r708), I get:
> >
> > upsclient.c: In function `upscli_connect':
> > upsclient.c:469: `AI_ADDRCONFIG' undeclared (first use in this function)
> > upsclient.c:469: (Each undeclared identifier is reported only once
> > upsclient.c:469: for each function it appears in.)
>
> It's defined in <netdb.h> on my system (Linux/openSUSE 10.2):
>
> /* Possible values for `ai_flags' field in `addrinfo' structure. */
> # define AI_PASSIVE 0x0001 /* Socket address is intended for
> `bind'. */
> # define AI_CANONNAME 0x0002 /* Request for canonical name. */
> # define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */
> # define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */
> # define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6
> addresses. */
> # define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose
> returned address type.. */
> # ifdef __USE_GNU
> # define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded
> in the current locale's character set)
> before looking it up. */
> # define AI_CANONIDN 0x0080 /* Translate canonical name from IDN
> format. */
> # define AI_IDN_ALLOW_UNASSIGNED 0x0100 /* Don't reject unassigned Unicode
> code points. */
> # define AI_IDN_USE_STD3_ASCII_RULES 0x0200 /* Validate strings
> according to
> STD3 rules. */
> # endif
> # define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */
>
> Apparently, there still is a long way to go before IPv6 is fully supported.
>
> Best regards, Arjen
>
More information about the Nut-upsdev
mailing list