1 #ifndef PACKETPP_UDP_LAYER 2 #define PACKETPP_UDP_LAYER 66 uint16_t getSrcPort()
const;
71 uint16_t getDstPort()
const;
78 uint16_t calculateChecksum(
bool writeResultToPacket);
86 void parseNextLayer();
96 void computeCalculateFields();
98 std::string toString()
const;
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:263
uint16_t portSrc
Definition: UdpLayer.h:23
const ProtocolType UDP
Definition: ProtocolType.h:53
Definition: UdpLayer.h:20
Definition: UdpLayer.h:38
size_t getHeaderLen() const
Definition: UdpLayer.h:91
udphdr * getUdpHeader() const
Definition: UdpLayer.h:61
Definition: ProtocolType.h:272
uint16_t length
Definition: UdpLayer.h:27
uint16_t portDst
Definition: UdpLayer.h:25
UdpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: UdpLayer.h:48
OsiModelLayer getOsiModelLayer() const
Definition: UdpLayer.h:100
uint16_t headerChecksum
Definition: UdpLayer.h:29