changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: devip: ipv6 loopback ::1 has link-local scope

changeset 7034: fe9f017a9d36
parent 7033: 3d8b27771545
child 7035: 65dab5125d9d
author: cinap_lenrek@felloff.net
date: Wed, 13 Feb 2019 08:46:49 +0100
files: sys/src/9/ip/ipifc.c sys/src/9/ip/ipv6.h
description: devip: ipv6 loopback ::1 has link-local scope
     1.1--- a/sys/src/9/ip/ipifc.c
     1.2+++ b/sys/src/9/ip/ipifc.c
     1.3@@ -77,7 +77,7 @@ v6addrtype(uchar *addr)
     1.4 {
     1.5 	if(isv4(addr) || ipcmp(addr, IPnoaddr) == 0)
     1.6 		return unknownv6;
     1.7-	else if(islinklocal(addr) ||
     1.8+	else if(islinklocal(addr) || ipcmp(addr, v6loopback) == 0 ||
     1.9 	    isv6mcast(addr) && (addr[1] & 0xF) <= Link_local_scop)
    1.10 		return linklocalv6;
    1.11 	else
     2.1--- a/sys/src/9/ip/ipv6.h
     2.2+++ b/sys/src/9/ip/ipv6.h
     2.3@@ -166,7 +166,6 @@ extern uchar v6solicitednode[IPaddrlen];
     2.4 extern uchar v6solicitednodemask[IPaddrlen];
     2.5 extern uchar v6Unspecified[IPaddrlen];
     2.6 extern uchar v6loopback[IPaddrlen];
     2.7-extern uchar v6loopbackmask[IPaddrlen];
     2.8 extern uchar v6linklocal[IPaddrlen];
     2.9 extern uchar v6linklocalmask[IPaddrlen];
    2.10 extern uchar v6multicast[IPaddrlen];