Go to the source code of this file.
◆ InterestGuiders_Fmt
#define InterestGuiders_Fmt |
( |
|
g | ) |
(g).nonce, (g).lifetime, (g).hopLimit |
printf arguments for InterestGuiders.
- Parameters
-
g | InterestGuiders instance. |
◆ PRI_InterestGuiders
#define PRI_InterestGuiders "nonce=%08" PRIx32 " lifetime=%" PRIu32 " hopLimit=%" PRIu8 |
printf format string for InterestGuiders.
#define InterestGuiders_Fmt(g)
printf arguments for InterestGuiders.
Definition: interest.h:71
#define PRI_InterestGuiders
printf format string for InterestGuiders.
Definition: interest.h:65
◆ InterestGuiders
◆ InterestTemplate
Template for Interest encoding.
◆ PInterest
◆ Interest_ModifyGuiders()
Modify Interest guiders.
- Parameters
-
[in] | npkt | original Interest packet. |
- Returns
- cloned and modified Interest packet.
- Return values
-
◆ InterestTemplate_Encode()
Encode Interest with InterestTemplate.
- Parameters
-
m | a uniquely owned, unsegmented, direct, empty mbuf. It must have InterestTemplateDataroom buffer size. |
- Returns
- encoded packet, converted from
m
.
◆ PInterest_Parse()
bool PInterest_Parse |
( |
PInterest * |
interest, |
|
|
struct rte_mbuf * |
pkt, |
|
|
ParseFor |
parseFor |
|
) |
| |
Parse Interest.
- Parameters
-
pkt | a uniquely owned, possibly segmented, direct mbuf that contains Interest TLV. |
parseFor | if set to ParseForApp , skip FwHints. |
- Returns
- whether success.
◆ PInterest_SelectFwHint()
bool PInterest_SelectFwHint |
( |
PInterest * |
interest, |
|
|
int |
i |
|
) |
| |
Retrieve i-th forwarding hint name.
- Returns
- whether success.
- Precondition
- i >= 0 && i < interest->nFwHints
- Postcondition
- interest->activeFwHint == i
-
interest->fwHint reflects i-th forwarding hint.