Defines | Functions
accounting.c File Reference
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "drivers/driver.h"
#include "radius/radius.h"
#include "radius/radius_client.h"
#include "hostapd.h"
#include "ieee802_1x.h"
#include "ap_config.h"
#include "sta_info.h"
#include "accounting.h"
Include dependency graph for accounting.c:

Go to the source code of this file.

Defines

#define ACCT_DEFAULT_UPDATE_INTERVAL   300

Functions

void accounting_deinit (struct hostapd_data *hapd)
int accounting_init (struct hostapd_data *hapd)
static void accounting_interim_update (void *eloop_ctx, void *timeout_ctx)
static struct radius_msgaccounting_msg (struct hostapd_data *hapd, struct sta_info *sta, int status_type)
static RadiusRxResult accounting_receive (struct radius_msg *msg, struct radius_msg *req, const u8 *shared_secret, size_t shared_secret_len, void *data)
static void accounting_report_state (struct hostapd_data *hapd, int on)
static void accounting_sta_get_id (struct hostapd_data *hapd, struct sta_info *sta)
void accounting_sta_interim (struct hostapd_data *hapd, struct sta_info *sta)
static void accounting_sta_report (struct hostapd_data *hapd, struct sta_info *sta, int stop)
void accounting_sta_start (struct hostapd_data *hapd, struct sta_info *sta)
void accounting_sta_stop (struct hostapd_data *hapd, struct sta_info *sta)
static int accounting_sta_update_stats (struct hostapd_data *hapd, struct sta_info *sta, struct hostap_sta_driver_data *data)

Define Documentation

#define ACCT_DEFAULT_UPDATE_INTERVAL   300

Definition at line 32 of file accounting.c.


Function Documentation

void accounting_deinit ( struct hostapd_data hapd)

accounting_deinit: Deinitilize accounting : hostapd BSS data

Definition at line 496 of file accounting.c.

int accounting_init ( struct hostapd_data hapd)

accounting_init: Initialize accounting : hostapd BSS data Returns: 0 on success, -1 on failure

Definition at line 476 of file accounting.c.

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

Definition at line 210 of file accounting.c.

static struct radius_msg* accounting_msg ( struct hostapd_data hapd,
struct sta_info sta,
int  status_type 
) [static, read]

Definition at line 38 of file accounting.c.

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

accounting_receive - Process the RADIUS frames from Accounting Server : RADIUS response message : RADIUS request message : RADIUS shared secret : Length of shared_secret in octets : Context data (struct hostapd_data *) Returns: Processing status

Definition at line 425 of file accounting.c.

static void accounting_report_state ( struct hostapd_data hapd,
int  on 
) [static]

Definition at line 444 of file accounting.c.

static void accounting_sta_get_id ( struct hostapd_data hapd,
struct sta_info sta 
) [static]

Definition at line 404 of file accounting.c.

void accounting_sta_interim ( struct hostapd_data hapd,
struct sta_info sta 
)

accounting_sta_interim - Send a interim STA accounting report : hostapd BSS data : The station

Definition at line 377 of file accounting.c.

static void accounting_sta_report ( struct hostapd_data hapd,
struct sta_info sta,
int  stop 
) [static]

Definition at line 272 of file accounting.c.

void accounting_sta_start ( struct hostapd_data hapd,
struct sta_info sta 
)

accounting_sta_start - Start STA accounting : hostapd BSS data : The station

Definition at line 235 of file accounting.c.

void accounting_sta_stop ( struct hostapd_data hapd,
struct sta_info sta 
)

accounting_sta_stop - Stop STA accounting : hostapd BSS data : The station

Definition at line 389 of file accounting.c.

static int accounting_sta_update_stats ( struct hostapd_data hapd,
struct sta_info sta,
struct hostap_sta_driver_data data 
) [static]

Definition at line 185 of file accounting.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:22