30 #ifndef TINS_LOOPBACK_H 31 #define TINS_LOOPBACK_H 34 #include <tins/macros.h> 68 Loopback(
const uint8_t* buffer, uint32_t total_sz);
82 void family(uint32_t family_id);
87 uint32_t header_size()
const;
104 bool matches_response(
const uint8_t* ptr, uint32_t total_sz)
const;
120 void write_serialization(uint8_t* buffer, uint32_t total_sz);
127 #endif // TINS_LOOPBACK_H PDUType
Enum which identifies each type of PDU.
Definition: pdu.h:127
Sends packets through a network interface.
Definition: packet_sender.h:116
uint32_t family() const
Getter for the family identifier.
Definition: loopback.h:74
Represents a Loopback PDU.
Definition: loopback.h:41
The Tins namespace.
Definition: address_range.h:38
Abstraction of a network interface.
Definition: network_interface.h:47
PDUType pdu_type() const
Getter for the PDU's type.
Definition: loopback.h:93
Loopback * clone() const
Definition: loopback.h:109
Base class for protocol data units.
Definition: pdu.h:107