6lowpan: add frag information struct
This patch adds a 6lowpan fragmentation struct into cb of skb which is necessary to hold fragmentation information. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4e76ca7f3e
commit
89745c9c41
|
@ -29,6 +29,12 @@
|
||||||
|
|
||||||
#include <net/af_ieee802154.h>
|
#include <net/af_ieee802154.h>
|
||||||
|
|
||||||
|
struct ieee802154_frag_info {
|
||||||
|
__be16 d_tag;
|
||||||
|
u16 d_size;
|
||||||
|
u8 d_offset;
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A control block of skb passed between the ARPHRD_IEEE802154 device
|
* A control block of skb passed between the ARPHRD_IEEE802154 device
|
||||||
* and other stack parts.
|
* and other stack parts.
|
||||||
|
@ -39,6 +45,7 @@ struct ieee802154_mac_cb {
|
||||||
struct ieee802154_addr da;
|
struct ieee802154_addr da;
|
||||||
u8 flags;
|
u8 flags;
|
||||||
u8 seq;
|
u8 seq;
|
||||||
|
struct ieee802154_frag_info frag_info;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb)
|
static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb)
|
||||||
|
|
Loading…
Reference in a new issue