NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions
nack.h File Reference
#include "interest.h"
#include "lp.h"

Go to the source code of this file.

Data Structures

struct  PNack
 Parsed Nack packet. More...
 

Typedefs

typedef struct PNack PNack
 Parsed Nack packet. More...
 

Functions

const char * NackReason_ToString (NackReason reason)
 
PacketNack_FromInterest (Packet *npkt, NackReason reason, PacketMempools *mp, PacketTxAlign align)
 Turn an Interest into a Nack. More...
 

Typedef Documentation

◆ PNack

typedef struct PNack PNack

Parsed Nack packet.

Function Documentation

◆ Nack_FromInterest()

Packet* Nack_FromInterest ( Packet npkt,
NackReason  reason,
PacketMempools mp,
PacketTxAlign  align 
)

Turn an Interest into a Nack.

Parameters
npkta packet of type PktInterest or PktSInterest . Its first segment must be a uniquely owned direct mbuf.
Return values
NULLallocation failure.
Returns
Nack packet. It may be different from npkt .
Precondition
PktType is PktInterest or PktSInterest .
Postcondition
PktType is PktSNack .

◆ NackReason_ToString()

const char* NackReason_ToString ( NackReason  reason)