Accounting Bug (Dubble sessionid)

Gunter Burchardt gbur
Thu Mar 11 04:23:35 PST 2004


Hello,

Im using hostap with 802.1x and accounting. Everything works really
fine :). But sessionids are not unique! When disabling wlan of your sta
and enabling it after a short period, hostap will give the connection
the same sessionid. Hostap got a disassociate!

 wlan0: STA 00:04:.........:C1 IEEE802.1x: authenticated

 <disable stas wlan>

 wlan0: STA 00:04:.........:C1 IEEE802.11: disassociated

 <enable stas wlan>

wlan0: STA 00:04:.........:C1 IEEE802.11: associated (aid 1)
wlan0: STA 00:04:.........:C1 IEEE802.1X: authenticated

during this i got accouting packets:

 <disable stas wlan>

 rad_recv: Accounting-Request packet from host 192.168.42.44:32777,
 id=4, length=188
        Acct-Session-Id = "3E2433C2-00000007"
        Acct-Status-Type = Stop
        Acct-Authentic = RADIUS
        User-Name = "123456"
        NAS-IP-Address = 192.168.42.0
        NAS-Identifier = "2011"
        NAS-Port = 1
        Called-Station-Id = "00-..-..-..-..-50:intern"
        Calling-Station-Id = "00-..-..-..-..-C1"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 11Mbps 802.11b"
        Acct-Session-Time = 324
        Acct-Input-Packets = 91
        Acct-Output-Packets = 27
        Acct-Input-Octets = 7163
        Acct-Output-Octets = 4913
        Acct-Terminate-Cause = User-Request

 <enable stas wlan>

 rad_recv: Accounting-Request packet from host 192.168.42.44:32777,
 id=12, length=152
        Acct-Session-Id = "3E2433C2-00000007"
        Acct-Status-Type = Start
        Acct-Authentic = RADIUS
        User-Name = "123456"
        NAS-IP-Address = 192.168.42.0
        NAS-Identifier = "2011"
        NAS-Port = 1
        Called-Station-Id = "00-..-..-..-..-50:intern"
        Calling-Station-Id = "00-..-..-..-..-C1"
        NAS-Port-Type = Wireless-802.11
        Connect-Info = "CONNECT 11Mbps 802.11b"

Both sessions got session-id "3E2433C2-00000007"!

regards
Gunter




More information about the Hostap mailing list