ndisc_snoop.h 838 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Neighbor Discovery snooping for Proxy ARP
  3. * Copyright (c) 2014, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef NDISC_SNOOP_H
  9. #define NDISC_SNOOP_H
  10. #if defined(CONFIG_PROXYARP) && defined(CONFIG_IPV6)
  11. int ndisc_snoop_init(struct hostapd_data *hapd);
  12. void ndisc_snoop_deinit(struct hostapd_data *hapd);
  13. void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta);
  14. #else /* CONFIG_PROXYARP && CONFIG_IPV6 */
  15. static inline int ndisc_snoop_init(struct hostapd_data *hapd)
  16. {
  17. return 0;
  18. }
  19. static inline void ndisc_snoop_deinit(struct hostapd_data *hapd)
  20. {
  21. }
  22. static inline void sta_ip6addr_del(struct hostapd_data *hapd,
  23. struct sta_info *sta)
  24. {
  25. }
  26. #endif /* CONFIG_PROXYARP && CONFIG_IPV6 */
  27. #endif /* NDISC_SNOOP_H */