]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: introduce lowpan_fetch_skb function
authorAlexander Aring <alex.aring@gmail.com>
Fri, 16 Aug 2013 19:59:56 +0000 (21:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 20:23:11 +0000 (13:23 -0700)
commit9c616b8e15e62e8047927092ef293ffa7748fcd7
tree393f1fb642ac6aeff475f72e5b4a297385c2d5e0
parent6b58d11e88ff393d63e064340afadd186611f6bf
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>
net/ieee802154/6lowpan.h