![]() |
ndn-lite
|
Pending Interest Table. More...
![]() |
Data Structures | |
struct | ndn_pit_entry |
PIT entry. More... | |
struct | ndn_pit |
Forwarding Information Base (FIB). More... | |
Macros | |
#define | NDN_PIT_RESERVE_SIZE(entry_count) (sizeof(ndn_pit_t) + sizeof(ndn_pit_entry_t) * (entry_count)) |
Typedefs | |
typedef struct ndn_pit_entry | ndn_pit_entry_t |
PIT entry. More... | |
typedef struct ndn_pit | ndn_pit_t |
Forwarding Information Base (FIB). More... | |
Functions | |
void | ndn_pit_init (void *memory, ndn_table_id_t capacity, ndn_nametree_t *nametree) |
void | ndn_pit_unregister_face (ndn_pit_t *self, ndn_table_id_t face_id) |
ndn_pit_entry_t * | ndn_pit_find_or_insert (ndn_pit_t *self, uint8_t *name, size_t length) |
ndn_pit_entry_t * | ndn_pit_find (ndn_pit_t *self, uint8_t *prefix, size_t length) |
ndn_pit_entry_t * | ndn_pit_prefix_match (ndn_pit_t *self, uint8_t *prefix, size_t length) |
void | ndn_pit_remove_entry (ndn_pit_t *self, ndn_pit_entry_t *entry) |
Pending Interest Table.
#define NDN_PIT_RESERVE_SIZE | ( | entry_count | ) | (sizeof(ndn_pit_t) + sizeof(ndn_pit_entry_t) * (entry_count)) |
typedef struct ndn_pit_entry ndn_pit_entry_t |
PIT entry.
ndn_pit_entry_t* ndn_pit_find | ( | ndn_pit_t * | self, |
uint8_t * | prefix, | ||
size_t | length | ||
) |
ndn_pit_entry_t* ndn_pit_find_or_insert | ( | ndn_pit_t * | self, |
uint8_t * | name, | ||
size_t | length | ||
) |
void ndn_pit_init | ( | void * | memory, |
ndn_table_id_t | capacity, | ||
ndn_nametree_t * | nametree | ||
) |
ndn_pit_entry_t* ndn_pit_prefix_match | ( | ndn_pit_t * | self, |
uint8_t * | prefix, | ||
size_t | length | ||
) |
void ndn_pit_remove_entry | ( | ndn_pit_t * | self, |
ndn_pit_entry_t * | entry | ||
) |
void ndn_pit_unregister_face | ( | ndn_pit_t * | self, |
ndn_table_id_t | face_id | ||
) |