Update.
[glibc.git] / inet / tst-ipnode.c
blobb4b4dfa33de4d9deaece38a29fb4c8aca496ff0d
1 #include <netdb.h>
2 #include <stdio.h>
3 #include <netinet/in.h>
5 /* The unspecified IPv6 address. */
6 struct in6_addr anyv6 = IN6ADDR_ANY_INIT;
8 int
9 main (void)
11 int errors = 0;
12 int errval;
14 /* Test the unspecifed IPv6 address. */
15 errval = 0x3453456;
16 if (getipnodebyaddr ((char *) &anyv6, sizeof (anyv6), AF_INET6, &errval)
17 != NULL
18 || errval != HOST_NOT_FOUND)
20 puts ("getipnodenyaddr(in6addr_any,...) != NULL");
21 ++errors;
24 return errors != 0;