From 4f22c9818554087d8f5ab51b8666a7a48d1f4329 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Aug 1999 19:36:51 +0000 Subject: Support for IPv6 sockets. How nice one doesn't have to ifdef around ten years of API evolution :-) --- lib/ipv6.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ipv6.c') diff --git a/lib/ipv6.c b/lib/ipv6.c index c1b07637..c057600f 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; } -- cgit v1.2.3