From owner-freebsd-bugs Sun May 26 16:10:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA04873 for bugs-outgoing; Sun, 26 May 1996 16:10:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA04856; Sun, 26 May 1996 16:10:04 -0700 (PDT) Resent-Date: Sun, 26 May 1996 16:10:04 -0700 (PDT) Resent-Message-Id: <199605262310.QAA04856@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jc@irbs.com Received: from irbs.irbs.com ([199.182.75.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA04184 for ; Sun, 26 May 1996 16:06:17 -0700 (PDT) Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id TAA13568; Sun, 26 May 1996 19:05:45 -0400 (EDT) Message-Id: <199605262305.TAA13568@irbs.irbs.com> Date: Sun, 26 May 1996 19:05:45 -0400 (EDT) From: John Capo Reply-To: jc@irbs.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1253: if_tun counts packets but not bytes Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1253 >Category: kern >Synopsis: if_tun counts packets but not bytes >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 26 16:10:03 PDT 1996 >Last-Modified: >Originator: John Capo >Organization: >Release: FreeBSD 2.1-STABLE i386 >Environment: >Description: >How-To-Repeat: >Fix: *** /usr/stable/src/sys/net/if_tun.c Sun May 5 02:15:28 1996 --- sys/net/if_tun.c Sun May 5 14:14:07 1996 *************** *** 343,348 **** --- 343,349 ---- ifp->if_collisions++; return (ENOBUFS); } + ifp->if_obytes += m0->m_pkthdr.len; IF_ENQUEUE(&ifp->if_snd, m0); splx(s); ifp->if_opackets++; *************** *** 564,569 **** --- 565,571 ---- m_freem(top); return ENOBUFS; } + ifp->if_ibytes += tlen; IF_ENQUEUE(&ipintrq, top); splx(s); ifp->if_ipackets++; >Audit-Trail: >Unformatted: