NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Enumerations | Functions
pcc-entry.h File Reference
#include "../vendor/uthash-handle.h"
#include "cs-entry.h"
#include "pcc-key.h"
#include "pit-entry.h"

Go to the source code of this file.

Data Structures

union  PccSlot
 PCC entry slot. More...
 
struct  PccEntryExt
 PCC entry extension. More...
 
struct  PccEntry
 PIT-CS composite entry. More...
 

Typedefs

typedef struct PccEntry PccEntry
 
typedef union PccSlot PccSlot
 PCC entry slot. More...
 
typedef enum PccSlotIndex PccSlotIndex
 Identify a PCC entry slot. More...
 
typedef struct PccEntryExt PccEntryExt
 PCC entry extension. More...
 

Enumerations

enum  { PccTokenSize = 6 , PccTokenBits = PccTokenSize * CHAR_BIT , PccTokenMask = ((uint64_t)1 << PccTokenBits) - 1 }
 
enum  PccSlotIndex { PCC_SLOT_NONE = 0 , PCC_SLOT1 = 1 , PCC_SLOT2 = 2 , PCC_SLOT3 = 3 }
 Identify a PCC entry slot. More...
 

Functions

PccSlotIndex PccEntry_AllocateSlot_ (PccEntry *entry, PccSlot **slot)
 
PccSlotIndex PccEntry_ClearSlot_ (PccEntry *entry, PccSlotIndex slot)
 

Typedef Documentation

◆ PccEntry

typedef struct PccEntry PccEntry

◆ PccEntryExt

typedef struct PccEntryExt PccEntryExt

PCC entry extension.

It adds slot2 and slot3 to a PCC entry.

◆ PccSlot

typedef union PccSlot PccSlot

PCC entry slot.

Each slot has room for either a PIT entry or a CS entry.

◆ PccSlotIndex

typedef enum PccSlotIndex PccSlotIndex

Identify a PCC entry slot.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PccTokenSize 
PccTokenBits 
PccTokenMask 

◆ PccSlotIndex

Identify a PCC entry slot.

Enumerator
PCC_SLOT_NONE 
PCC_SLOT1 
PCC_SLOT2 
PCC_SLOT3 

Function Documentation

◆ PccEntry_AllocateSlot_()

PccSlotIndex PccEntry_AllocateSlot_ ( PccEntry entry,
PccSlot **  slot 
)

◆ PccEntry_ClearSlot_()

PccSlotIndex PccEntry_ClearSlot_ ( PccEntry entry,
PccSlotIndex  slot 
)