NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#include "api.h"
Data Structures | |
struct | FibEntryInfo |
Typedefs | |
typedef struct FibEntryInfo | FibEntryInfo |
Functions | |
SUBROUTINE uint64_t | Timer (SgCtx *ctx) |
SUBROUTINE uint64_t | RxInterest (SgCtx *ctx) |
uint64_t | SgMain (SgCtx *ctx) |
The strategy dataplane program. More... | |
uint64_t | SgInit (SgCtx *ctx) |
The strategy initialization procedure. More... | |
SGINIT_SCHEMA ({ "$schema":"http://json-schema.org/draft-07/schema#", "type":"object", "properties":{ "delay":{ "description":"Interest delay in milliseconds", "type":"integer", "minimum":1, "maximum":10000 } }, "required":["delay"], "additionalProperties":false }) | |
The delay strategy delays every Interest then forwards it to the first available nexthop. Delay duration is configured via FibEntryInfo.
typedef struct FibEntryInfo FibEntryInfo |
SUBROUTINE uint64_t RxInterest | ( | SgCtx * | ctx | ) |
uint64_t SgInit | ( | SgCtx * | ctx | ) |
The strategy initialization procedure.
A strategy should implement this function if it accepts parameters. This is called when a strategy is activated on a FIB entry. It should populate FIB entry scratch area according to JSON parameters.
SGINIT_SCHEMA | ( | { "$schema":"http://json-schema.org/draft-07/schema#", "type":"object", "properties":{ "delay":{ "description":"Interest delay in milliseconds", "type":"integer", "minimum":1, "maximum":10000 } }, "required":["delay"], "additionalProperties":false } | ) |
uint64_t SgMain | ( | SgCtx * | ctx | ) |
The strategy dataplane program.
Every strategy must implement this function.
SUBROUTINE uint64_t Timer | ( | SgCtx * | ctx | ) |