} rlm_radius_udp_thread_t;
typedef enum rlm_radius_udp_connection_state_t {
- CONN_UNUSED = 0,
+ CONN_INIT = 0, //!< Configured but not started.
CONN_OPENING, //!< Trying to connect.
CONN_ACTIVE, //!< Available to send packets.
CONN_FULL, //!< Live, but can't send more packets.
* state.
*/
switch (c->state) {
- case CONN_UNUSED:
+ case CONN_INIT:
case CONN_OPENING:
rad_assert(0 == 1);
return;
/*
* If it's unused, why is there a request for it?
*/
- case CONN_UNUSED:
+ case CONN_INIT:
case CONN_OPENING:
rad_assert(0 == 1);
return 0;
int fd;
rlm_radius_udp_connection_t *c = talloc_get_type_abort(uctx, rlm_radius_udp_connection_t);
+ rad_assert(c->state == CONN_INIT);
+
/*
* Open the outgoing socket.
*/
rad_assert(0 == 1);
break;
+ case CONN_INIT:
+ break;
+
case CONN_STATUS_CHECKS:
case CONN_OPENING:
case CONN_FULL: