From 8edab182af1f019b9360f72e397bc35ed4123442 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Fri, 10 Dec 2010 14:07:08 +0000 Subject: MFC r216192: Use correct field to track statistics counting error as bad header length. This assimilates the code to what ip_input has been doing since r1.1 in this case. Submitted by: Rozhuk Ivan (rozhuk.im gmail.com) Approved by: re (kib) --- sys/netinet/ip_fastfwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index bb8c74a1530e..e84695e74652 100644 --- a/sys/netinet/ip_fastfwd.c +++ b/sys/netinet/ip_fastfwd.c @@ -215,7 +215,7 @@ ip_fastforward(struct mbuf *m) */ hlen = ip->ip_hl << 2; if (hlen < sizeof(struct ip)) { /* minimum header length */ - ipstat.ips_badlen++; + ipstat.ips_badhlen++; goto drop; } if (hlen > m->m_len) { -- cgit v1.3