On Mon, Dec 02, 2013 at 11:38:27AM +0100, Jacob Erlbeck wrote: > Or do you rather recommend to use msg->l2h + msgb_l2len(msg) instead of > msg->tail directly?
I think using msg->l2h + msgb_l2len is the correct thing to use. There could be other information in the message (yes, I strtok and other things I did to the message would break things) > And why do you use msgb_length() and not msgb_l2len()? Please us l2len. My example was wrong. Thanks for noticing that!
