NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
pcc-key.h File Reference
#include "../ndni/interest.h"

Go to the source code of this file.

Data Structures

struct  PccSearch
 Hash key for searching among PccEntry . More...
 
struct  PccKey
 Hash key stored in PccEntry . More...
 
struct  PccKeyExt
 

Macros

#define PccKey_CountExtensions_(nameL, fhL)
 

Typedefs

typedef struct PccSearch PccSearch
 Hash key for searching among PccEntry . More...
 
typedef struct PccKeyExt PccKeyExt
 
typedef struct PccKey PccKey
 Hash key stored in PccEntry . More...
 

Enumerations

enum  { PccKeyNameCapacity = 240 , PccKeyFhCapacity = 160 , PccKeyExtCapacity = 1000 , PccKeyMaxExts = PccKey_CountExtensions_(NameMaxLength, NameMaxLength) }
 

Functions

const char * PccSearch_ToDebugString (const PccSearch *search)
 Convert search to a string for debug purpose. More...
 
bool PccKey_MatchFieldWithExt_ (LName name, const uint8_t *firstV, uint16_t firstCapacity, const PccKeyExt *ext)
 
int PccKey_WriteFieldWithExt_ (LName name, uint8_t *firstV, uint16_t firstCapacity, PccKeyExt **next, PccKeyExt *exts[])
 

Macro Definition Documentation

◆ PccKey_CountExtensions_

#define PccKey_CountExtensions_ (   nameL,
  fhL 
)
Value:
(SPDK_CEIL_DIV(nameL - PccKeyNameCapacity, PccKeyExtCapacity) + \
SPDK_CEIL_DIV(fhL - PccKeyFhCapacity, PccKeyExtCapacity))
@ PccKeyFhCapacity
Definition: pcc-key.h:14
@ PccKeyNameCapacity
Definition: pcc-key.h:13
@ PccKeyExtCapacity
Definition: pcc-key.h:15

Typedef Documentation

◆ PccKey

typedef struct PccKey PccKey

Hash key stored in PccEntry .

◆ PccKeyExt

typedef struct PccKeyExt PccKeyExt

◆ PccSearch

typedef struct PccSearch PccSearch

Hash key for searching among PccEntry .

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PccKeyNameCapacity 
PccKeyFhCapacity 
PccKeyExtCapacity 
PccKeyMaxExts 

Function Documentation

◆ PccKey_MatchFieldWithExt_()

bool PccKey_MatchFieldWithExt_ ( LName  name,
const uint8_t *  firstV,
uint16_t  firstCapacity,
const PccKeyExt ext 
)

◆ PccKey_WriteFieldWithExt_()

int PccKey_WriteFieldWithExt_ ( LName  name,
uint8_t *  firstV,
uint16_t  firstCapacity,
PccKeyExt **  next,
PccKeyExt exts[] 
)

◆ PccSearch_ToDebugString()

const char* PccSearch_ToDebugString ( const PccSearch search)

Convert search to a string for debug purpose.

Returns
see DebugString_Get