Class EthernetFrame
Defined in File PacketUtils.h
Inheritance Relationships
Base Type
public ska::pst::recv::PacketBuffer
(Class PacketBuffer)
Class Documentation
-
class EthernetFrame : public ska::pst::recv::PacketBuffer
Ethernet Frame Interface to raw data stored in memory.
Public Functions
-
EthernetFrame() = default
Construct a new Ethernet Frame object which is unitialized.
-
EthernetFrame(char *ptr, size_t size)
Construct a new Ethernet Frame object.
- Parameters
ptr – memory address of the frame
size – length of the frame
-
inline mac_address destination_mac() const
Return the destination MAC address of the frame.
-
inline mac_address source_mac() const
Return the source MAC address of the frame.
-
inline uint16_t ethertype() const
Return the EtherType of the frame.
-
IPv4Packet payload_ipv4() const
Return an IPV4 interface to the payload of the Ethernet frame.
Public Static Attributes
-
static constexpr size_t min_size = 14
Minimum size of a frame.
-
EthernetFrame() = default