summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd/hostapd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2006-05-15 20:53:03 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2006-05-15 20:53:03 +0000
commit35e8a265b9c183213211836eca2dfdd91922cd67 (patch)
tree5cfdca7d06eb274a04683e590b313068c181b18f /usr.sbin/hostapd/hostapd.h
parent492d6cdbb19de4eff70307b097ed5d80f49604f2 (diff)
initial implementation of "IP Roaming" in hostapd, see hostapd.conf(5).
ok dlg@
Diffstat (limited to 'usr.sbin/hostapd/hostapd.h')
-rw-r--r--usr.sbin/hostapd/hostapd.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/usr.sbin/hostapd/hostapd.h b/usr.sbin/hostapd/hostapd.h
index adf2f4e4c38..1d5c439c3e9 100644
--- a/usr.sbin/hostapd/hostapd.h
+++ b/usr.sbin/hostapd/hostapd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostapd.h,v 1.16 2005/12/18 17:54:12 reyk Exp $ */
+/* $OpenBSD: hostapd.h,v 1.17 2006/05/15 20:53:02 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
@@ -268,8 +268,17 @@ struct hostapd_iapp {
#define HOSTAPD_IAPP_F_ADD_NOTIFY 0x01
#define HOSTAPD_IAPP_F_RADIOTAP 0x02
+#define HOSTAPD_IAPP_F_ROAMING_ADDRESS 0x04
+#define HOSTAPD_IAPP_F_ROAMING_ROUTE 0x08
#define HOSTAPD_IAPP_F_DEFAULT \
(HOSTAPD_IAPP_F_ADD_NOTIFY | HOSTAPD_IAPP_F_RADIOTAP)
+#define HOSTAPD_IAPP_F_ROAMING \
+ (HOSTAPD_IAPP_F_ROAMING_ROUTE | HOSTAPD_IAPP_F_ROAMING_ADDRESS)
+#define HOSTAPD_IAPP_F_ADD \
+ (HOSTAPD_IAPP_F_ADD_NOTIFY | HOSTAPD_IAPP_F_ROAMING)
+
+ struct hostapd_table *i_addr_tbl;
+ struct hostapd_table *i_route_tbl;
};
struct hostapd_config {
@@ -278,6 +287,9 @@ struct hostapd_config {
struct hostapd_iapp c_iapp;
+ int c_rtsock;
+ int c_rtseq;
+
u_int8_t c_flags;
#define HOSTAPD_CFG_F_APME 0x01
@@ -355,6 +367,8 @@ int hostapd_priv_apme_getnode(struct hostapd_apme *,
struct hostapd_node *);
int hostapd_priv_apme_setnode(struct hostapd_apme *,
struct hostapd_node *node, int);
+int hostapd_priv_roaming(struct hostapd_apme *, struct hostapd_node *,
+ int);
void hostapd_apme_init(struct hostapd_apme *);
int hostapd_apme_deauth(struct hostapd_apme *);
@@ -387,6 +401,14 @@ int hostapd_handle_input(struct hostapd_apme *, u_int8_t *, u_int);
void hostapd_print_ieee80211(u_int, u_int, u_int8_t *, u_int);
+void hostapd_roaming_init(struct hostapd_config *);
+void hostapd_roaming_term(struct hostapd_apme *);
+int hostapd_roaming(struct hostapd_apme *, struct hostapd_node *, int);
+int hostapd_roaming_add(struct hostapd_apme *,
+ struct hostapd_node *node);
+int hostapd_roaming_del(struct hostapd_apme *,
+ struct hostapd_node *node);
+
__END_DECLS
#endif /* _HOSTAPD_H */