wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
accounting.c File Reference

hostapd / RADIUS Accounting More...

#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "eapol_auth/eapol_auth_sm.h"
#include "eapol_auth/eapol_auth_sm_i.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 "ap_drv_ops.h"
#include "accounting.h"

Macros

#define ACCT_DEFAULT_UPDATE_INTERVAL   300
 

Functions

void accounting_sta_start (struct hostapd_data *hapd, struct sta_info *sta)
 Start STA accounting. More...
 
void accounting_sta_stop (struct hostapd_data *hapd, struct sta_info *sta)
 Stop STA accounting. More...
 
void accounting_sta_get_id (struct hostapd_data *hapd, struct sta_info *sta)
 
int accounting_init (struct hostapd_data *hapd)
 accounting_init: Initialize accounting More...
 
void accounting_deinit (struct hostapd_data *hapd)
 accounting_deinit: Deinitialize accounting More...
 

Detailed Description

hostapd / RADIUS Accounting

Function Documentation

void accounting_deinit ( struct hostapd_data hapd)

accounting_deinit: Deinitialize accounting

Parameters
hapdhostapd BSS data
int accounting_init ( struct hostapd_data hapd)

accounting_init: Initialize accounting

Parameters
hapdhostapd BSS data
Returns
0 on success, -1 on failure
void accounting_sta_start ( struct hostapd_data hapd,
struct sta_info sta 
)

Start STA accounting.

Parameters
hapdhostapd BSS data
staThe station
void accounting_sta_stop ( struct hostapd_data hapd,
struct sta_info sta 
)

Stop STA accounting.

Parameters
hapdhostapd BSS data
staThe station