6lowpan_i.h 989 B

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