Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 1998 12:50:01 -0800 (PST)
From:      Steve Price <sprice@hiwaay.net>
To:        freebsd-bugs
Subject:   Re: misc/1376
Message-ID:  <199801252050.MAA18265@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/1376; it has been noted by GNATS.

From: Steve Price <sprice@hiwaay.net>
To: Bill Fenner <fenner@parc.xerox.com>
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801252050.MAA18265>