ieee802_11_auth.c File Reference

hostapd / IEEE 802.11 authentication (ACL) More...

#include "includes.h"
#include "hostapd.h"
#include "config.h"
#include "ieee802_11.h"
#include "ieee802_11_auth.h"
#include "radius/radius.h"
#include "radius/radius_client.h"
#include "eloop.h"
Include dependency graph for ieee802_11_auth.c:

Go to the source code of this file.

Data Structures

struct  hostapd_cached_radius_acl
struct  hostapd_acl_query_data

Defines

#define RADIUS_ACL_TIMEOUT   30

Functions

int hostapd_allowed_address (struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id)
 Check whether a specified STA can be authenticated.
int hostapd_acl_init (struct hostapd_data *hapd)
void hostapd_acl_deinit (struct hostapd_data *hapd)
 Deinitialize IEEE 802.11 ACL.
int hostapd_acl_reconfig (struct hostapd_data *hapd, struct hostapd_config *oldconf)

Detailed Description

hostapd / IEEE 802.11 authentication (ACL)

Copyright
Copyright (c) 2003-2007, 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.

Access control list for IEEE 802.11 authentication can uses statically configured ACL from configuration files or an external RADIUS server. Results from external RADIUS queries are cached to allow faster authentication frame processing.

Definition in file ieee802_11_auth.c.


Function Documentation

void hostapd_acl_deinit ( struct hostapd_data hapd  ) 

Deinitialize IEEE 802.11 ACL.

Parameters:
hapd hostapd BSS data

Definition at line 518 of file ieee802_11_auth.c.

Here is the call graph for this function:

int hostapd_acl_init ( struct hostapd_data hapd  ) 

hostapd_acl_init: Initialize IEEE 802.11 ACL : hostapd BSS data Returns: 0 on success, -1 on failure

Definition at line 499 of file ieee802_11_auth.c.

Here is the call graph for this function:

int hostapd_allowed_address ( struct hostapd_data hapd,
const u8 *  addr,
const u8 *  msg,
size_t  len,
u32 *  session_timeout,
u32 *  acct_interim_interval,
int *  vlan_id 
)

Check whether a specified STA can be authenticated.

Parameters:
hapd hostapd BSS data
addr MAC address of the STA
msg Authentication message
len Length of msg in octets
session_timeout Buffer for returning session timeout (from RADIUS)
acct_interim_interval Buffer for returning account interval (from RADIUS)
vlan_id Buffer for returning VLAN ID
Returns:
HOSTAPD_ACL_ACCEPT, HOSTAPD_ACL_REJECT, or HOSTAPD_ACL_PENDING

Definition at line 221 of file ieee802_11_auth.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:29 2009 for hostapd by  doxygen 1.6.1