18#define RTR_DBG(fmt, ...) lrtr_dbg("RTR Socket: " fmt, ##__VA_ARGS__)
19#define RTR_DBG1(a) lrtr_dbg("RTR Socket: " a)
72 const unsigned int expire_interval,
const unsigned int retry_interval,
enum rtr_interval_mode iv_mode,
rtr_interval_mode
These modes let the user configure how received intervals should be handled.
Definition rtr.h:28
void(* rtr_connection_state_fp)(const struct rtr_socket *rtr_socket, const enum rtr_socket_state state, void *connection_state_fp_param_config, void *connection_state_fp_param_group)
A function pointer that is called if the state of the rtr socket has changed.
Definition rtr.h:87
static const uint32_t RTR_REFRESH_DEFAULT
Definition rtr_private.h:27
int rtr_start(struct rtr_socket *rtr_socket)
Starts the RTR protocol state machine in a pthread.
static const uint32_t RTR_EXPIRATION_DEFAULT
Definition rtr_private.h:23
static const uint8_t RTR_PROTOCOL_VERSION_2
Definition rtr_private.h:35
static const uint32_t RTR_REFRESH_MAX
Definition rtr_private.h:26
static const uint32_t RTR_RETRY_MIN
Definition rtr_private.h:29
static const uint8_t RTR_PROTOCOL_VERSION_0
Definition rtr_private.h:33
int rtr_init(struct rtr_socket *rtr_socket, struct tr_socket *tr_socket, struct pfx_table *pfx_table, struct spki_table *spki_table, struct aspa_table *aspa_table, const unsigned int refresh_interval, const unsigned int expire_interval, const unsigned int retry_interval, enum rtr_interval_mode iv_mode, rtr_connection_state_fp fp, void *fp_data_config, void *fp_data_group)
Initializes a rtr_socket.
static const uint8_t RTR_PROTOCOL_MAX_SUPPORTED_VERSION
Definition rtr_private.h:39
static const uint32_t RTR_REFRESH_MIN
Definition rtr_private.h:25
static const uint8_t RTR_PROTOCOL_VERSION_1
Definition rtr_private.h:34
static const uint32_t RTR_EXPIRATION_MIN
Definition rtr_private.h:21
static const uint32_t RTR_EXPIRATION_MAX
Definition rtr_private.h:22
rtr_interval_type
Definition rtr_private.h:43
@ RTR_INTERVAL_TYPE_REFRESH
Definition rtr_private.h:43
@ RTR_INTERVAL_TYPE_EXPIRATION
Definition rtr_private.h:43
@ RTR_INTERVAL_TYPE_RETRY
Definition rtr_private.h:43
void rtr_stop(struct rtr_socket *rtr_socket)
Stops the RTR connection and terminate the transport connection.
static const uint32_t RTR_RETRY_MAX
Definition rtr_private.h:30
rtr_interval_range
Definition rtr_private.h:41
@ RTR_ABOVE_INTERVAL_RANGE
Definition rtr_private.h:41
@ RTR_INSIDE_INTERVAL_RANGE
Definition rtr_private.h:41
@ RTR_BELOW_INTERVAL_RANGE
Definition rtr_private.h:41
static const uint8_t RTR_PROTOCOL_MIN_SUPPORTED_VERSION
Definition rtr_private.h:37
static const uint32_t RTR_RETRY_DEFAULT
Definition rtr_private.h:31
ASPA Table.
Definition aspa.h:83
pfx_table.
Definition trie-pfx.h:65
A RTR socket.
Definition rtr.h:117
spki_table.
Definition ht-spkitable_private.h:27
A transport socket datastructure.
Definition transport.h:102