make sure to accept only IPv6 packet.
Obtained from: KAME
This commit is contained in:
parent
67fa4b4d82
commit
8ff2243783
@ -1096,6 +1096,9 @@ ip6_savecontrol(in6p, mp, ip6, m)
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION)
|
||||
return;
|
||||
|
||||
/* RFC 2292 sec. 5 */
|
||||
if ((in6p->in6p_flags & IN6P_PKTINFO) != 0) {
|
||||
struct in6_pktinfo pi6;
|
||||
|
Loading…
x
Reference in New Issue
Block a user