NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
pit-up.h File Reference

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 PitUp PitUp
 A PIT upstream record.

Functions

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

Macro Definition Documentation

◆ PIT_UP_MAX_REJ_NONCES

#define PIT_UP_MAX_REJ_NONCES   6

Typedef Documentation

◆ 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.