wpa_supplicant / hostapd 2.0
Defines | Functions

accounting.c File Reference

hostapd / RADIUS Accounting More...

#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 "ap_drv_ops.h"
#include "accounting.h"

Defines

#define ACCT_DEFAULT_UPDATE_INTERVAL   300

Functions

void accounting_sta_start (struct hostapd_data *hapd, struct sta_info *sta)
 Start STA accounting.
void accounting_sta_interim (struct hostapd_data *hapd, struct sta_info *sta)
 Send a interim STA accounting report.
void accounting_sta_stop (struct hostapd_data *hapd, struct sta_info *sta)
 Stop STA accounting.
int accounting_init (struct hostapd_data *hapd)
void accounting_deinit (struct hostapd_data *hapd)

Detailed Description

hostapd / RADIUS Accounting

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

This software may be distributed under the terms of the BSD license. See README for more details.


Function Documentation

void accounting_deinit ( struct hostapd_data hapd)

accounting_deinit: Deinitilize accounting : hostapd BSS data

int accounting_init ( struct hostapd_data hapd)

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

void accounting_sta_interim ( struct hostapd_data hapd,
struct sta_info sta 
)

Send a interim STA accounting report.

Parameters:
hapdhostapd BSS data
staThe station
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
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines