NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions
fib.h File Reference
#include "../core/rttest.h"
#include "../fib/enum.h"
#include "common.h"

Go to the source code of this file.

Data Structures

struct  SgFibEntryDyn
 
struct  SgFibEntry
 
struct  SgFibNexthopIt
 Iterator of FIB nexthops passing a filter. More...
 

Typedefs

typedef struct SgFibEntryDyn SgFibEntryDyn
 
typedef struct SgFibEntry SgFibEntry
 
typedef uint32_t SgFibNexthopFilter
 
typedef struct SgFibNexthopIt SgFibNexthopIt
 Iterator of FIB nexthops passing a filter. More...
 

Functions

SUBROUTINE bool SgFibNexthopFilter_Rejected (SgFibNexthopFilter filter, uint8_t i)
 
SUBROUTINE bool SgFibNexthopIt_Valid (const SgFibNexthopIt *it)
 
SUBROUTINE void SgFibNexthopIt_Advance_ (SgFibNexthopIt *it)
 
SUBROUTINE void SgFibNexthopIt_Init (SgFibNexthopIt *it, const SgFibEntry *entry, SgFibNexthopFilter filter)
 
SUBROUTINE void SgFibNexthopIt_Next (SgFibNexthopIt *it)
 

Typedef Documentation

◆ SgFibEntry

typedef struct SgFibEntry SgFibEntry

◆ SgFibEntryDyn

typedef struct SgFibEntryDyn SgFibEntryDyn

◆ SgFibNexthopFilter

typedef uint32_t SgFibNexthopFilter

◆ SgFibNexthopIt

Iterator of FIB nexthops passing a filter.

for (SgFibNexthopIt_Init(&it, entry, filter); // or SgFibNexthopIt_InitCtx(&it, ctx)
int index = it.i;
FaceID nexthop = it.nh;
}
uint16_t FaceID
Numeric face identifier.
Definition: faceid.h:13
SUBROUTINE bool SgFibNexthopIt_Valid(const SgFibNexthopIt *it)
Definition: fib.h:52
SUBROUTINE void SgFibNexthopIt_Next(SgFibNexthopIt *it)
Definition: fib.h:77
SUBROUTINE void SgFibNexthopIt_Init(SgFibNexthopIt *it, const SgFibEntry *entry, SgFibNexthopFilter filter)
Definition: fib.h:69
Iterator of FIB nexthops passing a filter.
Definition: fib.h:44
FaceID nh
Definition: fib.h:48
uint8_t i
Definition: fib.h:47

Function Documentation

◆ SgFibNexthopFilter_Rejected()

SUBROUTINE bool SgFibNexthopFilter_Rejected ( SgFibNexthopFilter  filter,
uint8_t  i 
)

◆ SgFibNexthopIt_Advance_()

SUBROUTINE void SgFibNexthopIt_Advance_ ( SgFibNexthopIt it)

◆ SgFibNexthopIt_Init()

SUBROUTINE void SgFibNexthopIt_Init ( SgFibNexthopIt it,
const SgFibEntry entry,
SgFibNexthopFilter  filter 
)

◆ SgFibNexthopIt_Next()

SUBROUTINE void SgFibNexthopIt_Next ( SgFibNexthopIt it)

◆ SgFibNexthopIt_Valid()

SUBROUTINE bool SgFibNexthopIt_Valid ( const SgFibNexthopIt it)