diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 6793fd3b46e7..972b6fede427 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;