From owner-freebsd-bugs Sun Jul 7 22:50:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA09170 for bugs-outgoing; Sun, 7 Jul 1996 22:50:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA09156; Sun, 7 Jul 1996 22:50:02 -0700 (PDT) Resent-Date: Sun, 7 Jul 1996 22:50:02 -0700 (PDT) Resent-Message-Id: <199607080550.WAA09156@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, risner@stdio.com Received: from generations.stdio.com (generations.stdio.com [204.152.114.70]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA08204 for ; Sun, 7 Jul 1996 22:40:22 -0700 (PDT) Received: (from root@localhost) by generations.stdio.com (8.7.5/8.7.3) id FAA00653; Mon, 8 Jul 1996 05:40:11 GMT Message-Id: <199607080540.FAA00653@generations.stdio.com> Date: Mon, 8 Jul 1996 05:40:11 GMT From: Charlie Root Reply-To: risner@stdio.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/1376: if_tun.c does not init obytes and ibytes Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1376 >Category: misc >Synopsis: if_tun.c does not set if_ibytes and if_obytes to zero. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jul 7 22:50:01 PDT 1996 >Last-Modified: >Originator: Charlie & >Organization: Open World >Release: FreeBSD 2.1-STABLE 062796 i386 >Environment: PPP tunnel device >Description: the if_tun.c net device does (062796) increment number of bytes and number of packets, but only initilizes number of packets to zero. >How-To-Repeat: Look at line 116-117 of if_tun.c where it sets up the initial variables. >Fix: 117d116 < ifp->if_ibytes = 0; 119d117 < ifp->if_obytes = 0; I think this should be fine. please someone who knows more, review and include. James Risner >Audit-Trail: >Unformatted: