Class PacketBuffer
Defined in File PacketUtils.h
Inheritance Relationships
Derived Types
public ska::pst::recv::EthernetFrame
(Class EthernetFrame)public ska::pst::recv::IPv4Packet
(Class IPv4Packet)public ska::pst::recv::UDPPacket
(Class UDPPacket)
Class Documentation
-
class PacketBuffer
Generatic Interface to raw packet data stored in memory. Provides a base class implemented for Ethernet Frames, IPV4 and UDP packets.
Subclassed by ska::pst::recv::EthernetFrame, ska::pst::recv::IPv4Packet, ska::pst::recv::UDPPacket
Public Functions
-
PacketBuffer()
Construct a new Packet Buffer object.
-
PacketBuffer(char *ptr, size_t length)
Construct a new Packet Buffer object with a memory address and size.
- Parameters
ptr – memory address of the packet
length – length of the packet
-
char *data() const
Return a pointer to packet memory address.
- Returns
char* pointer to the packet memory address
-
size_t size() const
Return the size of the packet.
- Returns
size_t size of the packet
-
PacketBuffer()