Electroneum
replay_moment Struct Reference

#include <replay.h>

Collaboration diagram for replay_moment:

Public Types

enum  replay_event_type {
  repevt_nothing, repevt_front_query, repevt_front_reply, repevt_timeout,
  repevt_time_passes, repevt_back_reply, repevt_back_query, repevt_autotrust_check,
  repevt_tempfile_check, repevt_error, repevt_assign, repevt_infra_rtt,
  repevt_traffic
}
 

Public Attributes

int time_step
 
struct replay_momentmom_next
 
enum replay_moment::replay_event_type evt_type
 
struct entry * match
 
struct timeval elapse
 
struct sockaddr_storage addr
 
socklen_t addrlen
 
char * variable
 
char * string
 
char * autotrust_id
 
struct config_strlistfile_content
 

Detailed Description

A replay moment. Basically, it consists of events to a fake select() call. This is a recording of an event that happens. And if output is presented, what is done with that.

Definition at line 180 of file replay.h.

Member Enumeration Documentation

◆ replay_event_type

what happens this moment?

Enumerator
repevt_nothing 

nothing happens, as if this event is not there.

repevt_front_query 

incoming query

repevt_front_reply 

test fails if reply to query does not match

repevt_timeout 

timeout

repevt_time_passes 

time passes

repevt_back_reply 

reply arrives from the network

repevt_back_query 

test fails if query to the network does not match

repevt_autotrust_check 

check autotrust key file

repevt_tempfile_check 

check a temp file

repevt_error 

an error happens to outbound query

repevt_assign 

assignment to a variable

repevt_infra_rtt 

store infra rtt cache entry: addr and string (int)

repevt_traffic 

cause traffic to flow

Definition at line 190 of file replay.h.

Member Data Documentation

◆ addr

struct sockaddr_storage replay_moment::addr

address that must be matched, or packet remote host address.

Definition at line 228 of file replay.h.

◆ addrlen

socklen_t replay_moment::addrlen

length of addr, if 0, then any address will do

Definition at line 230 of file replay.h.

◆ autotrust_id

char* replay_moment::autotrust_id

the autotrust file id to check

Definition at line 238 of file replay.h.

◆ elapse

struct timeval replay_moment::elapse

the amount of time that passes

Definition at line 225 of file replay.h.

◆ evt_type

enum replay_moment::replay_event_type replay_moment::evt_type

variable with what is to happen this moment

◆ file_content

struct config_strlist* replay_moment::file_content

file contents to match, one string per line

Definition at line 240 of file replay.h.

◆ match

struct entry* replay_moment::match

The sent packet must match this. Incoming events, the data.

Definition at line 222 of file replay.h.

◆ mom_next

struct replay_moment* replay_moment::mom_next

Next replay moment in list of replay moments.

Definition at line 187 of file replay.h.

◆ string

char* replay_moment::string

string argument, for assign.

Definition at line 235 of file replay.h.

◆ time_step

int replay_moment::time_step

The replay time step number. Starts at 0, time is incremented every time the fake select() is run.

Definition at line 185 of file replay.h.

◆ variable

char* replay_moment::variable

macro name, for assign.

Definition at line 233 of file replay.h.


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