34 #include <tins/macros.h> 44 class TINS_API PKTAP :
public PDU {
67 PKTAP(
const uint8_t* buffer, uint32_t total_sz);
73 PDUType pdu_type()
const {
83 uint32_t header_size()
const;
88 PKTAP* clone()
const {
89 return new PKTAP(*
this);
96 uint8_t pth_ifname[24];
98 uint32_t protocol_family;
99 uint32_t header_length;
100 uint32_t trailer_length;
103 uint32_t service_class;
104 uint16_t interface_type;
105 uint16_t interface_unit;
107 uint8_t ecommand[20];
110 void write_serialization(uint8_t* buffer, uint32_t total_sz);
112 pktap_header header_;
117 #endif // TINS_HAVE_PCAP 119 #endif // TINS_PKTAP_H PDUType
Enum which identifies each type of PDU.
Definition: pdu.h:127
The Tins namespace.
Definition: address_range.h:38