diff options
author | phk <phk@FreeBSD.org> | 1996-06-09 17:24:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-06-09 17:24:25 +0000 |
commit | b59b9ce27dfbc40412a282161e4f22dfcb330c46 (patch) | |
tree | d8fae7a7a85ee1acdd8690377fa5aa40bf399007 /sys | |
parent | f9785b8e52f63c3bbd5017caab8b2e08c4171e36 (diff) | |
download | FreeBSD-src-b59b9ce27dfbc40412a282161e4f22dfcb330c46.zip FreeBSD-src-b59b9ce27dfbc40412a282161e4f22dfcb330c46.tar.gz |
Also count bytes in if_tun. kern/1253
Reviewed by: phk
Submitted by: John Capo <jc@irbs.com>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 6793fd3..972b6fe 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -353,6 +353,7 @@ tunoutput(ifp, m0, dst, rt) ifp->if_collisions++; return (ENOBUFS); } + ifp->if_obytes += m0->m_pkthdr.len; IF_ENQUEUE(&ifp->if_snd, m0); splx(s); ifp->if_opackets++; @@ -578,6 +579,7 @@ tunwrite(dev_t dev, struct uio *uio, int flag) } IF_ENQUEUE(&ipintrq, top); splx(s); + ifp->if_ibytes += tlen; ifp->if_ipackets++; schednetisr(NETISR_IP); return error; |