SatCat5
satcat5::test::CountArpResponse Class Referencefinal

Detailed Description

Count calls to arp_event().

See also
eth::ArpListener

Definition at line 139 of file sim_utils.h.

#include <sim_utils.h>

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

Public Member Functions

 CountArpResponse (satcat5::ip::Dispatch *iface)
 
unsigned count () const
 Returns the current counter value.
 
void count_reset ()
 Reset the counter to zero.
 

Protected Member Functions

void arp_event (const satcat5::eth::MacAddr &mac, const satcat5::ip::Addr &ip) override
 Callback for any announced MAC/IP address pair. More...
 
void gateway_change (const satcat5::ip::Addr &dstaddr, const satcat5::ip::Addr &gateway) override
 Callback for changes to gateway configuration. More...
 

Protected Attributes

satcat5::eth::ProtoArp *const m_arp
 
unsigned m_count
 

Private Attributes

satcat5::eth::ArpListenerm_next
 

Member Function Documentation

◆ arp_event()

void satcat5::test::CountArpResponse::arp_event ( const satcat5::eth::MacAddr mac,
const satcat5::ip::Addr ip 
)
inlineoverrideprotectedvirtual

Callback for any announced MAC/IP address pair.

Child class MUST override this method.

Implements satcat5::eth::ArpListener.

Definition at line 146 of file sim_utils.h.

◆ gateway_change()

void satcat5::test::CountArpResponse::gateway_change ( const satcat5::ip::Addr dstaddr,
const satcat5::ip::Addr gateway 
)
inlineoverrideprotectedvirtual

Callback for changes to gateway configuration.

Child class MAY override this method.

Reimplemented from satcat5::eth::ArpListener.

Definition at line 147 of file sim_utils.h.


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