diff options
author | 2000-02-28 14:05:59 +0000 | |
---|---|---|
committer | 2000-02-28 14:05:59 +0000 | |
commit | b8f4a185c8b93c4cd798fe6558a3f66ca40088d5 (patch) | |
tree | 130a0076f541a3fa15f4446743368daa799c4d4e /sys/netinet6 | |
parent | sync (diff) | |
download | wireguard-openbsd-b8f4a185c8b93c4cd798fe6558a3f66ca40088d5.tar.xz wireguard-openbsd-b8f4a185c8b93c4cd798fe6558a3f66ca40088d5.zip |
upgrade node information query protocol support from 04 draft to
draft-ietf-ipngwg-icmp-name-lookups-05.txt.
NOTE: 04 and 05 has no interoperability, in terms of "ping6 -a".
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/icmp6.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 7cf9f5db7fe..69a705e0a48 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,5 +1,5 @@ -/* $OpenBSD: icmp6.c,v 1.7 2000/02/28 11:55:21 itojun Exp $ */ -/* $KAME: icmp6.c,v 1.70 2000/02/26 07:01:11 itojun Exp $ */ +/* $OpenBSD: icmp6.c,v 1.8 2000/02/28 14:05:59 itojun Exp $ */ +/* $KAME: icmp6.c,v 1.71 2000/02/28 09:25:42 jinmei Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1179,6 +1179,16 @@ ni6_addrs(ni6, m, ifpp) &ifa6->ia_addr.sin6_addr)) iffound = 1; + /* + * IPv4-mapped addresses can only be returned by a + * Node Information proxy, since they represent + * addresses of IPv4-only nodes, which perforce do + * not implement this protocol. + * [icmp-name-lookups-05] + * So we don't support NI_NODEADDR_FLAG_COMPAT in + * this function at this moment. + */ + if (ifa6->ia6_flags & IN6_IFF_ANYCAST) continue; /* we need only unicast addresses */ |