ieee802_1x.c File Reference

hostapd / IEEE 802.1X-2004 Authenticator More...

#include "includes.h"
#include "hostapd.h"
#include "ieee802_1x.h"
#include "accounting.h"
#include "radius/radius.h"
#include "radius/radius_client.h"
#include "eapol_sm.h"
#include "md5.h"
#include "crypto.h"
#include "eloop.h"
#include "sta_info.h"
#include "wpa.h"
#include "preauth.h"
#include "pmksa_cache.h"
#include "driver_i.h"
#include "hw_features.h"
#include "eap_server/eap.h"
#include "ieee802_11_defs.h"
#include "wpa_ctrl.h"
Include dependency graph for ieee802_1x.c:

Go to the source code of this file.

Data Structures

struct  sta_id_search

Functions

void ieee802_1x_set_sta_authorized (struct hostapd_data *hapd, struct sta_info *sta, int authorized)
void ieee802_1x_tx_key (struct hostapd_data *hapd, struct sta_info *sta)
const char * radius_mode_txt (struct hostapd_data *hapd)
int radius_sta_rate (struct hostapd_data *hapd, struct sta_info *sta)
char * eap_type_text (u8 type)
void ieee802_1x_receive (struct hostapd_data *hapd, const u8 *sa, const u8 *buf, size_t len)
 Process the EAPOL frames from the Supplicant.
void ieee802_1x_new_station (struct hostapd_data *hapd, struct sta_info *sta)
 Start IEEE 802.1X authentication.
void ieee802_1x_free_station (struct sta_info *sta)
void ieee802_1x_abort_auth (struct hostapd_data *hapd, struct sta_info *sta)
int ieee802_1x_init (struct hostapd_data *hapd)
void ieee802_1x_deinit (struct hostapd_data *hapd)
int ieee802_1x_reconfig (struct hostapd_data *hapd, struct hostapd_config *oldconf, struct hostapd_bss_config *oldbss)
int ieee802_1x_tx_status (struct hostapd_data *hapd, struct sta_info *sta, const u8 *buf, size_t len, int ack)
u8 * ieee802_1x_get_identity (struct eapol_state_machine *sm, size_t *len)
u8 * ieee802_1x_get_radius_class (struct eapol_state_machine *sm, size_t *len, int idx)
const u8 * ieee802_1x_get_key (struct eapol_state_machine *sm, size_t *len)
void ieee802_1x_notify_port_enabled (struct eapol_state_machine *sm, int enabled)
void ieee802_1x_notify_port_valid (struct eapol_state_machine *sm, int valid)
void ieee802_1x_notify_pre_auth (struct eapol_state_machine *sm, int pre_auth)
int ieee802_1x_get_mib (struct hostapd_data *hapd, char *buf, size_t buflen)
int ieee802_1x_get_mib_sta (struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen)

Detailed Description

hostapd / IEEE 802.1X-2004 Authenticator

Copyright
Copyright (c) 2002-2008, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file ieee802_1x.c.


Function Documentation

void ieee802_1x_new_station ( struct hostapd_data hapd,
struct sta_info sta 
)

Start IEEE 802.1X authentication.

Parameters:
hapd hostapd BSS data
sta The station

This function is called to start IEEE 802.1X authentication when a new station completes IEEE 802.11 association.

Definition at line 839 of file ieee802_1x.c.

Here is the call graph for this function:

void ieee802_1x_receive ( struct hostapd_data hapd,
const u8 *  sa,
const u8 *  buf,
size_t  len 
)

Process the EAPOL frames from the Supplicant.

Parameters:
hapd hostapd BSS data
sa Source address (sender of the EAPOL frame)
buf EAPOL frame
len Length of buf in octets

This function is called for each incoming EAPOL frame from the interface

Definition at line 679 of file ieee802_1x.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:17:33 2009 for hostapd by  doxygen 1.6.1