From owner-freebsd-hackers Sat Jun 10 9:45:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 6749437C746; Sat, 10 Jun 2000 09:44:37 -0700 (PDT) (envelope-from julian@elischer.org) Received: from muzak.iinet.net.au (muzak.iinet.net.au [203.59.24.237]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id AAA04875; Sun, 11 Jun 2000 00:44:24 +0800 Received: from jules.elischer.org (reggae-12-109.nv.iinet.net.au [203.59.92.109]) by muzak.iinet.net.au (8.8.5/8.8.5) with SMTP id AAA16489; Sun, 11 Jun 2000 00:44:15 +0800 Message-ID: <39426FBE.167EB0E7@elischer.org> Date: Sat, 10 Jun 2000 09:41:34 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Roger Hardiman Cc: multimedia@freebsd.org, hackers@freebsd.org Subject: [Fwd: Re: Queries about Netgraph] Content-Type: multipart/mixed; boundary="------------794BDF32446B9B3D2781E494" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------794BDF32446B9B3D2781E494 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I include an email from Benno Rice who has done quite a bit of work on IrDA using Netgraph. You two should talk. julian -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v --------------794BDF32446B9B3D2781E494 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Return-Path: Received: from hiro.netizen.com.au (postfix@hiro.netizen.com.au [203.30.75.2]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id VAA91527 for ; Tue, 30 May 2000 21:51:18 -0700 (PDT) Received: by hiro.netizen.com.au (Postfix, from userid 516) id D7FF8215EC; Wed, 31 May 2000 14:51:09 +1000 (EST) Date: Wed, 31 May 2000 14:51:09 +1000 From: Benno Rice To: Julian Elischer Cc: Archie Cobbs Subject: Re: Queries about Netgraph Message-ID: <20000531145109.B411@netizen.com.au> References: <200005301641.JAA32015@bubba.whistle.com> <3933F72A.41C67EA6@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <3933F72A.41C67EA6@elischer.org>; from Julian Elischer on Tue, May 30, 2000 at 10:15:22AM -0700 On Tue, May 30, 2000 at 10:15:22AM -0700, Julian Elischer wrote: > Archie Cobbs wrote: > > > > Benno Rice writes: > > > I'm writing an IrDA stack using netgraph, and I was wanting to clarify > > > a couple of small things. > > great. I was looking at doing similar.. I even have all the IrDA > documentation on my machine here somewhere. Yeah, I've downloaded all the specs. Should have IrLAP and part of IrLMP working soon. > > > Also, is it possible to pass such linked lists to other nodes? > > > > > > Basically one part of the IrLAP protocol is a process called "discovery" > > > whereby a device discovers all the other devices within range. It then > > > passes all the details of those devices to the IrLMP layer. I'd like to > > > pass those details up as a linked list of structs. > > > > > > Is this doable in Netgraph or should I try another approach? > > I think I'd treat each discovered device as a separate message. Yeah. Sounds best. > I actually decided that IrDA wasn;t a very good fit > for netgraph, but I can't remember why, maybe because IrDA > has so many breakages of layering. Doesn't seem so bad so far. There's just a lot of crosstalk between layers. > > > (IrLAP == Infrared Link Access Protocol and IrLMP == Infrared Link Management > > > Protocol btw) > > > > You can't pass a linked list in a control message because a linked > > list implies pointers. A control message only contains a chunk of > > data, i.e., 0 or more bytes (like a packet). So the thing to do in > > this instance is to copy your linked list into a (variable sized) > > array and put that array into the payload of the control message. > > or use a shower of individual 'discovery' messages. > it doesn't happen that often.. Yeah. Sounds good. -- Benno Rice "No, no. We're *sweet* and XNFP Aries Dark Subculture- *innocent* evil bastards." friendly Internet Geek benno@netizen.com.au "Defend your joy" --------------794BDF32446B9B3D2781E494-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message