diff options
author | steve <steve@FreeBSD.org> | 1998-02-01 05:36:44 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-02-01 05:36:44 +0000 |
commit | ea3eabd5ee80a7a15d2f8815cecf05da3eb988a4 (patch) | |
tree | 5d57afd1797802eaba5f1a4e23e6ac810d32caaa /sys/net/if_tun.c | |
parent | 77577a1efb801cdedda0dd51bb327cc6a52a5939 (diff) | |
download | FreeBSD-src-ea3eabd5ee80a7a15d2f8815cecf05da3eb988a4.zip FreeBSD-src-ea3eabd5ee80a7a15d2f8815cecf05da3eb988a4.tar.gz |
Revert previous commit. Remove all ifp->if_* = 0 initializations,
since pkh made tunctl static in revision 1.17 these are already
guaranteed to be zero'd and tunattach will only be called once.
Pointed out by: Bruce Evans and Bill Fenner
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index b7ce584..b109a06 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -130,13 +130,6 @@ tunattach(dummy) ifp->if_output = tunoutput; ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST; ifp->if_snd.ifq_maxlen = ifqmaxlen; - ifp->if_collisions = 0; - ifp->if_ierrors = 0; - ifp->if_oerrors = 0; - ifp->if_ipackets = 0; - ifp->if_opackets = 0; - ifp->if_ibytes = 0; - ifp->if_obytes = 0; if_attach(ifp); #if NBPFILTER > 0 bpfattach(ifp, DLT_NULL, sizeof(u_int)); |