Also count bytes in if_tun. kern/1253

Reviewed by:	phk
Submitted by:	John Capo <jc@irbs.com>
This commit is contained in:
phk 1996-06-09 17:24:25 +00:00
parent f9785b8e52
commit b59b9ce27d

View File

@ -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;