diff options
Diffstat (limited to 'radsecproxy.h')
-rw-r--r-- | radsecproxy.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/radsecproxy.h b/radsecproxy.h index 244eb5c..133b715 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -156,6 +156,14 @@ struct client { time_t expiry; /* for udp */ }; +enum server_state { + SERVER_STATE_STARTUP = 0, /* default */ + SERVER_STATE_CONNECTED, + SERVER_STATE_RECONNECTING, + SERVER_STATE_FAILING +}; + + struct server { struct clsrvconf *conf; int sock; @@ -165,10 +173,8 @@ struct server { uint8_t clientrdgone; struct timeval lastconnecttry; struct timeval lastreply; - uint8_t connectionok; + enum server_state state; uint8_t lostrqs; - uint8_t dynstartup; - uint8_t dynfailing; char *dynamiclookuparg; int nextid; struct timeval lastrcv; |