replay_moment Struct Reference

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_error
}
 what happens this moment? More...

Data Fields

int time_step
 The replay time step number.
struct replay_momentmom_next
 Next replay moment in list of replay moments.
enum
replay_moment::replay_event_type 
evt_type
 what happens this moment?
struct entrymatch
 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.


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.


Member Enumeration Documentation

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_error  an error happens to outbound query


Field Documentation

The replay time step number.

Starts at 0, time is incremented every time the fake select() is run.

Referenced by answer_check_it(), do_moment_and_advance(), outnet_serviced_query(), pending_find_match(), pending_tcp_query(), pending_udp_query(), replay_moment_read(), replay_scenario_read(), and run_scenario().

Next replay moment in list of replay moments.

Referenced by advance_moment(), replay_scenario_delete(), and replay_scenario_read().

struct entry* replay_moment::match [read]

struct sockaddr_storage replay_moment::addr [read]

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

Referenced by answer_check_it(), fake_front_query(), outnet_serviced_query(), pending_matches_current(), pending_tcp_query(), pending_udp_query(), and replay_moment_read().

what pending query should timeout or is answered.

or NULL for last sent query. Unused at this time.

Referenced by fake_pending_callback().


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

Generated on Mon Nov 16 11:51:39 2009 for unbound by  doxygen 1.5.9