ndn-lite
Data Structures | Macros | Typedefs | Functions
pit.h File Reference
#include "../encode/forwarder-helper.h"
#include "../util/bit-operations.h"
#include "face.h"
#include "name-tree.h"
#include "callback-funcs.h"
#include "../util/uniform-time.h"

Go to the source code of this file.

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_tndn_pit_find_or_insert (ndn_pit_t *self, uint8_t *name, size_t length)
 
ndn_pit_entry_tndn_pit_find (ndn_pit_t *self, uint8_t *prefix, size_t length)
 
ndn_pit_entry_tndn_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)