Initialize if_ibytes and if_obytes to zero.
PR: 1376 Submitted by: risner@stdio.com
This commit is contained in:
parent
0f87b00d6b
commit
e2f6977240
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user