NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
pit-up.h File Reference
#include "../iface/faceid.h"
#include "pit-suppress-config.h"

Go to the source code of this file.

Data Structures

struct  PitUp
 A PIT upstream record. More...
 

Macros

#define PIT_UP_MAX_REJ_NONCES   6
 

Typedefs

typedef struct PitEntry PitEntry
 
typedef struct PitUp PitUp
 A PIT upstream record. More...
 

Functions

bool PitUp_ChooseNonce (PitUp *up, PitEntry *entry, TscTime now, uint32_t *nonce)
 Choose a nonce for TX Interest. More...
 
void PitUp_RecordTx (PitUp *up, PitEntry *entry, TscTime now, uint32_t nonce, const PitSuppressConfig *suppressCfg)
 Record Interest transmission. More...
 

Macro Definition Documentation

◆ PIT_UP_MAX_REJ_NONCES

#define PIT_UP_MAX_REJ_NONCES   6

Typedef Documentation

◆ PitEntry

typedef struct PitEntry PitEntry

◆ PitUp

typedef struct PitUp PitUp

A PIT upstream record.

Function Documentation

◆ PitUp_ChooseNonce()

bool PitUp_ChooseNonce ( PitUp up,
PitEntry entry,
TscTime  now,
uint32_t *  nonce 
)

Choose a nonce for TX Interest.

Parameters
[in,out]nonceinitial suggested nonce suggestion, usually from RX Interest or Nack; final nonce selection.
Return values
truea valid nonce is found.
falseall DN nonces have been rejected.

◆ PitUp_RecordTx()

void PitUp_RecordTx ( PitUp up,
PitEntry entry,
TscTime  now,
uint32_t  nonce,
const PitSuppressConfig suppressCfg 
)

Record Interest transmission.

Parameters
nowtime used for calculating InterestLifetime.
noncenonce of TX Interest.