1 #ifndef PACKETPP_UDP_LAYER 2 #define PACKETPP_UDP_LAYER 65 uint16_t getSrcPort()
const;
70 uint16_t getDstPort()
const;
77 uint16_t calculateChecksum(
bool writeResultToPacket);
85 void parseNextLayer();
95 void computeCalculateFields();
97 std::string toString()
const;
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:253
uint16_t portSrc
Definition: UdpLayer.h:22
const ProtocolType UDP
Definition: ProtocolType.h:53
Definition: UdpLayer.h:20
Definition: UdpLayer.h:37
size_t getHeaderLen() const
Definition: UdpLayer.h:90
udphdr * getUdpHeader() const
Definition: UdpLayer.h:60
Definition: ProtocolType.h:262
uint16_t length
Definition: UdpLayer.h:26
uint16_t portDst
Definition: UdpLayer.h:24
UdpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: UdpLayer.h:47
OsiModelLayer getOsiModelLayer() const
Definition: UdpLayer.h:99
uint16_t headerChecksum
Definition: UdpLayer.h:28