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
/ \ [EMAIL PROTECTED]
( OZ ) World tour 2000
---> X_.---._/ presently in: Perth
v
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
[EMAIL PROTECTED] "Defend your joy"