|
SatCat5
|
Intercepts all packets with the ETYPE_RECOVERY_IN ethertype and puts them into a buffer that can be read using the Readable interface returned by read().
Definition at line 26 of file port_recovery.h.
#include <port_recovery.h>
Public Member Functions | |
| RecoveryIngress (satcat5::eth::SwitchCore *sw) | |
| Ingress interface attaches to an Ethernet switch. | |
| satcat5::io::Readable * | read () |
| Return the buffer's Readable interface. | |
Protected Member Functions | |
| void | query (satcat5::eth::PluginPacket &packet) override |
| Packet-received callback. More... | |
Protected Attributes | |
| satcat5::io::PacketBuffer | m_recov_in_buff |
| u8 | m_raw_buff_in [SATCAT5_RECOVERY_SWITCH_BUFFER_SIZE] |
| satcat5::eth::SwitchCore *const | m_switch |
| Pointer to the associated SwitchCore object. | |
Private Attributes | |
| satcat5::eth::PluginCore * | m_next |
|
overrideprotectedvirtual |
Packet-received callback.
The query method is called for each incoming packet, passing a PluginPacket object that plugins can read or modify in-place. Plugins that alter header fields MUST set FLAG_HEADER_CHANGE and MUST NOT make any change that affects header length. The child class MUST override this method.
Implements satcat5::eth::PluginCore.
Definition at line 27 of file port_recovery.cc.