10 #include <satcat5/ip_core.h>
Ethernet port plugin API.
Generic packetized I/O interface for use with SwitchCore.
Basic Network Address Translation (NAT) for the IPv4 router.
void ingress(satcat5::eth::PluginPacket &pkt) override
Packet-received callback.
void egress(satcat5::eth::PluginPacket &pkt) override
Packet-transmit callback.
bool config(const satcat5::ip::Subnet &ip_ext, const satcat5::ip::Subnet &ip_int)
Change the NAT configuration.
BasicNat(satcat5::eth::SwitchPort *port)
Attach this object to the designated router port.
Plugins for the software-defined Ethernet switch and IPv4 router.
Ephemeral data structure provided to plugin callbacks.
An IPv4 subnet consists of a base address and a subnet mask.