projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39e50be
)
Allocate new Acct-Session-Id on EAPOL-Logoff
author
Jouni Malinen
<j@w1.fi>
Sun, 23 Nov 2008 08:47:36 +0000
(10:47 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 23 Nov 2008 08:47:36 +0000
(10:47 +0200)
Stop accounting session on EAPOL-Logoff and use new Acct-Session-Id if
STA authenticates again within same association after this.
hostapd/ieee802_1x.c
patch
|
blob
|
history
diff --git
a/hostapd/ieee802_1x.c
b/hostapd/ieee802_1x.c
index
4ba4b23
..
9d331ae
100644
(file)
--- a/
hostapd/ieee802_1x.c
+++ b/
hostapd/ieee802_1x.c
@@
-766,6
+766,8
@@
void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf,
"from STA");
sta->acct_terminate_cause =
RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST;
+ accounting_sta_stop(hapd, sta);
+ accounting_sta_get_id(hapd, sta);
sta->eapol_sm->eapolLogoff = TRUE;
sta->eapol_sm->dot1xAuthEapolLogoffFramesRx++;
break;