summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-12-05 01:09:48 +0000
committerbz <bz@FreeBSD.org>2010-12-05 01:09:48 +0000
commit62b524634f7ab5c60a750d132e194101f89b8d31 (patch)
tree06df8520cc56560664159b9aac345b3ac4f7e50c /sys/netinet
parent6499e1e754af70ad3a4a9519bc372ce4ef0c4984 (diff)
downloadFreeBSD-src-62b524634f7ab5c60a750d132e194101f89b8d31.zip
FreeBSD-src-62b524634f7ab5c60a750d132e194101f89b8d31.tar.gz
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) MFC after: 4 days
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fastfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
index 0399393..a1adb85 100644
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -218,7 +218,7 @@ ip_fastforward(struct mbuf *m)
*/
hlen = ip->ip_hl << 2;
if (hlen < sizeof(struct ip)) { /* minimum header length */
- IPSTAT_INC(ips_badlen);
+ IPSTAT_INC(ips_badhlen);
goto drop;
}
if (hlen > m->m_len) {
OpenPOWER on IntegriCloud