Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2010 01:09:49 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216192 - head/sys/netinet
Message-ID:  <201012050109.oB519nfq055055@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sun Dec  5 01:09:48 2010
New Revision: 216192
URL: http://svn.freebsd.org/changeset/base/216192

Log:
  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

Modified:
  head/sys/netinet/ip_fastfwd.c

Modified: head/sys/netinet/ip_fastfwd.c
==============================================================================
--- head/sys/netinet/ip_fastfwd.c	Sat Dec  4 23:36:40 2010	(r216191)
+++ head/sys/netinet/ip_fastfwd.c	Sun Dec  5 01:09:48 2010	(r216192)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012050109.oB519nfq055055>