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

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

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.