ndn-lite
Data Structures | Macros | Typedefs | Functions
fib.h File Reference
#include "../util/bit-operations.h"
#include "callback-funcs.h"
#include "name-tree.h"

Go to the source code of this file.

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)