1 #ifndef __IEEE802154_6LOWPAN_REASSEMBLY_H__
2 #define __IEEE802154_6LOWPAN_REASSEMBLY_H__
4 #include <net/inet_frag.h>
6 struct lowpan_create_arg
{
9 const struct ieee802154_addr
*src
;
10 const struct ieee802154_addr
*dst
;
13 /* Equivalent of ipv4 struct ip
15 struct lowpan_frag_queue
{
16 struct inet_frag_queue q
;
20 struct ieee802154_addr saddr
;
21 struct ieee802154_addr daddr
;
24 static inline u32
ieee802154_addr_hash(const struct ieee802154_addr
*a
)
27 case IEEE802154_ADDR_LONG
:
28 return (((__force u64
)a
->extended_addr
) >> 32) ^
29 (((__force u64
)a
->extended_addr
) & 0xffffffff);
30 case IEEE802154_ADDR_SHORT
:
31 return (__force u32
)(a
->short_addr
);
37 int lowpan_frag_rcv(struct sk_buff
*skb
, const u8 frag_type
);
38 void lowpan_net_frag_exit(void);
39 int lowpan_net_frag_init(void);
41 #endif /* __IEEE802154_6LOWPAN_REASSEMBLY_H__ */