unbound
0.1
|
A replay moment. More...
#include <replay.h>
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_error, repevt_assign, repevt_infra_rtt, repevt_traffic } |
what happens this moment? More... | |
Data Fields | |
int | time_step |
The replay time step number. | |
struct replay_moment * | mom_next |
Next replay moment in list of replay moments. | |
enum replay_moment::replay_event_type | evt_type |
variable with what is to happen this moment | |
struct entry * | match |
The sent packet must match this. | |
struct timeval | elapse |
the amount of time that passes | |
struct sockaddr_storage | addr |
address that must be matched, or packet remote host address. | |
socklen_t | addrlen |
length of addr, if 0, then any address will do | |
ldns_rr * | qname |
what pending query should timeout or is answered. | |
char * | variable |
macro name, for assign. | |
char * | string |
string argument, for assign. | |
char * | autotrust_id |
the autotrust file id to check | |
struct config_strlist * | file_content |
file contents to match, one string per line |
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.
what happens this moment?
The replay time step number.
Starts at 0, time is incremented every time the fake select() is run.
Referenced by answer_check_it(), autotrust_check(), do_moment_and_advance(), moment_assign(), pending_find_match(), pending_udp_query(), replay_moment_read(), replay_scenario_read(), and run_scenario().
struct replay_moment* replay_moment::mom_next |
Next replay moment in list of replay moments.
Referenced by advance_moment(), replay_scenario_delete(), and replay_scenario_read().
struct entry* replay_moment::match |
The sent packet must match this.
Incoming events, the data.
Referenced by answer_check_it(), fake_front_query(), fake_pending_callback(), pending_matches_current(), pending_udp_query(), replay_moment_delete(), and replay_moment_read().
struct sockaddr_storage replay_moment::addr |
address that must be matched, or packet remote host address.
Referenced by answer_check_it(), do_infra_rtt(), fake_front_query(), pending_matches_current(), pending_udp_query(), and replay_moment_read().
ldns_rr* replay_moment::qname |
what pending query should timeout or is answered.
or NULL for last sent query. Unused at this time.
Referenced by fake_pending_callback().
char* replay_moment::variable |
macro name, for assign.
Referenced by do_infra_rtt(), moment_assign(), read_assign_step(), replay_moment_delete(), and replay_moment_read().
char* replay_moment::string |
string argument, for assign.
Referenced by do_infra_rtt(), moment_assign(), read_assign_step(), replay_moment_delete(), replay_moment_read(), and time_passes().