PcapPlusPlus  Next
pcpp::ArpLayer::SerializedFields Struct Reference

#include <ArpLayer.h>

Inheritance diagram for pcpp::ArpLayer::SerializedFields:
pcpp::Layer::SerializedFields

Static Public Member Functions

static std::vector< FieldDescriptor > all ()
 
- Static Public Member Functions inherited from pcpp::Layer::SerializedFields
static std::vector< FieldDescriptor > all ()
 

Static Public Attributes

static const FieldDescriptor OpCode
 Field descriptor for the ARP opcode, written as a string.
 
static const FieldDescriptor SenderMacAddress
 Field descriptor for the sender hardware (MAC) address, written as a string.
 
static const FieldDescriptor TargetMacAddress
 Field descriptor for the target hardware (MAC) address, written as a string.
 
static const FieldDescriptor SenderIpAddress
 Field descriptor for the sender protocol (IP) address, written as a string.
 
static const FieldDescriptor TargetIpAddress
 Field descriptor for the target protocol (IP) address, written as a string.
 
static const FieldDescriptor MessageType
 Field descriptor for the ARP message type, written as a string.
 
static const FieldDescriptor HardwareType
 Field descriptor for the hardware type (e.g. 1 for Ethernet), written as a number in host byte order.
 
static const FieldDescriptor HardwareSize
 Field descriptor for the hardware address length in bytes (e.g. 6 for Ethernet).
 
static const FieldDescriptor ProtocolType
 Field descriptor for the protocol type, i.e. the EtherType of the protocol being resolved (e.g. 0x0800 for IPv4), written as a number in host byte order.
 
static const FieldDescriptor ProtocolSize
 Field descriptor for the protocol address length in bytes (e.g. 4 for IPv4).
 
- Static Public Attributes inherited from pcpp::Layer::SerializedFields
static const FieldDescriptor ProtocolName
 Field descriptor for the layer protocol name.
 
static const FieldDescriptor ProtocolId
 Field descriptor for the layer protocol ID.
 
static const FieldDescriptor Length
 Field descriptor for the layer length.
 
static constexpr uint16_t MaxID = 1
 Maximum field ID used by the layer.
 

Detailed Description

Fields written by ArpLayer's serializeLayer(), in addition to Layer::SerializedFields.

Member Function Documentation

◆ all()

static std::vector<FieldDescriptor> pcpp::ArpLayer::SerializedFields::all ( )
inlinestatic
Returns
All field descriptors for ArpLayer