Home
last modified time | relevance | path

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

/external/ipsec-tools/src/racoon/
Dprivsep.c108 struct admin_com *combuf; local
134 if ((combuf = (struct admin_com *)racoon_malloc(com.ac_len)) == NULL) {
141 while ((len = recvfrom(sock, (char *)combuf,
158 *bufp = (struct privsep_com_msg *)combuf;
287 struct privsep_com_msg *combuf; in privsep_init() local
295 if (privsep_recv(privsep_sock[0], &combuf, &len) != 0) in privsep_init()
299 if (len < sizeof(*combuf)) { in privsep_init()
305 data = (char *)(combuf + 1); in privsep_init()
306 totallen = sizeof(*combuf); in privsep_init()
309 data += combuf->bufs.buflen[i]; in privsep_init()
[all …]
Dadmin.c105 char *combuf = NULL; in admin_handler() local
134 if ((combuf = racoon_malloc(com.ac_len)) == 0) { in admin_handler()
141 while ((len = recv(so2, combuf, com.ac_len, 0)) < 0) { in admin_handler()
156 error = admin_process(so2, combuf); in admin_handler()
160 if (combuf) in admin_handler()
161 racoon_free(combuf); in admin_handler()
170 admin_process(so2, combuf) in admin_process() argument
172 char *combuf;
174 struct admin_com *com = (struct admin_com *)combuf;
503 admin_reply(so, combuf, buf) in admin_reply() argument
[all …]
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) {
Dracoonctl.c259 vchar_t *combuf; local
301 combuf = get_combuf(ac, av);
302 if (!combuf)
306 racoon_hexdump(combuf, ((struct admin_com *)combuf)->ac_len);
310 if (com_send(combuf) != 0)
313 vfree(combuf);
315 if (com_recv(&combuf) != 0)
317 if (handle_recv(combuf) != 0)
320 vfree(combuf);
1549 handle_recv(combuf) in handle_recv() argument
[all …]
/external/python/cpython2/Lib/test/
Dtest_zlib.py250 combuf = ''.join(bufs)
266 combuf = ''.join(bufs)
268 self.assertEqual(data, zlib.decompress(combuf))
272 for i in range(0, len(combuf), dcx):
273 bufs.append(dco.decompress(combuf[i:i+dcx]))
305 combuf = ''.join(bufs)
306 self.assertEqual(data, zlib.decompress(combuf),
311 cb = combuf
330 combuf = ''.join(bufs)
331 self.assertEqual(data, zlib.decompress(combuf),
[all …]
/external/python/cpython3/Lib/test/
Dtest_zlib.py291 combuf = b''.join(bufs)
307 combuf = b''.join(bufs)
309 decombuf = zlib.decompress(combuf)
317 for i in range(0, len(combuf), dcx):
318 bufs.append(dco.decompress(combuf[i:i+dcx]))
352 combuf = b''.join(bufs)
353 self.assertEqual(data, zlib.decompress(combuf),
358 cb = combuf
377 combuf = b''.join(bufs)
378 self.assertEqual(data, zlib.decompress(combuf),
[all …]