47 :
Layer(data, dataLen, prevLayer, packet,
UDP)
64 return reinterpret_cast<udphdr*
>(m_Data);
Definition: UdpLayer.h:37
udphdr * getUdpHeader() const
Definition: UdpLayer.h:62
OsiModelLayer getOsiModelLayer() const override
Definition: UdpLayer.h:108
uint16_t getDstPort() const
void computeCalculateFields() override
uint16_t getSrcPort() const
size_t getHeaderLen() const override
Definition: UdpLayer.h:96
void parseNextLayer() override
uint16_t calculateChecksum(bool writeResultToPacket)
UdpLayer(uint16_t portSrc, uint16_t portDst)
UdpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: UdpLayer.h:46
std::string toString() const override
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelTransportLayer
Definition: ProtocolType.h:372
const ProtocolType UDP
Definition: ProtocolType.h:58
Definition: UdpLayer.h:20
uint16_t length
Definition: UdpLayer.h:26
uint16_t portSrc
Definition: UdpLayer.h:22
uint16_t portDst
Definition: UdpLayer.h:24
uint16_t headerChecksum
Definition: UdpLayer.h:28