Home
last modified time | relevance | path

Searched refs:combuf (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Dprivsep.c133 struct admin_com *combuf; local
165 if ((combuf = (struct admin_com *)racoon_malloc(com.ac_len)) == NULL) {
172 while ((len = recvfrom(sock, (char *)combuf,
191 *bufp = (struct privsep_com_msg *)combuf;
332 struct privsep_com_msg *combuf; in privsep_init() local
339 if (privsep_recv(privsep_sock[0], &combuf, &len) != 0) in privsep_init()
343 if (len < sizeof(*combuf)) { in privsep_init()
349 data = (char *)(combuf + 1); in privsep_init()
350 totallen = sizeof(*combuf); in privsep_init()
353 data += combuf->bufs.buflen[i]; in privsep_init()
[all …]
H A Dadmin.c106 char *combuf = NULL; in admin_handler() local
136 if ((combuf = racoon_malloc(com.ac_len)) == 0) { in admin_handler()
143 while ((len = recv(so2, combuf, com.ac_len, 0)) < 0) { in admin_handler()
152 error = admin_process(so2, combuf); in admin_handler()
162 if (combuf) in admin_handler()
163 racoon_free(combuf); in admin_handler()
180 admin_process(so2, combuf) in admin_process() argument
182 char *combuf;
184 struct admin_com *com = (struct admin_com *)combuf;
638 struct admin_com *combuf; local
[all …]
H A Dkmpstat.c121 com_send(combuf) in com_send() argument
122 vchar_t *combuf; in com_send()
126 if ((len = send(so, combuf->v, combuf->l, 0)) == -1) {
H A Dracoonctl.c255 vchar_t *combuf; local
297 combuf = get_combuf(ac, av);
298 if (!combuf)
302 racoon_hexdump(combuf, ((struct admin_com *)combuf)->ac_len);
306 if (com_send(combuf) != 0)
309 vfree(combuf);
312 if (com_recv(&combuf) != 0)
314 if (handle_recv(combuf) != 0)
316 vfree(combuf);
1421 handle_recv(combuf) in handle_recv() argument
[all …]