6 #include <satcat5/eth_dispatch.h>
7 #include <satcat5/eth_protocol.h>
19 : satcat5::net::
Protocol(
Type(vtag.vid(), ethertype.value))
26 #if SATCAT5_ALLOW_DELETION
27 satcat5::eth::Protocol::~Protocol()
29 if (m_iface) m_iface->remove(
this);
Send packets to a specific Ethernet address.
Implemention of "net::Dispatch" for Ethernet frames.
Accept incoming Ethernet packets by EtherType.
satcat5::eth::Dispatch *const m_iface
Parent interface (e.g., for address and I/O)
Protocol(satcat5::eth::Dispatch *dispatch, const satcat5::eth::MacType ðertype, const satcat5::eth::VlanTag &vtag=satcat5::eth::VTAG_NONE)
Register or unregister this handler with the Dispatcher.
void add(satcat5::net::Protocol *proto)
Register a Protocol object.
EtherType field (uint16) is used a protocol-ID [1536..65535].
Header contents for an 802.1Q Virtual-LAN tag.
Multipurpose filter for matching fields in network packets.