ieee802_11_auth.c File Reference

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

Go to the source code of this file.

Classes

struct  hostapd_acl_query_data
struct  hostapd_cached_radius_acl

Defines

#define RADIUS_ACL_TIMEOUT   30

Functions

static void hostapd_acl_cache_free (struct hostapd_cached_radius_acl *acl_cache)
static int hostapd_acl_cache_get (struct hostapd_data *hapd, const u8 *addr, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id)
void hostapd_acl_deinit (struct hostapd_data *hapd)
static void hostapd_acl_expire (void *eloop_ctx, void *timeout_ctx)
static void hostapd_acl_expire_cache (struct hostapd_data *hapd, time_t now)
static void hostapd_acl_expire_queries (struct hostapd_data *hapd, time_t now)
int hostapd_acl_init (struct hostapd_data *hapd)
static void hostapd_acl_query_free (struct hostapd_acl_query_data *query)
static RadiusRxResult hostapd_acl_recv_radius (struct radius_msg *msg, struct radius_msg *req, const u8 *shared_secret, size_t shared_secret_len, void *data)
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)
static int hostapd_radius_acl_query (struct hostapd_data *hapd, const u8 *addr, struct hostapd_acl_query_data *query)

Define Documentation

#define RADIUS_ACL_TIMEOUT   30

Definition at line 31 of file ieee802_11_auth.c.


Function Documentation

static void hostapd_acl_cache_free ( struct hostapd_cached_radius_acl acl_cache  )  [static]

Definition at line 56 of file ieee802_11_auth.c.

static int hostapd_acl_cache_get ( struct hostapd_data hapd,
const u8 addr,
u32 session_timeout,
u32 acct_interim_interval,
int *  vlan_id 
) [static]

Definition at line 68 of file ieee802_11_auth.c.

void hostapd_acl_deinit ( struct hostapd_data hapd  ) 

hostapd_acl_deinit - Deinitialize IEEE 802.11 ACL : hostapd BSS data

Definition at line 508 of file ieee802_11_auth.c.

static void hostapd_acl_expire ( void *  eloop_ctx,
void *  timeout_ctx 
) [static]

hostapd_acl_expire - ACL cache expiration callback : struct hostapd_data * : Not used

Definition at line 368 of file ieee802_11_auth.c.

static void hostapd_acl_expire_cache ( struct hostapd_data hapd,
time_t  now 
) [static]

Definition at line 305 of file ieee802_11_auth.c.

static void hostapd_acl_expire_queries ( struct hostapd_data hapd,
time_t  now 
) [static]

Definition at line 335 of file ieee802_11_auth.c.

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 490 of file ieee802_11_auth.c.

static void hostapd_acl_query_free ( struct hostapd_acl_query_data query  )  [static]

Definition at line 102 of file ieee802_11_auth.c.

static RadiusRxResult hostapd_acl_recv_radius ( struct radius_msg msg,
struct radius_msg req,
const u8 shared_secret,
size_t  shared_secret_len,
void *  data 
) [static]

hostapd_acl_recv_radius - Process incoming RADIUS Authentication messages : RADIUS response message : RADIUS request message : RADIUS shared secret : Length of shared_secret in octets : Context data (struct hostapd_data *) Returns: RADIUS_RX_PROCESSED if RADIUS message was a reply to ACL query (and was processed here) or RADIUS_RX_UNKNOWN if not.

Definition at line 392 of file ieee802_11_auth.c.

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 
)

hostapd_allowed_address - Check whether a specified STA can be authenticated : hostapd BSS data : MAC address of the STA : Authentication message : Length of msg in octets : Buffer for returning session timeout (from RADIUS) : Buffer for returning account interval (from RADIUS) : Buffer for returning VLAN ID Returns: HOSTAPD_ACL_ACCEPT, HOSTAPD_ACL_REJECT, or HOSTAPD_ACL_PENDING

Definition at line 214 of file ieee802_11_auth.c.

static int hostapd_radius_acl_query ( struct hostapd_data hapd,
const u8 addr,
struct hostapd_acl_query_data query 
) [static]

Definition at line 112 of file ieee802_11_auth.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:04:43 2013