RTRlib
Loading...
Searching...
No Matches
rtr_socket Struct Reference

A RTR socket. More...

#include <rtr.h>

Data Fields

struct tr_sockettr_socket
 
unsigned int refresh_interval
 
time_t last_update
 
unsigned int expire_interval
 
unsigned int retry_interval
 
enum rtr_interval_mode iv_mode
 
enum rtr_socket_state state
 
uint32_t session_id
 
bool request_session_id
 
uint32_t serial_number
 
struct pfx_tablepfx_table
 
pthread_t thread_id
 
rtr_connection_state_fp connection_state_fp
 
void * connection_state_fp_param_config
 
void * connection_state_fp_param_group
 
unsigned int version
 
bool has_received_pdus
 
struct spki_tablespki_table
 
struct aspa_tableaspa_table
 
bool is_resetting
 

Detailed Description

A RTR socket.

Parameters
tr_socketPointer to an initialized tr_socket that will be used to communicate with the RTR server.
refresh_intervalTime period in seconds. Tells the router how long to wait before next attempting to poll the cache, using a Serial Query or Reset Query PDU.
last_updateTimestamp of the last validation record update. Is 0 if the pfx_table doesn't store any validation records from this rtr_socket.
expire_intervalTime period in seconds. Received records are deleted if the client was unable to refresh data for this time period. If 0 is specified, the expire_interval is twice the refresh_interval.
retry_intervalTime period in seconds between a failed query and the next attempt.
iv_modeDefines handling of incoming intervals.
stateCurrent state of the socket.
session_idsession_id of the RTR session.
request_session_idTrue, if the rtr_client have to request a new none from the server.
serial_numberLast serial number of the obtained validation records.
pfx_tablepfx_table that stores the validation records obtained from the connected rtr server.
thread_idHandle of the thread this socket is running in.
connection_state_fpA callback function that is executed when the state of the socket changes.
connection_state_fp_param_configParameter that is passed to the connection_state_fp callback. Expects a pointer to a rtr_mgr_config struct.
connection_state_fp_param_groupParameter that is passed to the connection_state_fp callback. Expects a pointer to the rtr_mgr_group this socket belongs to.
versionProtocol version used by this socket
has_received_pdusTrue, if this socket has already received PDUs
spki_tablespki_table that stores the router keys obtained from the connected rtr server
aspa_tablespki_table that stores the ASPA records obtained from the connected rtr server

Field Documentation

◆ aspa_table

struct aspa_table* rtr_socket::aspa_table

◆ connection_state_fp

rtr_connection_state_fp rtr_socket::connection_state_fp

◆ connection_state_fp_param_config

void* rtr_socket::connection_state_fp_param_config

◆ connection_state_fp_param_group

void* rtr_socket::connection_state_fp_param_group

◆ expire_interval

unsigned int rtr_socket::expire_interval

◆ has_received_pdus

bool rtr_socket::has_received_pdus

◆ is_resetting

bool rtr_socket::is_resetting

◆ iv_mode

enum rtr_interval_mode rtr_socket::iv_mode

◆ last_update

time_t rtr_socket::last_update

◆ pfx_table

struct pfx_table* rtr_socket::pfx_table

◆ refresh_interval

unsigned int rtr_socket::refresh_interval

◆ request_session_id

bool rtr_socket::request_session_id

◆ retry_interval

unsigned int rtr_socket::retry_interval

◆ serial_number

uint32_t rtr_socket::serial_number

◆ session_id

uint32_t rtr_socket::session_id

◆ spki_table

struct spki_table* rtr_socket::spki_table

◆ state

enum rtr_socket_state rtr_socket::state

◆ thread_id

pthread_t rtr_socket::thread_id

◆ tr_socket

struct tr_socket* rtr_socket::tr_socket

◆ version

unsigned int rtr_socket::version

The documentation for this struct was generated from the following file: