aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_das.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-17 16:44:46 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-17 16:44:46 (GMT)
commit302fc0a3c77c96f06722dc09b00d792e7029ab5d (patch)
tree76d67b5e55b74c7d21a234beede353b2d2c9f6dd /src/radius/radius_das.c
parente58b5ffed7da3a9ee98b76d0c4c5f95d73e0c2f7 (diff)
downloadhostap-302fc0a3c77c96f06722dc09b00d792e7029ab5d.zip
hostap-302fc0a3c77c96f06722dc09b00d792e7029ab5d.tar.gz
hostap-302fc0a3c77c96f06722dc09b00d792e7029ab5d.tar.bz2
RADIUS DAS: Support Chargeable-User-Identity with Disconnect-Request
Chargeable-User-Identity can now be used in Disconnect-Request to identify the station to be disconnected. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius/radius_das.c')
-rw-r--r--src/radius/radius_das.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radius/radius_das.c b/src/radius/radius_das.c
index a9fcb69..8ecfffc 100644
--- a/src/radius/radius_das.c
+++ b/src/radius/radius_das.c
@@ -97,6 +97,12 @@ static struct radius_msg * radius_das_disconnect(struct radius_das_data *das,
attrs.acct_session_id_len = len;
}
+ if (radius_msg_get_attr_ptr(msg, RADIUS_ATTR_CHARGEABLE_USER_IDENTITY,
+ &buf, &len, NULL) == 0) {
+ attrs.cui = buf;
+ attrs.cui_len = len;
+ }
+
res = das->disconnect(das->ctx, &attrs);
switch (res) {
case RADIUS_DAS_NAS_MISMATCH: