How to send the EAP-Failure packet after Session_timeout

이영재 airhank at imctech.co.kr
Wed Feb 11 23:30:15 EST 2004


Hi...
I use the hostapd-0.1.0 and PCI type wireless module.
I have some question about the hostapd Session timeout function
I add function of sending EAP-Failure packet after session timeout operation...
following source modify for EAP-failure packet..

sta_info.c
--------------------------------------------------------------------
void ap_handle_session_timer(void *eloop_ctx, void *timeout_ctx)
{
 hostapd *hapd = eloop_ctx;
 struct sta_info *sta = timeout_ctx;
 if (!(sta->flags & WLAN_STA_AUTH))
  return;
 ieee802_11_send_deauth(hapd, sta->addr,
          WLAN_REASON_PREV_AUTH_NOT_VALID);
 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
         HOSTAPD_LEVEL_INFO, "deauthenticated due to "
         "session timeout");
 sta->acct_terminate_cause =
  RADIUS_ACCT_TERMINATE_CAUSE_SESSION_TIMEOUT;
  
//modify start 
        sta->eapol_sm->auth_pae.eapLogoff = TRUE;
        eapol_sm_step(sta->eapol_sm);
//end modify
 ap_free_sta(hapd, sta);
}
--------------------------------------------------------------------


I see the debug display 
After session timeout 
----------------------------------------------------------------------
IEEE 802.1X: 00:07:13:58:43:1d AUTH_PAE entering state DISCONNECTED
IEEE 802.1X: Sending canned EAP packet FAILURE to 00:07:13:58:43:1d (identifier 2)
IEEE 802.1X: 00:07:13:58:43:1d REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:07:13:58:43:1d AUTH_PAE entering state CONNECTING
IEEE 802.1X: station 00:07:13:58:43:1d - new auth session, clearing State
IEEE 802.1X: Sending EAP Request-Identity to 00:07:13:58:43:1d (identifier 3)
IEEE 802.1X: 00:07:13:58:43:1d REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:07:13:58:43:1d REAUTH_TIMER entering state INITIALIZE
Sending RADIUS message to accounting server
DATA (TX callback) ACK
DATA (TX callback) fail
Received 20 bytes from RADIUS server
Received RADIUS message
--------------------------------------------------------------------------

Regards hank

================================================
이 영 재

Lee, Young Jae 
Mobile:+82-16-409-0884

 E-mail : airhank at imctech.ac.kr
 MSN Messenger ID : airhank at hanmail.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20040212/b141af68/attachment.htm 


More information about the HostAP mailing list