aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_das.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-01-16 11:09:44 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-16 11:09:44 (GMT)
commit4e871ed1c31cd155ab0867711eb4cc9a9f97d798 (patch)
tree56a78b78eed1e1ee96afccb277138de99efe31a1 /src/radius/radius_das.c
parentb52c0d453fac399ad24340c3879960ac86674e14 (diff)
downloadhostap-4e871ed1c31cd155ab0867711eb4cc9a9f97d798.zip
hostap-4e871ed1c31cd155ab0867711eb4cc9a9f97d798.tar.gz
hostap-4e871ed1c31cd155ab0867711eb4cc9a9f97d798.tar.bz2
RADIUS DAS: Support Acct-Multi-Session-Id as a session identifier
This extends Disconnect-Request support for an additiona session identification attribute. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius/radius_das.c')
-rw-r--r--src/radius/radius_das.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radius/radius_das.c b/src/radius/radius_das.c
index 7aa703c..39ceea8 100644
--- a/src/radius/radius_das.c
+++ b/src/radius/radius_das.c
@@ -42,6 +42,7 @@ static struct radius_msg * radius_das_disconnect(struct radius_das_data *das,
RADIUS_ATTR_CALLING_STATION_ID,
RADIUS_ATTR_NAS_IDENTIFIER,
RADIUS_ATTR_ACCT_SESSION_ID,
+ RADIUS_ATTR_ACCT_MULTI_SESSION_ID,
RADIUS_ATTR_EVENT_TIMESTAMP,
RADIUS_ATTR_MESSAGE_AUTHENTICATOR,
RADIUS_ATTR_CHARGEABLE_USER_IDENTITY,
@@ -129,6 +130,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_ACCT_MULTI_SESSION_ID,
+ &buf, &len, NULL) == 0) {
+ attrs.acct_multi_session_id = buf;
+ attrs.acct_multi_session_id_len = len;
+ }
+
if (radius_msg_get_attr_ptr(msg, RADIUS_ATTR_CHARGEABLE_USER_IDENTITY,
&buf, &len, NULL) == 0) {
attrs.cui = buf;