ndisc_snoop.h revision 302408
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 9#ifndef NDISC_SNOOP_H 10#define NDISC_SNOOP_H 11 12#if defined(CONFIG_PROXYARP) && defined(CONFIG_IPV6) 13 14int ndisc_snoop_init(struct hostapd_data *hapd); 15void ndisc_snoop_deinit(struct hostapd_data *hapd); 16void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta); 17 18#else /* CONFIG_PROXYARP && CONFIG_IPV6 */ 19 20static inline int ndisc_snoop_init(struct hostapd_data *hapd) 21{ 22 return 0; 23} 24 25static inline void ndisc_snoop_deinit(struct hostapd_data *hapd) 26{ 27} 28 29static inline void sta_ip6addr_del(struct hostapd_data *hapd, 30 struct sta_info *sta) 31{ 32} 33 34#endif /* CONFIG_PROXYARP && CONFIG_IPV6 */ 35 36#endif /* NDISC_SNOOP_H */ 37