dhcp_snoop.h 590 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * DHCP 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 DHCP_SNOOP_H
  9. #define DHCP_SNOOP_H
  10. #ifdef CONFIG_PROXYARP
  11. int dhcp_snoop_init(struct hostapd_data *hapd);
  12. void dhcp_snoop_deinit(struct hostapd_data *hapd);
  13. #else /* CONFIG_PROXYARP */
  14. static inline int dhcp_snoop_init(struct hostapd_data *hapd)
  15. {
  16. return 0;
  17. }
  18. static inline void dhcp_snoop_deinit(struct hostapd_data *hapd)
  19. {
  20. }
  21. #endif /* CONFIG_PROXYARP */
  22. #endif /* DHCP_SNOOP_H */