diff options
author | Fabian Mauchle <fabian.mauchle@switch.ch> | 2017-03-02 10:44:16 +0100 |
---|---|---|
committer | Fabian Mauchle <fabian.mauchle@switch.ch> | 2017-08-06 20:42:26 +0200 |
commit | 05ed43d8d4bf254a503cee715034a8184615af9e (patch) | |
tree | 9c3707b91c375b1e10e51ee4ce9bd00f70bacaee /radsecproxy.h | |
parent | 14cac40266288157047c205d138d26ebcb042aa2 (diff) |
replace server states with enum
Diffstat (limited to 'radsecproxy.h')
-rw-r--r-- | radsecproxy.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/radsecproxy.h b/radsecproxy.h index c96cc69..5cf842c 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -58,6 +58,13 @@ enum rsp_fticks_mac_type { RSP_FTICKS_MAC_FULLY_KEY_HASHED }; +enum rsp_server_state { + RSP_SERVER_STATE_STARTUP = 0, /* default */ + RSP_SERVER_STATE_CONNECTED, + RSP_SERVER_STATE_RECONNECTING, + RSP_SERVER_STATE_FAILING +}; + struct options { char *pidfile; char *logdestination; @@ -165,10 +172,8 @@ struct server { uint8_t clientrdgone; struct timeval lastconnecttry; struct timeval lastreply; - uint8_t connectionok; + enum rsp_server_state state; uint8_t lostrqs; - uint8_t dynstartup; - uint8_t dynfailing; char *dynamiclookuparg; int nextid; struct timeval lastrcv; |