From owner-cvs-all Mon Jan 24 17: 7:38 2000 Delivered-To: cvs-all@freebsd.org Received: from awfulhak.org (dynamic-86.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.214]) by hub.freebsd.org (Postfix) with ESMTP id C638714EBC; Mon, 24 Jan 2000 17:07:29 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA45640; Tue, 25 Jan 2000 01:07:13 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA36426; Tue, 25 Jan 2000 01:07:14 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200001250107.BAA36426@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Peter Wemm Cc: Brian Somers , 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 ... In-Reply-To: Message from Peter Wemm of "Tue, 25 Jan 2000 05:59:23 +0800." <20000124215923.ACE971CD4@overcee.netplex.com.au> Date: Tue, 25 Jan 2000 01:07:14 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > 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 Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message