|
RTRlib
|
Data Structures | |
| struct | rtr_socket |
Typedefs | |
| typedef 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) |
Enumerations | |
| enum | rtr_interval_mode { RTR_INTERVAL_MODE_IGNORE_ANY , RTR_INTERVAL_MODE_ACCEPT_ANY , RTR_INTERVAL_MODE_DEFAULT_MIN_MAX , RTR_INTERVAL_MODE_IGNORE_ON_FAILURE } |
| enum | rtr_rtvals { RTR_SUCCESS = 0 , RTR_ERROR = -1 , RTR_INVALID_PARAM = -2 } |
| enum | rtr_socket_state { RTR_CONNECTING , RTR_ESTABLISHED , RTR_RESET , RTR_SYNC , RTR_FAST_RECONNECT , RTR_ERROR_NO_DATA_AVAIL , RTR_ERROR_NO_INCR_UPDATE_AVAIL , RTR_ERROR_FATAL , RTR_ERROR_TRANSPORT , RTR_SHUTDOWN , RTR_CLOSED } |
Functions | |
| enum rtr_interval_mode | rtr_get_interval_mode (struct rtr_socket *rtr_socket) |
| void | rtr_set_interval_mode (struct rtr_socket *rtr_socket, enum rtr_interval_mode option) |
| const char * | rtr_state_to_str (enum rtr_socket_state state) |
One rtr_socket communicates with a single RPKI-RTR server.
| enum rtr_interval_mode |
These modes let the user configure how received intervals should be handled.
| enum rtr_socket_state |
States of the RTR socket.
| enum rtr_interval_mode rtr_get_interval_mode | ( | struct rtr_socket * | rtr_socket | ) |
Get the current interval mode.
| [in] | rtr_socket | The target socket. |
| void rtr_set_interval_mode | ( | struct rtr_socket * | rtr_socket, |
| enum rtr_interval_mode | option ) |
Set the interval option to the desired one. It's either RTR_INTERVAL_MODE_IGNORE_ANY, RTR_INTERVAL_MODE_APPLY_ANY, RTR_INTERVAL_MODE_DEFAULT_MIN_MAX or RTR_INTERVAL_MODE_IGNORE_ON_FAILURE.
| [in] | rtr_socket | The target socket. |
| [in] | option | The new interval option that should be applied. |
| const char * rtr_state_to_str | ( | enum rtr_socket_state | state | ) |
Converts a rtr_socket_state to a String.
| [in] | state | state to convert to a string |