NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
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.
void PitUp_RecordTx (PitUp *up, PitEntry *entry, TscTime now, uint32_t nonce, const PitSuppressConfig *suppressCfg)
 Record Interest transmission.

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.