NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
source.c File Reference
#include "source.h"
#include "parse.h"

Functions

void PdumpSource_Process (PdumpSource *s, struct rte_mbuf **pkts, uint16_t count)
 Submit packets for potential dumping. More...
 
PdumpSourcePdumpSourceRef_Set (PdumpSourceRef *ref, PdumpSource *s)
 Assign or clear PdumpSource in PdumpSourceRef. More...
 
bool PdumpFaceSource_Filter (PdumpSource *s0, struct rte_mbuf *pkt)
 Perform name filtering to determine whether to capture a packet. More...
 

Variables

PdumpSourceRef gPdumpEthPortSources [RTE_MAX_ETHPORTS]
 

Function Documentation

◆ PdumpFaceSource_Filter()

bool PdumpFaceSource_Filter ( PdumpSource s,
struct rte_mbuf *  pkt 
)

Perform name filtering to determine whether to capture a packet.

Parameters
pktpacket positioned at NDNLPv2 header.
Returns
whether to capture the packet.

◆ PdumpSource_Process()

void PdumpSource_Process ( PdumpSource s,
struct rte_mbuf **  pkts,
uint16_t  count 
)

Submit packets for potential dumping.

◆ PdumpSourceRef_Set()

PdumpSource* PdumpSourceRef_Set ( PdumpSourceRef ref,
PdumpSource s 
)

Assign or clear PdumpSource in PdumpSourceRef.

Returns
old pointer value.

Variable Documentation

◆ gPdumpEthPortSources

PdumpSourceRef gPdumpEthPortSources[RTE_MAX_ETHPORTS]