11 #include <hal_test/eth_interface.h>
14 #include <satcat5/eth_dispatch.h>
15 #include <satcat5/ip_stack.h>
28 MAC0 = {{0xDE, 0xAD, 0xBE, 0xEF, 0x11, 0x11}},
29 MAC1 = {{0xDE, 0xAD, 0xBE, 0xEF, 0x22, 0x22}};
38 u16 type = satcat5::io::LINKTYPE_ETHERNET);
CCSDS Space Packet Protocol.
Implemention of "net::Dispatch" API for CCSDS-SPP packets.
Implemention of "net::Dispatch" for Ethernet frames.
Store packet stream to a file.
All-in-one Internet Protocol stack with all basic services.
Simulation of a PTP-compatible Ethernet interface controller.
Timekeeper object for granular simulation of elapsed time.
File I/O for packet capture files (PCAP, PCAPNG)
Miscellaneous POSIX wrappers (e.g., heap allocation, log to console...)
Miscellaneous simulation and test helper functions.
An Ethernet MAC address (with serializable interface).
IPv4 address is a 32-bit unsigned integer.
Crosslink plus Ethernet dispatch.
satcat5::eth::Dispatch net0
Packet handling for eth0.
satcat5::eth::Dispatch net1
Packet handling for eth1.
Container for a pair of back-to-back network interfaces.
satcat5::test::TimerSimulation timer
Clock for network simulation and packet timestamps.
static constexpr satcat5::eth::MacAddr MAC0
Set preferred addresses for each interface.
satcat5::test::EthernetInterface eth0
Define each network interface (usually Ethernet).
static constexpr satcat5::ip::Addr IP1
Set preferred addresses for each interface.
satcat5::test::EthernetInterface eth1
Define each network interface (usually Ethernet).
void set_zero_pad(unsigned len)
Shortcut for setting zero-padding on both interfaces.
void set_loss_rate(float rate)
Shortcut for setting loss rate on both interfaces.
static constexpr satcat5::ip::Addr IP0
Set preferred addresses for each interface.
static constexpr satcat5::eth::MacAddr MAC1
Set preferred addresses for each interface.
Crosslink(const char *filename, u16 type=satcat5::io::LINKTYPE_ETHERNET)
Constructor accepts a filename to use for packet logging.
satcat5::io::WritePcap pcap
Packet-capture logging system.
Crosslink plus full IPv4+UDP stack.
satcat5::ip::Stack net0
Packet handling for eth0.
satcat5::ip::Stack net1
Packet handling for eth1.
Crosslink plus CCSDS-SPP dispatch.
satcat5::ccsds_spp::Dispatch spp1
Packet handling for eth1.
satcat5::ccsds_spp::Dispatch spp0
Packet handling for eth0.