0001
0002 #ifndef __6LOWPAN_I_H
0003 #define __6LOWPAN_I_H
0004
0005 #include <linux/netdevice.h>
0006
0007 #include <net/6lowpan.h>
0008
0009
0010 static inline bool lowpan_is_ll(const struct net_device *dev,
0011 enum lowpan_lltypes lltype)
0012 {
0013 return lowpan_dev(dev)->lltype == lltype;
0014 }
0015
0016 extern const struct ndisc_ops lowpan_ndisc_ops;
0017
0018 int addrconf_ifid_802154_6lowpan(u8 *eui, struct net_device *dev);
0019
0020 #ifdef CONFIG_6LOWPAN_DEBUGFS
0021 void lowpan_dev_debugfs_init(struct net_device *dev);
0022 void lowpan_dev_debugfs_exit(struct net_device *dev);
0023
0024 void __init lowpan_debugfs_init(void);
0025 void lowpan_debugfs_exit(void);
0026 #else
0027 static inline void lowpan_dev_debugfs_init(struct net_device *dev) { }
0028 static inline void lowpan_dev_debugfs_exit(struct net_device *dev) { }
0029
0030 static inline void __init lowpan_debugfs_init(void) { }
0031 static inline void lowpan_debugfs_exit(void) { }
0032 #endif
0033
0034 #endif