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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi!


More correct statistic update in ip_fastfwd
ip_input not affected

Please, add patch to source.

 
--
Rozhuk Ivan
  



[-- Attachment #2 --]
--- /usr/src/sys/netinet/ip_fastfwd.c	2010-12-02 16:52:06.000000000 +0800
+++ /usr/src/sys/netinet/ip_fastfwd.new	2010-12-05 05:47:37.000000000 +0800
@@ -218,7 +218,7 @@
 	 */
 	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) {
help

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