6lowpan_i.h 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __6LOWPAN_I_H
  2. #define __6LOWPAN_I_H
  3. #include <linux/netdevice.h>
  4. #include <net/6lowpan.h>
  5. /* caller need to be sure it's dev->type is ARPHRD_6LOWPAN */
  6. static inline bool lowpan_is_ll(const struct net_device *dev,
  7. enum lowpan_lltypes lltype)
  8. {
  9. return lowpan_dev(dev)->lltype == lltype;
  10. }
  11. extern const struct ndisc_ops lowpan_ndisc_ops;
  12. int addrconf_ifid_802154_6lowpan(u8 *eui, struct net_device *dev);
  13. #ifdef CONFIG_6LOWPAN_DEBUGFS
  14. int lowpan_dev_debugfs_init(struct net_device *dev);
  15. void lowpan_dev_debugfs_exit(struct net_device *dev);
  16. int __init lowpan_debugfs_init(void);
  17. void lowpan_debugfs_exit(void);
  18. #else
  19. static inline int lowpan_dev_debugfs_init(struct net_device *dev)
  20. {
  21. return 0;
  22. }
  23. static inline void lowpan_dev_debugfs_exit(struct net_device *dev) { }
  24. static inline int __init lowpan_debugfs_init(void)
  25. {
  26. return 0;
  27. }
  28. static inline void lowpan_debugfs_exit(void) { }
  29. #endif /* CONFIG_6LOWPAN_DEBUGFS */
  30. #endif /* __6LOWPAN_I_H */