From owner-freebsd-net Fri Mar 2 4:16:38 2001 Delivered-To: freebsd-net@freebsd.org Received: from syncopation-03.iinet.net.au (syncopation-03.iinet.net.au [203.59.24.49]) by hub.freebsd.org (Postfix) with SMTP id 0CBFD37B71B for ; Fri, 2 Mar 2001 04:16:33 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 29264 invoked by uid 666); 2 Mar 2001 12:28:11 -0000 Received: from i087-141.nv.iinet.net.au (HELO elischer.org) (203.59.87.141) by mail.m.iinet.net.au with SMTP; 2 Mar 2001 12:28:11 -0000 Message-ID: <3A9F8F15.8DE2B815@elischer.org> Date: Fri, 02 Mar 2001 04:16:21 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Harti Brandt Cc: Marco Molteni , freebsd-net@FreeBSD.ORG Subject: Re: How to implement a transport protocol with netgraph? (2) References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Harti Brandt wrote: > > On Thu, 1 Mar 2001, Julian Elischer wrote: > > JE>> MM>timers, buffers, retransmissions and friends. > JE> > JE>you can certainly do that in netgraph. > JE>there are issues with locking in that a timer must not jump into a node while > JE>the node is locked, but there is a method for doing that. I will be adding more > JE>support for it so that it is easier to do. Add a small 'stub' function that does > JE>nothing but call the 'real' timer function through the locking mechanism. > > >From reading the man page or the articel I was under the impression, that > the entire netgraph runs at splnet. So I thought I just do a splnet in the > timer function and that's it. No problems on my UP machine so far :-) I'm > wrong? that is correct for -stable (4.x) for 5.x it will have to be different as there are no spl levels any more. I will have a function specifically for timeouts and timers but I haven't finished writing it yet. > > harti > -- > harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private > brandt@fokus.gmd.de, harti@begemot.org -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message