RTRlib
Data Structures | Typedefs | Variables

Data Structures

struct  pfx_record
 
struct  pfx_table
 

Typedefs

typedef void(* pfx_update_fp) (struct pfx_table *pfx_table, const struct pfx_record record, const bool added)
 

Variables

uint32_t pfx_record::asn
 
struct trie_node * pfx_table::ipv4
 
struct trie_node * pfx_table::ipv6
 
pthread_rwlock_t pfx_table::lock
 
uint8_t pfx_record::max_len
 
uint8_t pfx_record::min_len
 
struct lrtr_ip_addr pfx_record::prefix
 
const struct rtr_socketpfx_record::socket
 
pfx_update_fp pfx_table::update_fp
 

Detailed Description

This implementation uses two separate lpfs-trees, one for IPv4 validation records and one for IPv6 records.
See pfx_table for a list of supported operations of this data structure.

Typedef Documentation

◆ pfx_update_fp

typedef void(* pfx_update_fp) (struct pfx_table *pfx_table, const struct pfx_record record, const bool added)

A function pointer that is called if an record was added to the pfx_table or was removed from the pfx_table.

Parameters
pfx_tablewhich was updated.
recordpfx_record that was modified.
addedTrue if the record was added, false if the record was removed.