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