From owner-freebsd-net@FreeBSD.ORG Sat Dec 4 21:54:08 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E69F1065670 for ; Sat, 4 Dec 2010 21:54:08 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D8658FC15 for ; Sat, 4 Dec 2010 21:54:07 +0000 (UTC) Received: by wyf19 with SMTP id 19so10855717wyf.13 for ; Sat, 04 Dec 2010 13:54:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:reply-to:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :content-language; bh=y4beOEWEiypz11/wbIey2GJEqwLVH82h8SIwcHWFxXE=; b=XxpcTpKzYbIsOpOb9t7/1pPKAdpO/ZoRzI1hqT4E3/cTe+sSvqQqOvrOO9Z5Iwa0UI +N736TCyuKh4smxD16zboQm7mU3Uz0y4veA4EUIn0rmSpKnG4JbkryU5QbwHi1/O3Uro VzK0oRCBzT0RTZ6IqJG+Kln8NqBrL6EY9TOYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=reply-to:from:to:subject:date:message-id:mime-version:content-type :x-mailer:thread-index:content-language; b=Xve+o+9KQpagHvo65+5GK3+pB14T0k4h+YYdWLKV+/fIEgUvOSdR+QPaXzxeLph1Fi 1KjJ5NU9KgDLA/NMqbh5r7B3N1K1FHmhILAXf0hCyMoQc7sbKVNv/dKB4YibTL5kAQkM z9VbehaFqLHWhJuKD1x1TzGaF4BrDDX4cd2XA= Received: by 10.227.146.13 with SMTP id f13mr3720427wbv.90.1291499647039; Sat, 04 Dec 2010 13:54:07 -0800 (PST) Received: from rimwks1x64 ([92.124.32.21]) by mx.google.com with ESMTPS id m10sm2286310wbc.4.2010.12.04.13.54.04 (version=SSLv3 cipher=RC4-MD5); Sat, 04 Dec 2010 13:54:05 -0800 (PST) From: rozhuk.im@gmail.com To: Date: Sun, 5 Dec 2010 05:54:02 +0800 Message-ID: <4cfab87d.8a1ce30a.0d50.ffffa507@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0031_01CB9440.D3694360" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuT/cNMdFhtnH/WSxOQ7cnWd0TdMg== Content-Language: ru Subject: ip_fastfwd - statistic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 21:54:08 -0000 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--