aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/6lowpan/6lowpan_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee802154/6lowpan/6lowpan_i.h')
-rw-r--r--net/ieee802154/6lowpan/6lowpan_i.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan/6lowpan_i.h b/net/ieee802154/6lowpan/6lowpan_i.h
index edbe80314b7d..29ec61b01752 100644
--- a/net/ieee802154/6lowpan/6lowpan_i.h
+++ b/net/ieee802154/6lowpan/6lowpan_i.h
@@ -1,6 +1,8 @@
1#ifndef __IEEE802154_6LOWPAN_I_H__ 1#ifndef __IEEE802154_6LOWPAN_I_H__
2#define __IEEE802154_6LOWPAN_I_H__ 2#define __IEEE802154_6LOWPAN_I_H__
3 3
4#include <linux/list.h>
5
4#include <net/inet_frag.h> 6#include <net/inet_frag.h>
5 7
6struct lowpan_create_arg { 8struct lowpan_create_arg {
@@ -34,8 +36,31 @@ static inline u32 ieee802154_addr_hash(const struct ieee802154_addr *a)
34 } 36 }
35} 37}
36 38
39struct lowpan_dev_record {
40 struct net_device *ldev;
41 struct list_head list;
42};
43
44/* private device info */
45struct lowpan_dev_info {
46 struct net_device *real_dev; /* real WPAN device ptr */
47 struct mutex dev_list_mtx; /* mutex for list ops */
48 u16 fragment_tag;
49};
50
51static inline struct
52lowpan_dev_info *lowpan_dev_info(const struct net_device *dev)
53{
54 return netdev_priv(dev);
55}
56
57extern struct list_head lowpan_devices;
58
37int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); 59int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type);
38void lowpan_net_frag_exit(void); 60void lowpan_net_frag_exit(void);
39int lowpan_net_frag_init(void); 61int lowpan_net_frag_init(void);
40 62
63void lowpan_rx_init(void);
64void lowpan_rx_exit(void);
65
41#endif /* __IEEE802154_6LOWPAN_I_H__ */ 66#endif /* __IEEE802154_6LOWPAN_I_H__ */