ref: 57ed5cc3f033446311b32181e72128326d80b9ef
parent: cf5095143f01423a8bef7a5ed347dc58bde20857
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Feb 13 03:46:49 EST 2019
devip: ipv6 loopback ::1 has link-local scope
--- a/sys/src/9/ip/ipifc.c
+++ b/sys/src/9/ip/ipifc.c
@@ -77,7 +77,7 @@
{
if(isv4(addr) || ipcmp(addr, IPnoaddr) == 0)
return unknownv6;
- else if(islinklocal(addr) ||
+ else if(islinklocal(addr) || ipcmp(addr, v6loopback) == 0 ||
isv6mcast(addr) && (addr[1] & 0xF) <= Link_local_scop)
return linklocalv6;
else
--- a/sys/src/9/ip/ipv6.h
+++ b/sys/src/9/ip/ipv6.h
@@ -166,7 +166,6 @@
extern uchar v6solicitednodemask[IPaddrlen];
extern uchar v6Unspecified[IPaddrlen];
extern uchar v6loopback[IPaddrlen];
-extern uchar v6loopbackmask[IPaddrlen];
extern uchar v6linklocal[IPaddrlen];
extern uchar v6linklocalmask[IPaddrlen];
extern uchar v6multicast[IPaddrlen];