svn commit: r216357 - stable/7/sys/netinet

[ Available lists | Index of svn-src-stable-7 | Month of Dec 2010 | Week of 10 Dec 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Bjoern A. Zeeb <bz@FreeBSD.org>
Date
10 Dec 2010 14:07:09
Subject
svn commit: r216357 - stable/7/sys/netinet
Message-ID
201012101407.oBAE79Qn076234@svn.freebsd.org


[ Hide this part ]
Author: bz
Date: Fri Dec 10 14:07:08 2010
New Revision: 216357
URL: http://svn.freebsd.org/changeset/base/216357

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

Modified:
stable/7/sys/netinet/ip_fastfwd.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)

Modified: stable/7/sys/netinet/ip_fastfwd.c
==============================================================================
--- stable/7/sys/netinet/ip_fastfwd.c Fri Dec 10 14:06:50 2010 (r216356)
+++ stable/7/sys/netinet/ip_fastfwd.c Fri Dec 10 14:07:08 2010 (r216357)
@@ -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) {

Elapsed time: 0.072 seconds