RTRlib
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
trie-pfx.h
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 
23 #ifndef RTR_trie_PFX
24 #define RTR_trie_PFX
25 #include "rtrlib/pfx/pfx.h"
26 #include "rtrlib/pfx/trie/trie.h"
27 
35 struct pfx_table {
36  struct trie_node *ipv4;
37  struct trie_node *ipv6;
38  pfx_update_fp update_fp;
39  pthread_rwlock_t lock;
40 };
41 
42 #endif
43 /* @} */
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...
Definition: pfx.h:80
trie_node
Definition: trie.h:24
pfx_table.
Definition: trie-pfx.h:35