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