xref: /dflybsd-src/contrib/wpa_supplicant/src/ap/ndisc_snoop.h (revision 3a84a4273475ed07d0ab1c2dfeffdfedef35d9cd)
1*a1157835SDaniel Fojt /*
2*a1157835SDaniel Fojt  * Neighbor Discovery snooping for Proxy ARP
3*a1157835SDaniel Fojt  * Copyright (c) 2014, Qualcomm Atheros, Inc.
4*a1157835SDaniel Fojt  *
5*a1157835SDaniel Fojt  * This software may be distributed under the terms of the BSD license.
6*a1157835SDaniel Fojt  * See README for more details.
7*a1157835SDaniel Fojt  */
8*a1157835SDaniel Fojt 
9*a1157835SDaniel Fojt #ifndef NDISC_SNOOP_H
10*a1157835SDaniel Fojt #define NDISC_SNOOP_H
11*a1157835SDaniel Fojt 
12*a1157835SDaniel Fojt #if defined(CONFIG_PROXYARP) && defined(CONFIG_IPV6)
13*a1157835SDaniel Fojt 
14*a1157835SDaniel Fojt int ndisc_snoop_init(struct hostapd_data *hapd);
15*a1157835SDaniel Fojt void ndisc_snoop_deinit(struct hostapd_data *hapd);
16*a1157835SDaniel Fojt void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta);
17*a1157835SDaniel Fojt 
18*a1157835SDaniel Fojt #else /* CONFIG_PROXYARP && CONFIG_IPV6 */
19*a1157835SDaniel Fojt 
ndisc_snoop_init(struct hostapd_data * hapd)20*a1157835SDaniel Fojt static inline int ndisc_snoop_init(struct hostapd_data *hapd)
21*a1157835SDaniel Fojt {
22*a1157835SDaniel Fojt 	return 0;
23*a1157835SDaniel Fojt }
24*a1157835SDaniel Fojt 
ndisc_snoop_deinit(struct hostapd_data * hapd)25*a1157835SDaniel Fojt static inline void ndisc_snoop_deinit(struct hostapd_data *hapd)
26*a1157835SDaniel Fojt {
27*a1157835SDaniel Fojt }
28*a1157835SDaniel Fojt 
sta_ip6addr_del(struct hostapd_data * hapd,struct sta_info * sta)29*a1157835SDaniel Fojt static inline void sta_ip6addr_del(struct hostapd_data *hapd,
30*a1157835SDaniel Fojt 				   struct sta_info *sta)
31*a1157835SDaniel Fojt {
32*a1157835SDaniel Fojt }
33*a1157835SDaniel Fojt 
34*a1157835SDaniel Fojt #endif /* CONFIG_PROXYARP && CONFIG_IPV6 */
35*a1157835SDaniel Fojt 
36*a1157835SDaniel Fojt #endif /* NDISC_SNOOP_H */
37