|
Compounds |
struct | connect |
Defines |
#define | min(a, b) ((a) <= (b) ? (a) : (b)) |
#define | max(a, b) ((a) >= (b) ? (a) : (b)) |
#define | MAX_CONNECTIONS 1000 |
Enumerations |
enum | client_states { PENDING_ACTIVE,
ACTIVE,
PENDING_IDLE,
IDLE
} |
enum | event_types {
SYN,
ACT_REQ,
ACT_RSP,
END,
REQ,
RSP
} |
Functions |
void | Usage (char *s) |
void | error_line (char *s) |
void | error_state (char *s) |
void | log_REQ (void) |
void | log_RSP (void) |
void | log_IDLE (char *s) |
void | set_connection (char *sp, char *dh, char *dp, enum event_types type) |
void | ClearConnections (void) |
int | ConnectionsActive (void) |
int | FindConnection (char *sp, char *dh, char *dp) |
int | AddConnection (char *sp, char *dh, char *dp) |
int | RemoveConnection (char *sp, char *dh, char *dp) |
long | elapsed_ms (char *end, char *start) |
void | main (int argc, char *argv[]) |
void | tvsub (tdiff, t1, t0) struct timeval *tdiff |
Variables |
FILE * | dumpFP |
FILE * | outFP |
timeval | time_stamp = {0,0} |
int | req |
int | rsp |
char | ts [20] |
char | sh [25] |
char | sp [10] |
char | gt [3] |
char | dh [25] |
char | dp [10] |
char | fl [5] |
char | current_src [25] = "" |
enum client_states | client_state = PENDING_ACTIVE |
enum event_types | event_type |
char | idle_begin [20] |
char | earliest_end [20] |
char | last_client_ts [20] |
int | active_connections = 0 |
connect | connections [MAX_CONNECTIONS] |
char | new_line [500] |
void * | t1 |
void * | t0 |