SatCat5
satcat5::test::CrosslinkSpp Struct Reference

Detailed Description

Crosslink plus CCSDS-SPP dispatch.

Definition at line 74 of file eth_crosslink.h.

#include <eth_crosslink.h>

Inheritance diagram for satcat5::test::CrosslinkSpp:
[legend]
Collaboration diagram for satcat5::test::CrosslinkSpp:
[legend]

Public Member Functions

 CrosslinkSpp (const char *filename=0)
 
void set_loss_rate (float rate)
 Shortcut for setting loss rate on both interfaces.
 
void set_zero_pad (unsigned len)
 Shortcut for setting zero-padding on both interfaces.
 

Public Attributes

satcat5::ccsds_spp::Dispatch spp0
 Packet handling for eth0.
 
satcat5::ccsds_spp::Dispatch spp1
 Packet handling for eth1.
 
satcat5::test::TimerSimulation timer
 Clock for network simulation and packet timestamps.
 
satcat5::io::WritePcap pcap
 Packet-capture logging system.
 
satcat5::test::EthernetInterface eth0
 Define each network interface (usually Ethernet).
 
satcat5::test::EthernetInterface eth1
 Define each network interface (usually Ethernet).
 

Static Public Attributes

static constexpr satcat5::eth::MacAddr MAC0 = {{0xDE, 0xAD, 0xBE, 0xEF, 0x11, 0x11}}
 Set preferred addresses for each interface.
 
static constexpr satcat5::eth::MacAddr MAC1 = {{0xDE, 0xAD, 0xBE, 0xEF, 0x22, 0x22}}
 Set preferred addresses for each interface.
 
static constexpr satcat5::ip::Addr IP0 = satcat5::ip::Addr(192, 168, 1, 11)
 Set preferred addresses for each interface.
 
static constexpr satcat5::ip::Addr IP1 = satcat5::ip::Addr(192, 168, 1, 74)
 Set preferred addresses for each interface.
 

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