Date: Sun, 26 May 1996 19:05:45 -0400 (EDT) From: John Capo <jc@irbs.com> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/1253: if_tun counts packets but not bytes Message-ID: <199605262305.TAA13568@irbs.irbs.com> Resent-Message-ID: <199605262310.QAA04856@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605262305.TAA13568>