aboutsummaryrefslogtreecommitdiff
path: root/inet/tst-ipnode.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-06 20:11:37 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-06 20:11:37 +0000
commit93160baaa0ce41403b9eeb8bac3f24f31810db0d (patch)
tree40363325cc4e411dfdadc47a4e069b3a5ac47c36 /inet/tst-ipnode.c
parentc79772f542141d1614e7353ebe6a2c15e1b1e42d (diff)
downloadglibc-93160baaa0ce41403b9eeb8bac3f24f31810db0d.tar
glibc-93160baaa0ce41403b9eeb8bac3f24f31810db0d.tar.gz
glibc-93160baaa0ce41403b9eeb8bac3f24f31810db0d.tar.bz2
glibc-93160baaa0ce41403b9eeb8bac3f24f31810db0d.zip
Update.
1999-08-06 Ulrich Drepper <drepper@cygnus.com> * inet/tst-ipnode.c: New file.
Diffstat (limited to 'inet/tst-ipnode.c')
-rw-r--r--inet/tst-ipnode.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/inet/tst-ipnode.c b/inet/tst-ipnode.c
new file mode 100644
index 0000000000..b8b1e77c76
--- /dev/null
+++ b/inet/tst-ipnode.c
@@ -0,0 +1,23 @@
+#include <netdb.h>
+#include <stdio.h>
+
+/* 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;
+ if (getipnodebyaddr (&anyv6, sizeof (anyv6), AF_INET6, &errval) != NULL
+ || errval != HOST_NOT_FOUND)
+ {
+ puts ("getipnodenyaddr(in6addr_any,...) != NULL");
+ ++errors;
+ }
+
+ return errors != NULL;
+}