1999-08-06 20:11:37 +00:00
|
|
|
#include <netdb.h>
|
|
|
|
#include <stdio.h>
|
1999-08-06 22:27:07 +00:00
|
|
|
#include <netinet/in.h>
|
1999-08-06 20:11:37 +00:00
|
|
|
|
|
|
|
/* The unspecified IPv6 address. */
|
|
|
|
struct in6_addr anyv6 = IN6ADDR_ANY_INIT;
|
|
|
|
|
|
|
|
int
|
|
|
|
main (void)
|
|
|
|
{
|
|
|
|
int errors = 0;
|
|
|
|
int errval;
|
|
|
|
|
|
|
|
/* Test the unspecifed IPv6 address. */
|
|
|
|
errval = 0x3453456;
|
1999-08-06 22:27:07 +00:00
|
|
|
if (getipnodebyaddr ((char *) &anyv6, sizeof (anyv6), AF_INET6, &errval)
|
|
|
|
!= NULL
|
1999-08-06 20:11:37 +00:00
|
|
|
|| errval != HOST_NOT_FOUND)
|
|
|
|
{
|
|
|
|
puts ("getipnodenyaddr(in6addr_any,...) != NULL");
|
|
|
|
++errors;
|
|
|
|
}
|
|
|
|
|
1999-08-10 05:41:26 +00:00
|
|
|
return errors != 0;
|
1999-08-06 20:11:37 +00:00
|
|
|
}
|