|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
Functions | |
| bool | Packet_Parse (Packet *npkt, ParseFor parseFor) |
| Parse layer 2 and layer 3 in mbuf. More... | |
| bool | Packet_ParseL3 (Packet *npkt, ParseFor parseFor) |
| Parse layer 3 in mbuf. More... | |
| Packet * | Packet_Clone (Packet *npkt, PacketMempools *mp, PacketTxAlign align) |
| Clone packet to new mbufs. More... | |
Variables | |
| const char * | PktType_Strings_ [] |
| Packet* Packet_Clone | ( | Packet * | npkt, |
| PacketMempools * | mp, | ||
| PacketTxAlign | align | ||
| ) |
Clone packet to new mbufs.
| NULL | allocation failure. |
align requirements. npkt is unaffected. Parse layer 2 and layer 3 in mbuf.
| npkt | a uniquely owned, possibly segmented, direct mbuf. |
| parseFor | see PInterest_Parse and PData_Parse . |
PktFragment . Otherwise, same as Packet_ParseL3 . Parse layer 3 in mbuf.
| npkt | a uniquely owned, possibly segmented, direct mbuf. Its PacketPriv.lpl3 should have been initialized. |
| parseFor | see PInterest_Parse and PData_Parse . |
PktInterest , PktData , or PktNack . PInterest , PData , or PNack is initialized. | const char* PktType_Strings_[] |