diff options
author | suz <suz@FreeBSD.org> | 2005-10-19 16:27:33 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2005-10-19 16:27:33 +0000 |
commit | c8197b6e73607bd123a10e13cffc9482191db2e5 (patch) | |
tree | c618b2844470f3570d4dfa66a9614346772908ba /sys/netinet6/icmp6.c | |
parent | 44730c0a961e4ab4139bcc86c76abc037cd7bcb5 (diff) | |
download | FreeBSD-src-c8197b6e73607bd123a10e13cffc9482191db2e5.zip FreeBSD-src-c8197b6e73607bd123a10e13cffc9482191db2e5.tar.gz |
sync with KAME (don't respond to NI_QTYPE_IPV4ADDR)
Obtained from: KAME
Reviewed by: ume, gnn
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r-- | sys/netinet6/icmp6.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 16f40ec..573d7c2 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1219,6 +1219,7 @@ ni6_input(m, off) /* FALLTHROUGH */ case NI_QTYPE_FQDN: case NI_QTYPE_NODEADDR: + case NI_QTYPE_IPV4ADDR: switch (ni6->ni_code) { case ICMP6_NI_SUBJ_IPV6: #if ICMP6_NI_SUBJ_IPV6 != 0 @@ -1317,6 +1318,7 @@ ni6_input(m, off) goto bad; break; case NI_QTYPE_NODEADDR: + case NI_QTYPE_IPV4ADDR: if ((icmp6_nodeinfo & 2) == 0) goto bad; break; @@ -1339,6 +1341,9 @@ ni6_input(m, off) sizeof(u_int32_t))) > MCLBYTES) replylen = MCLBYTES; /* XXX: will truncate pkt later */ break; + case NI_QTYPE_IPV4ADDR: + /* unsupported - should respond with unknown Qtype? */ + break; default: /* * XXX: We must return a reply with the ICMP6 code |