Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 1996 05:40:11 GMT
From:      Charlie Root <root@generations.stdio.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/1376: if_tun.c does not init obytes and ibytes
Message-ID:  <199607080540.FAA00653@generations.stdio.com>
Resent-Message-ID: <199607080550.WAA09156@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607080540.FAA00653>