On 18/09/2013, Eric Decker <[email protected]> wrote: >> The ip.h file is folder on $TOSROOT/support/sdk/c/blip/lib6lowpan. > That is unix code. It has nothing to do with message_t which is a tinyos > thing.
Actually, the lib6lowpan code is used on the motes with BLIP 2.0. It contains all the message packing/unpacking code for 6LoWPAN. To address the original question: "not easily". The message_t essentially contains the raw packet data and a bunch of meta data associated with it. Looking at my notepad from a couple of years ago, the following components were involved in the (un)wrapping of the message_t data on our hardware: RF212DriverLayer MetadataFlagsLayer TimestampingLayer LowPowerListening(Dummy)Layer PacketLinkLayer Ieee154PacketLayer TinyosNetworkLayer Ieee154MessageLayer and, of course, on top of the Ieee154MessageLayer there are the 6LoWPAN (un)packing routines. As a general pointer, start digging from IPDispatchC/P and work your way through the code from there. You probably also want to ask yourself why you're trying to go from a message_t to IP headers without letting the stack do the proper unwrapping for you. :) Regards, /Johny -- Johny Mattsson Senior Software Engineer DiUS Computing Pty. Ltd. *where ideas are engineered* _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
