Searched refs:adreq (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | receiver.c | 90 static TAILQ_HEAD(, adreq) adist_free_list; 93 static TAILQ_HEAD(, adreq) adist_disk_list; 96 static TAILQ_HEAD(, adreq) adist_send_list; 101 adreq_clear(struct adreq *adreq) in adreq_clear() argument 104 adreq->adr_error = -1; in adreq_clear() 105 adreq->adr_byteorder = ADIST_BYTEORDER_UNDEFINED; in adreq_clear() 106 adreq->adr_cmd = ADIST_CMD_UNDEFINED; in adreq_clear() 107 adreq->adr_seq = 0; in adreq_clear() 108 adreq->adr_datasize = 0; in adreq_clear() 114 struct adreq *adreq; in init_environment() local [all …]
|
H A D | sender.c | 89 static TAILQ_HEAD(, adreq) adist_free_list; 92 static TAILQ_HEAD(, adreq) adist_send_list; 95 static TAILQ_HEAD(, adreq) adist_recv_list; 102 struct adreq *adreq; in init_environment() local 119 adreq = malloc(sizeof(*adreq) + ADIST_BUF_SIZE); in init_environment() 120 if (adreq == NULL) { in init_environment() 123 sizeof(*adreq) + ADIST_BUF_SIZE); in init_environment() 125 adreq->adr_byteorder = ADIST_BYTEORDER; in init_environment() 126 adreq->adr_cmd = ADIST_CMD_UNDEFINED; in init_environment() 127 adreq->adr_seq = 0; in init_environment() [all …]
|
H A D | auditdistd.h | 201 struct adreq { struct 203 TAILQ_ENTRY(adreq) adr_next; argument 213 #define ADPKT_SIZE(adreq) (sizeof((adreq)->adr_packet) + (adreq)->adr_datasize) argument 224 #define QUEUE_TAKE(adreq, list, timeout) do { \ argument 227 while (((adreq) = TAILQ_FIRST(list)) == NULL) \ 230 (adreq) = TAILQ_FIRST(list); \ 231 if ((adreq) == NULL) { \ 234 (adreq) = TAILQ_FIRST(list); \ 237 if ((adreq) != NULL) \ 238 TAILQ_REMOVE((list), (adreq), adr_next); \ [all …]
|
H A D | subr.c | 114 adreq_log(int loglevel, int debuglevel, int error, struct adreq *adreq, in adreq_log() argument 124 (uintmax_t)adreq->adr_seq); in adreq_log() 125 switch (adreq->adr_cmd) { in adreq_log() 128 adreq->adr_data); in adreq_log() 132 (uintmax_t)adreq->adr_datasize); in adreq_log() 136 adreq->adr_data); in adreq_log() 146 adreq->adr_cmd); in adreq_log()
|
H A D | subr.h | 48 void adreq_log(int loglevel, int debuglevel, int error, struct adreq *adreq,
|