sync with KAME (don't respond to NI_QTYPE_IPV4ADDR)
Obtained from: KAME Reviewed by: ume, gnn
This commit is contained in:
parent
5b27b04579
commit
a22adbc68c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user