![]() |
ndn-lite
|
Fowarding Infomation Base. More...
|
Data Structures | |
| struct | ndn_fib_entry |
| FIB entry. More... | |
| struct | ndn_fib |
| Forwarding Information Base (FIB). More... | |
Macros | |
| #define | NDN_FIB_RESERVE_SIZE(entry_count) (sizeof(ndn_fib_t) + sizeof(ndn_fib_entry_t) * (entry_count)) |
Typedefs | |
| typedef struct ndn_fib_entry | ndn_fib_entry_t |
| FIB entry. More... | |
| typedef struct ndn_fib | ndn_fib_t |
| Forwarding Information Base (FIB). More... | |
Functions | |
| void | ndn_fib_init (void *memory, ndn_table_id_t capacity, ndn_nametree_t *nametree) |
| void | ndn_fib_unregister_face (ndn_fib_t *self, ndn_table_id_t face_id) |
| ndn_fib_entry_t * | ndn_fib_find_or_insert (ndn_fib_t *self, uint8_t *prefix, size_t length) |
| ndn_fib_entry_t * | ndn_fib_find (ndn_fib_t *self, uint8_t *prefix, size_t length) |
| void | ndn_fib_remove_entry_if_empty (ndn_fib_t *self, ndn_fib_entry_t *entry) |
| ndn_fib_entry_t * | ndn_fib_prefix_match (ndn_fib_t *self, uint8_t *prefix, size_t length) |
Fowarding Infomation Base.
| #define NDN_FIB_RESERVE_SIZE | ( | entry_count | ) | (sizeof(ndn_fib_t) + sizeof(ndn_fib_entry_t) * (entry_count)) |
| typedef struct ndn_fib_entry ndn_fib_entry_t |
FIB entry.
| ndn_fib_entry_t* ndn_fib_find | ( | ndn_fib_t * | self, |
| uint8_t * | prefix, | ||
| size_t | length | ||
| ) |
| ndn_fib_entry_t* ndn_fib_find_or_insert | ( | ndn_fib_t * | self, |
| uint8_t * | prefix, | ||
| size_t | length | ||
| ) |
| void ndn_fib_init | ( | void * | memory, |
| ndn_table_id_t | capacity, | ||
| ndn_nametree_t * | nametree | ||
| ) |
| ndn_fib_entry_t* ndn_fib_prefix_match | ( | ndn_fib_t * | self, |
| uint8_t * | prefix, | ||
| size_t | length | ||
| ) |
| void ndn_fib_remove_entry_if_empty | ( | ndn_fib_t * | self, |
| ndn_fib_entry_t * | entry | ||
| ) |
| void ndn_fib_unregister_face | ( | ndn_fib_t * | self, |
| ndn_table_id_t | face_id | ||
| ) |
1.8.15