|
void | pfx_table_init (struct pfx_table *pfx_table, pfx_update_fp update_fp) |
| Initializes the pfx_table struct.
|
|
void | pfx_table_free (struct pfx_table *pfx_table) |
| Frees all memory associated with the pfx_table.
|
|
int | pfx_table_add (struct pfx_table *pfx_table, const struct pfx_record *pfx_record) |
| Adds a pfx_record to a pfx_table.
|
|
int | pfx_table_remove (struct pfx_table *pfx_table, const struct pfx_record *pfx_record) |
| Removes a pfx_record from a pfx_table.
|
|
int | pfx_table_src_remove (struct pfx_table *pfx_table, const struct rtr_socket *socket) |
| Removes all entries in the pfx_table that match the passed socket_id value from a pfx_table.
|
|
int | pfx_table_validate (struct pfx_table *pfx_table, const uint32_t asn, const struct lrtr_ip_addr *prefix, const uint8_t mask_len, enum pfxv_state *result) |
| Validates the origin of a BGP-Route.
|
|
int | pfx_table_validate_r (struct pfx_table *pfx_table, struct pfx_record **reason, unsigned int *reason_len, const uint32_t asn, const struct lrtr_ip_addr *prefix, const uint8_t mask_len, enum pfxv_state *result) |
| Validates the origin of a BGP-Route and returns a list of pfx_record that decided the result.
|
|
void | pfx_table_for_each_ipv4_record (struct pfx_table *pfx_table, pfx_for_each_fp fp, void *data) |
| Iterates over all IPv4 records in the pfx_table.
|
|
void | pfx_table_for_each_ipv6_record (struct pfx_table *pfx_table, pfx_for_each_fp fp, void *data) |
| Iterates over all IPv6 records in the pfx_table.
|
|