mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
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:
@@ -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_ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user