51 {
return m_reply_srcaddr; }
53 {
return m_reply_type; }
55 {
return m_reply_vtag; }
56 inline bool reply_is_multicast()
const
59 { m_default_vid.
value = vtag.
vid(); }
Implemention of "net::Dispatch" for Ethernet frames.
void data_rcvd(satcat5::io::Readable *src) override
The data_rcvd() callback is polled whenever data is available.
void set_macaddr(const satcat5::eth::MacAddr &macaddr)
Set the local MAC-address.
void data_unlink(satcat5::io::Readable *src) override
Unlink this EventListener from the designated source, because the designated Readable object is being...
satcat5::io::Writeable * open_reply(const satcat5::net::Type &type, unsigned len) override
Send a reply to the most recent received frame.
satcat5::io::Writeable * open_write(const satcat5::eth::MacAddr &dst, const satcat5::eth::MacType &type, satcat5::eth::VlanTag vtag=satcat5::eth::VTAG_NONE)
Send a frame to the designated Ethernet address/VLAN.
Event-handler interface for newly received data.
Abstract API for reading byte-streams and packets.
Abstract API for writing byte-streams and packets.
The "Dispatch" is a generic interface that knows how to read a designated protocol layer and sort inc...
Dispatch()
Constructor and destructor access restricted to children.
Generic network Dispatch API.
An Ethernet MAC address (with serializable interface).
bool is_multicast() const
Broadcast, L2 multicast, or L3 multicast.
EtherType field (uint16) is used a protocol-ID [1536..65535].
Header contents for an 802.1Q Virtual-LAN tag.
u16 value
The 16-bit value holds VID, DEI, and PCP fields.
u16 vid() const
Accessors for each individual field.
Multipurpose filter for matching fields in network packets.