Date: Wed, 14 Jan 1998 21:21:22 +0100 (CET) From: "Georg-W. Koltermann" <gwk@cycle.dkrz.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/5491: ppp interface doesnt count output packets Message-ID: <199801142021.VAA00678@cycle.dkrz.de>
next in thread | raw e-mail | index | archive | help
>Number: 5491
>Category: kern
>Synopsis: ppp interface doesnt count output packets
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 15 00:50:42 PST 1998
>Last-Modified:
>Originator: Georg-W. Koltermann
>Organization:
Silicon Graphics GmbH Germany
>Release: FreeBSD 2.2.5-RELEASE i386
>Environment:
PC with ISDN connection (bisdn-0.97, bisdntest-3) via ppp
>Description:
It seems the ppp interface doesnt count output packets.
The connection works normally, but only the input packet
count ever increments in the netstat -i display.
>How-To-Repeat:
Obvious from netstat -i.
>Fix:
The following fix has been in use for some time and does
not cause ill side effects. There may be a better solution,
I am not really a kernel hacker.
--- net/if_ppp.c.old Wed Jan 14 21:14:19 1998
+++ net/if_ppp.c Mon Dec 22 21:30:23 1997
@@ -998,6 +998,7 @@
* is called. Either way, it's sent... No big deal.. :-)
*/
sc->sc_togo = m;
+ sc->sc_if.if_opackets++;
(*sc->sc_start)(sc);
}
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801142021.VAA00678>
