|
PcapPlusPlus
20.08
|
Go to the documentation of this file. 1 #ifndef PACKETPP_UDP_LAYER
2 #define PACKETPP_UDP_LAYER
54 UdpLayer(uint16_t portSrc, uint16_t portDst);
const ProtocolType UDP
Definition: ProtocolType.h:53
OsiModelLayer
Definition: ProtocolType.h:233
Definition: UdpLayer.h:20
uint16_t portSrc
Definition: UdpLayer.h:22
std::string toString() const
void computeCalculateFields()
size_t getHeaderLen() const
Definition: UdpLayer.h:80
UdpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: UdpLayer.h:47
Definition: UdpLayer.h:37
uint16_t calculateChecksum(bool writeResultToPacket)
@ OsiModelTransportLayer
Definition: ProtocolType.h:242
The main namespace for the PcapPlusPlus lib.
OsiModelLayer getOsiModelLayer() const
Definition: UdpLayer.h:89
udphdr * getUdpHeader() const
Definition: UdpLayer.h:60
uint16_t headerChecksum
Definition: UdpLayer.h:28
uint16_t length
Definition: UdpLayer.h:26
uint16_t portDst
Definition: UdpLayer.h:24