ndn-lite
Data Structures | Macros | Typedefs | Functions

Fowarding Infomation Base. More...

Collaboration diagram for FIB:

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_tndn_fib_find_or_insert (ndn_fib_t *self, uint8_t *prefix, size_t length)
 
ndn_fib_entry_tndn_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_tndn_fib_prefix_match (ndn_fib_t *self, uint8_t *prefix, size_t length)
 

Detailed Description

Fowarding Infomation Base.

Macro Definition Documentation

◆ NDN_FIB_RESERVE_SIZE

#define NDN_FIB_RESERVE_SIZE (   entry_count)    (sizeof(ndn_fib_t) + sizeof(ndn_fib_entry_t) * (entry_count))

Typedef Documentation

◆ ndn_fib_entry_t

FIB entry.

◆ ndn_fib_t

typedef struct ndn_fib ndn_fib_t

Forwarding Information Base (FIB).

Function Documentation

◆ ndn_fib_find()

ndn_fib_entry_t* ndn_fib_find ( ndn_fib_t self,
uint8_t *  prefix,
size_t  length 
)

◆ ndn_fib_find_or_insert()

ndn_fib_entry_t* ndn_fib_find_or_insert ( ndn_fib_t self,
uint8_t *  prefix,
size_t  length 
)

◆ ndn_fib_init()

void ndn_fib_init ( void *  memory,
ndn_table_id_t  capacity,
ndn_nametree_t nametree 
)

◆ ndn_fib_prefix_match()

ndn_fib_entry_t* ndn_fib_prefix_match ( ndn_fib_t self,
uint8_t *  prefix,
size_t  length 
)

◆ ndn_fib_remove_entry_if_empty()

void ndn_fib_remove_entry_if_empty ( ndn_fib_t self,
ndn_fib_entry_t entry 
)

◆ ndn_fib_unregister_face()

void ndn_fib_unregister_face ( ndn_fib_t self,
ndn_table_id_t  face_id 
)