A mock CongURE state object. More...

Detailed Description

A mock CongURE state object.

Definition at line 35 of file mock.h.

#include <mock.h>

Data Fields

congure_snd_t super
 see congure_snd_t
 
const congure_snd_driver_tmethods
 Optional methods called in addition to the tracking functions of the mock driver.
 
uint8_t init_calls
 How often was the congure_snd_driver_t::init() method called?
 
uint8_t inter_msg_interval_calls
 How often was the congure_snd_driver_t::inter_msg_interval() method called?
 
uint8_t report_msg_sent_calls
 How often was the congure_snd_driver_t::report_msg_sent() method called?
 
uint8_t report_msg_discarded_calls
 How often was the congure_snd_driver_t::report_msg_discarded() method called?
 
uint8_t report_msgs_timeout_calls
 How often was the congure_snd_driver_t::report_msgs_timeout() method called?
 
uint8_t report_msgs_lost_calls
 How often was the congure_snd_driver_t::report_msgs_lost() method called?
 
uint8_t report_msg_acked_calls
 How often was the congure_snd_driver_t::report_msg_acked() method called?
 
uint8_t report_ecn_ce_calls
 How often was the congure_snd_driver_t::report_ecn_ce() method called?
 
struct {
   congure_snd_t *   c
 The CongURE object to initialize.
 
   void *   ctx
 Context for callbacks specific to CC.
 
init_args
 What were the arguments for the last congure_snd_driver_t::init() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   unsigned   msg_size
 The size of the next message to send.
 
inter_msg_interval_args
 What were the arguments for the last congure_snd_driver_t::inter_msg_interval() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   unsigned   msg_size
 Size of the message.
 
report_msg_sent_args
 What were the arguments for the last congure_snd_driver_t::report_msg_sent() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   unsigned   msg_size
 Size of the message.
 
report_msg_discarded_args
 What were the arguments for the last congure_snd_driver_t::report_msg_discarded() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   congure_snd_msg_t *   msgs
 A collection of messages for which the ACK timed out.
 
report_msgs_timeout_args
 What were the arguments for the last congure_snd_driver_t::report_msgs_timeout() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   congure_snd_msg_t *   msgs
 A collection of messages that are known to be lost.
 
report_msgs_lost_args
 What were the arguments for the last congure_snd_driver_t::report_msgs_lost() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   congure_snd_msg_t *   msg
 The ACK'd message.
 
   congure_snd_ack_t *   ack
 The received ACK.
 
report_msg_acked_args
 What were the arguments for the last congure_snd_driver_t::report_msg_acked() call?
 
struct {
   congure_snd_t *   c
 The CongURE state object.
 
   ztimer_now_t   time
 Timestamp of the message the CE event occurred for was sent.
 
report_ecn_ce_args
 What were the arguments for the last congure_snd_driver_t::report_ecn_ce() call?
 
- Data Fields inherited from congure_snd_t
const congure_snd_driver_tdriver
 Driver for the state object. More...
 
void * ctx
 Context for callbacks specific to the congestion control. More...
 
congure_wnd_size_t cwnd
 Congestion window size.
 

Field Documentation

◆ c

congure_snd_t* congure_mock_snd_t::c

The CongURE object to initialize.

The CongURE state object.

Definition at line 86 of file mock.h.

◆ msg_size

unsigned congure_mock_snd_t::msg_size

The size of the next message to send.

Size of the message.

Definition at line 95 of file mock.h.

◆ msgs

congure_snd_msg_t* congure_mock_snd_t::msgs

A collection of messages for which the ACK timed out.

A collection of messages that are known to be lost.

Definition at line 122 of file mock.h.


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