summaryrefslogtreecommitdiffstats
path: root/lib/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipv6.c')
-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;
}