aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_das.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-17 16:30:01 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-17 16:30:01 (GMT)
commit8047a958099516f570eca35dc6f3885a5809633a (patch)
treec128227aa07a905e63dc7ec42c4f2aa80698a453 /src/radius/radius_das.h
parentfc2a924a8c984b838a838a08e259fb4fef265152 (diff)
downloadhostap-8047a958099516f570eca35dc6f3885a5809633a.zip
hostap-8047a958099516f570eca35dc6f3885a5809633a.tar.gz
hostap-8047a958099516f570eca35dc6f3885a5809633a.tar.bz2
RADIUS DAS: Add support for Disconnect-Request
Calling-Station-Id, Acct-Session-Id, and User-Name attributes in a Disconnect-Request message can now be used to indicate which station is to be disconnected. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius/radius_das.h')
-rw-r--r--src/radius/radius_das.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/radius/radius_das.h b/src/radius/radius_das.h
index c3d501d..d0719ed 100644
--- a/src/radius/radius_das.h
+++ b/src/radius/radius_das.h
@@ -11,6 +11,20 @@
struct radius_das_data;
+enum radius_das_res {
+ RADIUS_DAS_SUCCESS,
+ RADIUS_DAS_NAS_MISMATCH,
+ RADIUS_DAS_SESSION_NOT_FOUND
+};
+
+struct radius_das_attrs {
+ const u8 *sta_addr;
+ const u8 *user_name;
+ size_t user_name_len;
+ const u8 *acct_session_id;
+ size_t acct_session_id_len;
+};
+
struct radius_das_conf {
int port;
const u8 *shared_secret;
@@ -18,6 +32,9 @@ struct radius_das_conf {
const struct hostapd_ip_addr *client_addr;
unsigned int time_window;
int require_event_timestamp;
+ void *ctx;
+ enum radius_das_res (*disconnect)(void *ctx,
+ struct radius_das_attrs *attr);
};
struct radius_das_data *