|
SatCat5
|
Log any received Ethernet traffic of the designated type.
Definition at line 225 of file sim_utils.h.
#include <sim_utils.h>
Public Member Functions | |
| LogProtocol (satcat5::eth::Dispatch *dispatch, const satcat5::eth::MacType ðertype) | |
| Attach this object to an Ethernet interface and set filter. | |
| void | frame_rcvd (satcat5::io::LimitedRead &src) override |
| Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value. More... | |
Protected Attributes | |
| satcat5::eth::Dispatch *const | m_iface |
| Parent interface (e.g., for address and I/O) | |
| const satcat5::eth::MacType | m_etype |
| satcat5::net::Type | m_filter |
| Incoming packet filter. | |
Private Attributes | |
| satcat5::net::Protocol * | m_next |
| Linked list of Protocols. | |
|
overridevirtual |
Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value.
The child class SHOULD read the frame contents from the provided "src" object, which is only valid until the function returns.
To send a reply:
The child class MUST override this method.
Implements satcat5::net::Protocol.
Definition at line 247 of file sim_utils.cc.