On Wed, Aug 4, 2010 at 7:59 PM, Jon Smirl <[email protected]> wrote:
>>> I'm trying to figure out where to insert 6lowpan support but I'm
>>
>> 6lowpan should be just a listener for all 802.15.4 frames. We have not had
>> come with any interface (other than BSD sockets). You can either implement
>> some custom in-kernel skb interchange mechanism (but keep in mind also
>> other possible users, like ZigBee, ZigBee RF4CE, WirelessHART, MiWi, etc.)
>> or just use in-kernel socket interface (which is used e.g. by 
>> nfs-kernel-server,
>> IIRC).
>
> I've written protocol stacks for other OSes but not Linux.
>
> Can I set the protocol in mac802154_process_data()?
>
>        skb->protocol = htons(ETH_P_6LOWPAN);
>        skb->pkt_type = PACKET_HOST;
>
>        if (in_interrupt())
>                return netif_rx(skb);
>
> And then register my protocol in af_ieee802154 as part of the
> PF_IEEE802154 family?
> What would be a good example for me to follow as a model of the
> architecture of the protocol?

If you could supply me with a framework ready to insert the 6lowpan
protocol code that would help a lot. I can implement the protocol, I'm
having trouble with the integrating it into the Linux networking stack
part. For example a minimal 6lowpan protocol implementation that just
inserts 0x41 (uncompressed IP) as a header, and then strips it out on
receive.

I can hack 6lowpan in by modifying  mac802154_header_create() and
mac802154_process_data() but I don't think that is the correct way to
integrate the protocol.


>
> In RFC4944 6lowpan has a dispatch byte at the front. 00xxxxxx is
> reserved for other protocols. Does that happen to mesh with ZigBee,
> etc?
>
>>> having trouble getting my head around the organization of the code.
>>
>> Maybe I should write some extended 'Design' documentation.
>> Anyway I'll have to prepare that as a part of LinuxKongress talk.
>
> A diagram showing the relationships of the components and mapping them
> to the 802.11 equivalents would make a good slide.
>
>
> --
> Jon Smirl
> [email protected]
>



-- 
Jon Smirl
[email protected]

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to