NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#include "lp.h"
#include "../core/base16.h"
#include "../core/logger.h"
#include "tlv-decoder.h"
#include "tlv-encoder.h"
Functions | |
const char * | LpPitToken_ToString (const LpPitToken *token) |
Print PIT token as string for logging. More... | |
bool | LpHeader_Parse (LpHeader *lph, struct rte_mbuf *pkt) |
Parse NDNLPv2 header and strip from mbuf. More... | |
void | LpHeader_Prepend (struct rte_mbuf *pkt, const LpL3 *l3, const LpL2 *l2) |
Prepend NDNLPv2 header to mbuf. More... | |
bool LpHeader_Parse | ( | LpHeader * | lph, |
struct rte_mbuf * | pkt | ||
) |
Parse NDNLPv2 header and strip from mbuf.
pkt | a uniquely owned, possibly segmented, direct mbuf. |
pkt
contains only (fragment of) network layer packet.This function recognizes these NDNLPv2 features:
This function does not check whether header fields are applicable to network layer packet type, because network layer type is unknown before reassembly. For example, it would accept Nack header on Data packet.
Prepend NDNLPv2 header to mbuf.
pkt | target mbuf, must have enough headroom. |
pkt
contains (fragment of) network layer packet. pkt
contains LpPacket. const char* LpPitToken_ToString | ( | const LpPitToken * | token | ) |
Print PIT token as string for logging.
DebugString_Get