sync with KAME (don't respond to NI_QTYPE_IPV4ADDR)

Obtained from: KAME
Reviewed by: ume, gnn
This commit is contained in:
SUZUKI Shinsuke 2005-10-19 16:27:33 +00:00
parent 5b27b04579
commit a22adbc68c

View File

@ -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