diff options
Diffstat (limited to 'net/ieee802154/6lowpan/6lowpan_i.h')
-rw-r--r-- | net/ieee802154/6lowpan/6lowpan_i.h | 25 |
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 | ||
6 | struct lowpan_create_arg { | 8 | struct lowpan_create_arg { |
@@ -34,8 +36,31 @@ static inline u32 ieee802154_addr_hash(const struct ieee802154_addr *a) | |||
34 | } | 36 | } |
35 | } | 37 | } |
36 | 38 | ||
39 | struct lowpan_dev_record { | ||
40 | struct net_device *ldev; | ||
41 | struct list_head list; | ||
42 | }; | ||
43 | |||
44 | /* private device info */ | ||
45 | struct 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 | |||
51 | static inline struct | ||
52 | lowpan_dev_info *lowpan_dev_info(const struct net_device *dev) | ||
53 | { | ||
54 | return netdev_priv(dev); | ||
55 | } | ||
56 | |||
57 | extern struct list_head lowpan_devices; | ||
58 | |||
37 | int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); | 59 | int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); |
38 | void lowpan_net_frag_exit(void); | 60 | void lowpan_net_frag_exit(void); |
39 | int lowpan_net_frag_init(void); | 61 | int lowpan_net_frag_init(void); |
40 | 62 | ||
63 | void lowpan_rx_init(void); | ||
64 | void lowpan_rx_exit(void); | ||
65 | |||
41 | #endif /* __IEEE802154_6LOWPAN_I_H__ */ | 66 | #endif /* __IEEE802154_6LOWPAN_I_H__ */ |