commit | 4666669fc3b83f0d01b08c6b17432563f2eedcba | [log] [tgz] |
---|---|---|
author | Alexander Aring <alex.aring@gmail.com> | Fri Aug 16 21:59:56 2013 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Aug 20 13:23:11 2013 -0700 |
tree | 393f1fb642ac6aeff475f72e5b4a297385c2d5e0 | |
parent | 31afe1f73e46221650acfcb411e6949f4a8f7571 [diff] |
6lowpan: introduce lowpan_fetch_skb function This patch adds a helper function to parse the ipv6 header to a 6lowpan header in stream. This function checks first if we can pull data with a specific length from a skb. If this seems to be okay, we copy skb data to a destination pointer and run skb_pull. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reviewed-by: Werner Almesberger <werner@almesberger.net> Signed-off-by: David S. Miller <davem@davemloft.net>