Searched refs:imsg (Results 1 - 8 of 8) sorted by relevance
/freebsd-current/lib/libopenbsd/ |
H A D | Makefile | 4 SRCS= imsg-buffer.c \ 5 imsg.c \
|
H A D | imsg.c | 1 /* $OpenBSD: imsg.c,v 1.13 2015/12/09 11:54:12 tb Exp $ */ 29 #include "imsg.h" 124 imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) argument 133 memcpy(&imsg->hdr, ibuf->r.buf, sizeof(imsg->hdr)); 134 if (imsg->hdr.len < IMSG_HEADER_SIZE || 135 imsg->hdr.len > MAX_IMSGSIZE) { 139 if (imsg->hdr.len > av) 141 datalen = imsg 264 imsg_free(struct imsg *imsg) argument [all...] |
H A D | imsg.h | 1 /* $OpenBSD: imsg.h,v 1.3 2013/12/26 17:32:33 eric Exp $ */ 73 struct imsg { struct 96 /* imsg.c */ 99 ssize_t imsg_get(struct imsgbuf *, struct imsg *); 108 void imsg_free(struct imsg *);
|
/freebsd-current/usr.sbin/ypldap/ |
H A D | ypldap_dns.c | 128 struct imsg imsg; local 157 if ((n = imsg_get(ibuf, &imsg)) == -1) 162 switch (imsg.hdr.type) { 164 name = imsg.data; 165 if (imsg.hdr.len < 1 + IMSG_HEADER_SIZE) 167 imsg.hdr.len -= 1 + IMSG_HEADER_SIZE; 168 if (name[imsg.hdr.len] != '\0' || 169 strlen(name) != imsg.hdr.len) 174 imsg [all...] |
H A D | ldapclient.c | 154 struct imsg imsg; local 184 if ((n = imsg_get(ibuf, &imsg)) == -1) 189 switch (imsg.hdr.type) { 192 if (idm->idm_id == imsg.hdr.peerid) 203 dlen = imsg.hdr.len - IMSG_HEADER_SIZE; 209 data = (u_char *)imsg.data; 228 imsg_free(&imsg); 257 struct imsg imsg; local [all...] |
H A D | ypldap.c | 358 struct imsg imsg; local 378 if ((n = imsg_get(ibuf, &imsg)) == -1) 383 switch (imsg.hdr.type) { 394 (void)memcpy(&ir, imsg.data, sizeof(ir)); 420 (void)memcpy(&ir, imsg.data, sizeof(ir)); 447 log_debug("main_dispatch_client: unexpected imsg %d", 448 imsg.hdr.type); 451 imsg_free(&imsg);
|
H A D | ypldap.h | 19 #include <imsg.h>
|
/freebsd-current/contrib/libpcap/ |
H A D | pcap-sita.c | 71 char *imsg; /* a pointer to an inbound message */ member in struct:unit 218 if (u->imsg) { /* then if an inbound message buffer exists */ 221 bigger_buffer = (char *)realloc(u->imsg, 1); /* and re-allocate the old large buffer into a new small one */ 226 u->imsg = bigger_buffer; 584 ptr = u->imsg; /* point to the start of the msg for this IOP */ 585 while (ptr < (u->imsg + u->len)) { 731 if ((u->imsg = realloc(u->imsg, (u->len + len))) == NULL) /* extend the buffer for the new data */ 733 memcpy((u->imsg + u->len), buf, len); /* append the new data */
|
Completed in 90 milliseconds