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 
14 int ndisc_snoop_init(struct hostapd_data *hapd);
15 void ndisc_snoop_deinit(struct hostapd_data *hapd);
16 void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta);
17 
18 #else /* CONFIG_PROXYARP && CONFIG_IPV6 */
19 
ndisc_snoop_init(struct hostapd_data * hapd)20 static inline int ndisc_snoop_init(struct hostapd_data *hapd)
21 {
22 	return 0;
23 }
24 
ndisc_snoop_deinit(struct hostapd_data * hapd)25 static inline void ndisc_snoop_deinit(struct hostapd_data *hapd)
26 {
27 }
28 
sta_ip6addr_del(struct hostapd_data * hapd,struct sta_info * sta)29 static 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