Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2010 05:54:02 +0800
From:      rozhuk.im@gmail.com
To:        <freebsd-net@freebsd.org>
Subject:   ip_fastfwd - statistic
Message-ID:  <4cfab87d.8a1ce30a.0d50.ffffa507@mx.google.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0031_01CB9440.D3694360
Content-Type: text/plain;
	charset="windows-1251"
Content-Transfer-Encoding: quoted-printable

Hi!


More correct statistic update in ip_fastfwd
ip_input not affected

Please, add patch to source.

=A0
--
Rozhuk Ivan
=A0=20



------=_NextPart_000_0031_01CB9440.D3694360
Content-Type: application/octet-stream;
	name="ip_fastfwd.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="ip_fastfwd.patch"

--- /usr/src/sys/netinet/ip_fastfwd.c	2010-12-02 16:52:06.000000000 +0800=0A=
+++ /usr/src/sys/netinet/ip_fastfwd.new	2010-12-05 05:47:37.000000000 =
+0800=0A=
@@ -218,7 +218,7 @@=0A=
 	 */=0A=
 	hlen =3D ip->ip_hl << 2;=0A=
 	if (hlen < sizeof(struct ip)) {	/* minimum header length */=0A=
-		IPSTAT_INC(ips_badlen);=0A=
+		IPSTAT_INC(ips_badhlen);=0A=
 		goto drop;=0A=
 	}=0A=
 	if (hlen > m->m_len) {=0A=

------=_NextPart_000_0031_01CB9440.D3694360--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4cfab87d.8a1ce30a.0d50.ffffa507>