accounting.c File Reference

hostapd / RADIUS Accounting More...

#include "includes.h"
#include "hostapd.h"
#include "radius/radius.h"
#include "radius/radius_client.h"
#include "eloop.h"
#include "accounting.h"
#include "ieee802_1x.h"
#include "driver_i.h"
#include "sta_info.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)
int accounting_reconfig (struct hostapd_data *hapd, struct hostapd_config *oldconf)

Detailed Description

hostapd / RADIUS Accounting

Copyright
Copyright (c) 2002-2008, 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.


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:
hapd hostapd BSS data
sta The station
void accounting_sta_start ( struct hostapd_data hapd,
struct sta_info sta 
)

Start STA accounting.

Parameters:
hapd hostapd BSS data
sta The station
void accounting_sta_stop ( struct hostapd_data hapd,
struct sta_info sta 
)

Stop STA accounting.

Parameters:
hapd hostapd BSS data
sta The station
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 28 23:07:49 2009 for wpa_supplicant/hostapd by  doxygen 1.6.1