radius: increase the info sent during accounting requests

Based on suggestions by Niels Peen. That adds:
Calling-Station-Id in auth message, and Service-Type,
Framed-Protocol, Framed-IP-Address, Acct-Authentic,
NAS-Port-Type, Acct-Session-Time in acct messages.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-12-14 14:30:53 +01:00
parent 113ae94f13
commit 853f7876cd
10 changed files with 135 additions and 66 deletions

View File

@@ -38,6 +38,11 @@ typedef struct sec_mod_st {
struct config_mod_st *config_module;
} sec_mod_st;
typedef struct stats_st {
uint64_t bytes_in;
uint64_t bytes_out;
time_t uptime;
} stats_st;
typedef struct client_entry_st {
/* A unique session identifier used to distinguish sessions
@@ -50,10 +55,7 @@ typedef struct client_entry_st {
unsigned have_session; /* whether an auth session is initialized */
unsigned tls_auth_ok;
/* these are filled in after the worker process dies, using the
* Cli stats message. */
uint64_t bytes_in;
uint64_t bytes_out;
stats_st stats;
unsigned status; /* PS_AUTH_ */