24 #define REQUEST_TIMEOUT 300
27 #undef REQUEST_TIMEOUT
28 #define REQUEST_TIMEOUT 20
102 #define TOTAL_OPS (ACK_NEGATIVE+1)
103 #define TOTAL_REQUESTS (ANDNA_GET_COUNT_CACHE+1)
104 #define TOTAL_REPLIES (TOTAL_OPS-TOTAL_REQUESTS)
127 #define TOTAL_ERRORS (E_TOO_MANY_CONN+1)
144 #define TOTAL_MAXRQ 31
162 #define OP_FILTER_DROP 1
163 #define OP_FILTER_ALLOW 0
164 #define op_filter_set(op) SET_BIT(filtered_op, (op))
165 #define op_filter_clr(op) CLR_BIT(filtered_op, (op))
166 #define op_filter_test(op) TEST_BIT(filtered_op, (op))
167 #define op_filter_reset(bit) memset(filtered_op, (bit), sizeof(filtered_op))
175 #define re_strerror(err) (rq_strerror((err)))
Definition: request.h:118
Definition: request.h:111
Definition: request.h:110
u_char rq[(ANDNA_GET_COUNT_CACHE+1)]
Definition: request.h:147
#define TOTAL_REQUESTS
Definition: request.h:103
int op_verify(u_char)
Definition: request.c:240
Definition: request.h:123
Definition: request.h:112
int find_free_rq_wait(u_char, rq_tbl *)
Definition: request.c:323
Definition: request.h:145
Definition: request.h:119
void rq_wait_idx_init(int *rq_wait_idx)
Definition: request.c:230
void update_rq_tbl(rq_tbl *)
Definition: request.c:281
int rq_verify(u_char)
Definition: request.c:245
const u_char * rq_to_str(u_char rq)
Definition: request.c:267
void op_filter_reset_re(int bit)
Definition: request.c:360
Definition: request.h:120
void op_filter_reset_rq(int bit)
Definition: request.c:373
#define TOTAL_OPS
Definition: request.h:102
int rq_wait_idx[(ANDNA_GET_COUNT_CACHE+1)]
Definition: request.h:152
int re_verify(u_char)
Definition: request.c:250
int update_rq_tbl_mutex
Definition: request.h:154
#define TOTAL_MAXRQ
Definition: request.h:144
pkt_op
Definition: request.h:34
Definition: request.h:117
Definition: request.h:113
const u_char * re_to_str(u_char re)
Definition: request.c:274
time_t rq_wait[31]
Definition: request.h:148
const u_char * rq_strerror(int err)
Definition: request.c:260
int add_rq(u_char, rq_tbl *)
Definition: request.c:336
int is_rq_full(u_char, rq_tbl *)
Definition: request.c:306
char filtered_op[(ACK_NEGATIVE+1) >>3]
Definition: request.h:161
Definition: request.h:109
Definition: request.h:122
Definition: request.h:114
Definition: request.h:121
Definition: request.h:125
errors
Definition: request.h:106
Definition: request.h:115