Initialize if_ibytes and if_obytes to zero.

PR:		1376
Submitted by:	risner@stdio.com
This commit is contained in:
Steve Price 1998-01-25 17:54:57 +00:00
parent 0f87b00d6b
commit e2f6977240

View File

@ -135,6 +135,8 @@ tunattach(dummy)
ifp->if_oerrors = 0; ifp->if_oerrors = 0;
ifp->if_ipackets = 0; ifp->if_ipackets = 0;
ifp->if_opackets = 0; ifp->if_opackets = 0;
ifp->if_ibytes = 0;
ifp->if_obytes = 0;
if_attach(ifp); if_attach(ifp);
#if NBPFILTER > 0 #if NBPFILTER > 0
bpfattach(ifp, DLT_NULL, sizeof(u_int)); bpfattach(ifp, DLT_NULL, sizeof(u_int));