NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#include "pit-entry.h"
#include "../core/base16.h"
#include "../core/logger.h"
#include "pit-iterator.h"
#include "pit.h"
Functions | |
N_LOG_INIT (PitEntry) | |
const char * | PitEntry_ToDebugString (PitEntry *entry) |
Convert entry to a string for debug purpose. More... | |
FibEntry * | PitEntry_FindFibEntry (PitEntry *entry, Fib *fib) |
Retrieve FIB entry via PIT entry's FIB reference. More... | |
void | PitEntry_SetExpiryTimer (PitEntry *entry, Pit *pit) |
Set timer to erase PIT entry when its last PitDn expires. More... | |
bool | PitEntry_SetSgTimer (PitEntry *entry, Pit *pit, TscDuration after) |
Set timer to invoke strategy after after . More... | |
void | PitEntry_Timeout_ (MinTmr *tmr, uintptr_t pitPtr) |
FaceID | PitEntry_FindDuplicateNonce (PitEntry *entry, uint32_t nonce, FaceID dnFace) |
Find duplicate nonce among DN records other than rxFace . More... | |
PitDn * | PitEntry_InsertDn (PitEntry *entry, Pit *pit, Packet *npkt) |
Insert new DN record, or update existing DN record. More... | |
PitUp * | PitEntry_FindUp (PitEntry *entry, FaceID face) |
Find existing UP record. More... | |
PitUp * | PitEntry_ReserveUp (PitEntry *entry, FaceID face) |
Find existing UP record, or reserve slot for new UP record. More... | |
void | PitEntry_GetTxInterestIlHl (PitEntry *entry, TscTime now, uint32_t *lifetime, uint8_t *hopLimit) |
Calculate InterestLifetime and HopLimit for TX Interest. More... | |
N_LOG_INIT | ( | PitEntry | ) |
Find duplicate nonce among DN records other than rxFace
.
Retrieve FIB entry via PIT entry's FIB reference.
Find existing UP record.
entry | PIT entry, must be initialized. |
face | upstream face. |
void PitEntry_GetTxInterestIlHl | ( | PitEntry * | entry, |
TscTime | now, | ||
uint32_t * | lifetime, | ||
uint8_t * | hopLimit | ||
) |
Calculate InterestLifetime and HopLimit for TX Interest.
Insert new DN record, or update existing DN record.
entry | PIT entry, must be initialized. |
npkt | received Interest; will take ownership unless returning NULL. |
Find existing UP record, or reserve slot for new UP record.
entry | PIT entry, must be initialized. |
face | upstream face. |
PitUp_RecordTx
invocation), it will be overwritten on the next PitEntry_ReserveUp
invocation. Set timer to erase PIT entry when its last PitDn expires.
bool PitEntry_SetSgTimer | ( | PitEntry * | entry, |
Pit * | pit, | ||
TscDuration | after | ||
) |
Set timer to invoke strategy after after
.
Timer | set successfully. |
Unable | to set timer; reverted to expiry timer. |
void PitEntry_Timeout_ | ( | MinTmr * | tmr, |
uintptr_t | pitPtr | ||
) |
const char* PitEntry_ToDebugString | ( | PitEntry * | entry | ) |
Convert entry
to a string for debug purpose.
DebugString_Get