Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[NETFILTER]: nf_conntrack: Increment error count on parsing IPv4 header

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Yasuyuki Kozakai and committed by
David S. Miller
d87d8469 6460d948

+2 -2
-2
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
··· 131 131 */ 132 132 if ((protoff < 0) || (protoff > (*pskb)->len)) { 133 133 pr_debug("ip6_conntrack_core: can't find proto in pkt\n"); 134 - NF_CT_STAT_INC_ATOMIC(error); 135 - NF_CT_STAT_INC_ATOMIC(invalid); 136 134 return -NF_ACCEPT; 137 135 } 138 136
+2
net/netfilter/nf_conntrack_core.c
··· 625 625 626 626 if ((ret = l3proto->prepare(pskb, hooknum, &dataoff, &protonum)) <= 0) { 627 627 pr_debug("not prepared to track yet or error occured\n"); 628 + NF_CT_STAT_INC_ATOMIC(error); 629 + NF_CT_STAT_INC_ATOMIC(invalid); 628 630 return -ret; 629 631 } 630 632