From owner-freebsd-bugs Sun Jan 25 12:50:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA18283 for freebsd-bugs-outgoing; Sun, 25 Jan 1998 12:50:04 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA18265; Sun, 25 Jan 1998 12:50:01 -0800 (PST) (envelope-from gnats) Date: Sun, 25 Jan 1998 12:50:01 -0800 (PST) Message-Id: <199801252050.MAA18265@hub.freebsd.org> To: freebsd-bugs Cc: From: Steve Price Subject: Re: misc/1376 Reply-To: Steve Price Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/1376; it has been noted by GNATS. From: Steve Price To: Bill Fenner Cc: risner@stdio.com, freebsd-gnats-submit@hub.freebsd.org Subject: Re: misc/1376 Date: Sun, 25 Jan 1998 14:48:47 -0600 Steve Price wrote: > > Index: if_tun.c > =================================================================== > RCS file: /u/FreeBSD/cvs/src/sys/net/if_tun.c,v > retrieving revision 1.41 > diff -u -Lif_tun.c -r1.41 if_tun.c > --- if_tun.c > +++ if_tun.c 1998/01/25 19:22:27 > @@ -125,16 +125,12 @@ > ifp = &tunctl[i].tun_if; > + memset(&ifp->if_data, 0, sizeof(ifp->if_data)); Oops, s/memset/bzero/ because memset doesn't exist in kernel land. > ifp->if_unit = i; > ifp->if_name = "tun"; > ifp->if_mtu = TUNMTU; > ifp->if_ioctl = tunifioctl; > 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; > if_attach(ifp); > #if NBPFILTER > 0 > bpfattach(ifp, DLT_NULL, sizeof(u_int));