SatCat5
satcat5::port::RecoveryIngress Class Reference

Detailed Description

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>

Inheritance diagram for satcat5::port::RecoveryIngress:
[legend]
Collaboration diagram for satcat5::port::RecoveryIngress:
[legend]

Public Member Functions

 RecoveryIngress (satcat5::eth::SwitchCore *sw)
 Ingress interface attaches to an Ethernet switch.
 
satcat5::io::Readableread ()
 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::PluginCorem_next
 

Member Function Documentation

◆ query()

void RecoveryIngress::query ( satcat5::eth::PluginPacket pkt)
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.


The documentation for this class was generated from the following files: