aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/sta_info.h
diff options
context:
space:
mode:
authorKyeyoon Park <kyeyoonp@qca.qualcomm.com>2014-11-01 06:33:41 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-19 14:47:06 (GMT)
commitbd00c4311c0ea7cd6c731e799c9b1f09cf323bac (patch)
tree67817377fab04ecc7099eca93da94e3ace71304d /src/ap/sta_info.h
parent5c58944d08718e7a8aefddd0e18825c288865604 (diff)
downloadhostap-bd00c4311c0ea7cd6c731e799c9b1f09cf323bac.zip
hostap-bd00c4311c0ea7cd6c731e799c9b1f09cf323bac.tar.gz
hostap-bd00c4311c0ea7cd6c731e799c9b1f09cf323bac.tar.bz2
AP: Add Neighbor Discovery snooping mechanism for Proxy ARP
This commit establishes the infrastructure, and handles the Neighbor Solicitation and Neighbor Advertisement frames. This will be extended in the future to handle other frames. Signed-off-by: Kyeyoon Park <kyeyoonp@qca.qualcomm.com>
Diffstat (limited to 'src/ap/sta_info.h')
-rw-r--r--src/ap/sta_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ap/sta_info.h b/src/ap/sta_info.h
index ac7269f..588a9e2 100644
--- a/src/ap/sta_info.h
+++ b/src/ap/sta_info.h
@@ -14,6 +14,8 @@
#include "common/defs.h"
#endif /* CONFIG_MESH */
+#include "list.h"
+
/* STA flags */
#define WLAN_STA_AUTH BIT(0)
#define WLAN_STA_ASSOC BIT(1)
@@ -47,6 +49,7 @@ struct sta_info {
struct sta_info *hnext; /* next entry in hash table list */
u8 addr[6];
be32 ipaddr;
+ struct dl_list ip6addr; /* list head for struct ip6addr */
u16 aid; /* STA's unique AID (1 .. 2007) or 0 if not yet assigned */
u32 flags; /* Bitfield of WLAN_STA_* */
u16 capability;
@@ -193,6 +196,7 @@ struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta);
struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr);
void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta);
void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
+void ap_sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta);
void hostapd_free_stas(struct hostapd_data *hapd);
void ap_handle_timer(void *eloop_ctx, void *timeout_ctx);
void ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta,