Date: Tue, 25 Jan 2000 01:07:14 +0000 From: Brian Somers <brian@Awfulhak.org> To: Peter Wemm <peter@netplex.com.au> Cc: Brian Somers <brian@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: cvs commit: src/sys/conf files src/sys/modules/if_tun Makefile src/sys/net intrq.c intrq.h if_tun.c src/sys/netatalk ddp_input.c src/sys/netatm atm_subr.c src/sys/netinet ip_input.c src/sys/netinet6 ip6_input.c src/sys/netipx ipx_input.c ... Message-ID: <200001250107.BAA36426@hak.lan.Awfulhak.org> In-Reply-To: Message from Peter Wemm <peter@netplex.com.au> of "Tue, 25 Jan 2000 05:59:23 %2B0800." <20000124215923.ACE971CD4@overcee.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> Brian Somers wrote: > > > Added files: > > sys/net intrq.c intrq.h > > Log: > > Move the *intrq variables into net/intrq.c and unconditionally > > include this in all kernels. Declare some const *intrq_present > > variables that can be checked by a module prior to using *intrq > > to queue data. > > This is probably a silly question.. but suppose tun queues up mbufs in a > queue for a protocol that isn't present.. What will happen to them? Lost > forever sitting in the queue with nothing to empty it? How is ppp(8) or > some other user process to know what is in the kernel? That's what the *intrq_present variables are for. The file that's #ifdef'd in with (for example) IPX will say ``const int ipxintrq_present = 1;'' whereas intrq.c says ``const int ipxintrq_present;''. It's up to the module to make sure that if *intrq_present is zero, nothing's dumped into the queue. > Cheers, > -Peter > -- > Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au > "All of this is for nothing if we don't go to the stars" - JMS/B5 -- Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org.uk> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001250107.BAA36426>