diff options
author | Martin Mares <mj@ucw.cz> | 1999-08-03 19:36:51 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-08-03 19:36:51 +0000 |
commit | 4f22c9818554087d8f5ab51b8666a7a48d1f4329 (patch) | |
tree | 6a953b961c445f19d7898797e4195b9b8511a2a2 /lib | |
parent | dce267832a0468ed5e596f0b0733b926af7ead3a (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |