summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-08-03 21:36:51 +0200
committerMartin Mares <mj@ucw.cz>1999-08-03 21:36:51 +0200
commit4f22c9818554087d8f5ab51b8666a7a48d1f4329 (patch)
tree6a953b961c445f19d7898797e4195b9b8511a2a2 /lib
parentdce267832a0468ed5e596f0b0733b926af7ead3a (diff)
downloadbird-4f22c9818554087d8f5ab51b8666a7a48d1f4329.tar
bird-4f22c9818554087d8f5ab51b8666a7a48d1f4329.zip
Support for IPv6 sockets. How nice one doesn't have to ifdef around
ten years of API evolution :-)
Diffstat (limited to 'lib')
-rw-r--r--lib/ipv6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ipv6.c b/lib/ipv6.c
index c1b0763..c057600 100644
--- a/lib/ipv6.c
+++ b/lib/ipv6.c
@@ -88,6 +88,8 @@ ipv6_classify(ip_addr *a)
case 14: return IADDR_MULTICAST | SCOPE_UNIVERSE;
}
}
+ if (!x && !a->addr[1] && !a->addr[2] && a->addr[3] == 1)
+ return IADDR_HOST | SCOPE_HOST; /* Loopback address */
return IADDR_INVALID;
}