8b24861154
This optional attribute may make it easier to bind together the Access-Request and Accounting-Request messages. The accounting session identifier is now generated when the STA associates instead of waiting for the actual session to start after successfull authentication. Signed-hostap: Jouni Malinen <j@w1.fi>
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* hostapd / RADIUS Accounting
|
|
* Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef ACCOUNTING_H
|
|
#define ACCOUNTING_H
|
|
|
|
#ifdef CONFIG_NO_ACCOUNTING
|
|
static inline void accounting_sta_get_id(struct hostapd_data *hapd,
|
|
struct sta_info *sta)
|
|
{
|
|
}
|
|
|
|
static inline void accounting_sta_start(struct hostapd_data *hapd,
|
|
struct sta_info *sta)
|
|
{
|
|
}
|
|
|
|
static inline void accounting_sta_stop(struct hostapd_data *hapd,
|
|
struct sta_info *sta)
|
|
{
|
|
}
|
|
|
|
static inline int accounting_init(struct hostapd_data *hapd)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void accounting_deinit(struct hostapd_data *hapd)
|
|
{
|
|
}
|
|
#else /* CONFIG_NO_ACCOUNTING */
|
|
void accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta);
|
|
void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
|
|
void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
|
|
int accounting_init(struct hostapd_data *hapd);
|
|
void accounting_deinit(struct hostapd_data *hapd);
|
|
#endif /* CONFIG_NO_ACCOUNTING */
|
|
|
|
#endif /* ACCOUNTING_H */
|