SatCat5
satcat5::eth::SwitchVlanEgress Class Reference

Detailed Description

Port plugin for egress formatting of Virtual-LAN tags.

See also
eth_sw_vlan.h

Definition at line 25 of file eth_sw_vlan.h.

#include <eth_sw_vlan.h>

Inheritance diagram for satcat5::eth::SwitchVlanEgress:
[legend]
Collaboration diagram for satcat5::eth::SwitchVlanEgress:
[legend]

Public Member Functions

 SwitchVlanEgress (satcat5::eth::SwitchPort *port)
 Constructor links to a specified port.
 
void egress (PluginPacket &pkt) override
 Packet-transmit callback. More...
 
virtual void ingress (PluginPacket &pkt)
 Packet-received callback. More...
 

Protected Attributes

satcat5::eth::SwitchPort *const m_port
 Pointer to the associated SwitchPort object.
 

Private Attributes

satcat5::eth::PluginPortm_next
 

Member Function Documentation

◆ egress()

void SwitchVlanEgress::egress ( PluginPacket pkt)
overridevirtual

Packet-transmit callback.

The egress method is called as each packet is queued for transmission by the eth::SwitchPort. Plugins that alter header fields MUST set FLAG_HEADER_CHANGE. Unlike other contexts, the egress callback may change header length. Override the default implementation to process this event.

Reimplemented from satcat5::eth::PluginPort.

Definition at line 26 of file eth_sw_vlan.cc.

◆ ingress()

virtual void satcat5::eth::PluginPort::ingress ( PluginPacket pkt)
inlinevirtualinherited

Packet-received callback.

The ingress method is called as each packet enters the associated eth::SwitchPort, immediately before processing by eth::SwitchCore and calls to eth::PluginCore::query. Plugins that alter header fields MUST set FLAG_HEADER_CHANGE and MUST NOT make any change that affects header length. Override the default implementation to process this event.

Reimplemented in satcat5::router2::BasicNat.

Definition at line 207 of file eth_plugin.h.


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