RTRlib
Loading...
Searching...
No Matches
pfx_private.h
Go to the documentation of this file.
1/*
2 * This file is part of RTRlib.
3 *
4 * This file is subject to the terms and conditions of the MIT license.
5 * See the file LICENSE in the top level directory for more details.
6 *
7 * Website: http://rtrlib.realmv6.org/
8 */
9
18#ifndef RTR_PFX_PRIVATE_H
19#define RTR_PFX_PRIVATE_H
20
21#include "pfx.h"
22
24
25#include <stdint.h>
26
32
38void pfx_table_swap(struct pfx_table *a, struct pfx_table *b);
39
47int pfx_table_copy_except_socket(struct pfx_table *src_table, struct pfx_table *dst_table,
48 const struct rtr_socket *socket);
49
57void pfx_table_notify_diff(struct pfx_table *new_table, struct pfx_table *old_table, const struct rtr_socket *socket);
58
59#endif
void pfx_table_notify_diff(struct pfx_table *new_table, struct pfx_table *old_table, const struct rtr_socket *socket)
Notify client about changes between to pfx tables regarding one specific socket.
void pfx_table_free_without_notify(struct pfx_table *pfx_table)
Frees all memory associated with the pfx_table without calling the update callback.
void pfx_table_swap(struct pfx_table *a, struct pfx_table *b)
Swap root nodes of the argument tables.
int pfx_table_copy_except_socket(struct pfx_table *src_table, struct pfx_table *dst_table, const struct rtr_socket *socket)
Copy content of src_table into dst_table.
pfx_table.
Definition trie-pfx.h:65
A RTR socket.
Definition rtr.h:117