Symbol: imsg
lib/libutil/imsg.c
117
imsgbuf_get(struct imsgbuf *imsgbuf, struct imsg *imsg)
lib/libutil/imsg.c
119
struct imsg m;
lib/libutil/imsg.c
135
*imsg = m;
lib/libutil/imsg.c
140
imsg_get(struct imsgbuf *imsgbuf, struct imsg *imsg)
lib/libutil/imsg.c
144
if ((rv = imsgbuf_get(imsgbuf, imsg)) != 1)
lib/libutil/imsg.c
146
return (imsg_get_len(imsg) + IMSG_HEADER_SIZE);
lib/libutil/imsg.c
150
imsg_ibufq_pop(struct ibufqueue *bufq, struct imsg *imsg)
lib/libutil/imsg.c
152
struct imsg m;
lib/libutil/imsg.c
168
*imsg = m;
lib/libutil/imsg.c
173
imsg_ibufq_push(struct ibufqueue *bufq, struct imsg *imsg)
lib/libutil/imsg.c
175
ibuf_rewind(imsg->buf);
lib/libutil/imsg.c
176
ibufq_push(bufq, imsg->buf);
lib/libutil/imsg.c
177
memset(imsg, 0, sizeof(*imsg));
lib/libutil/imsg.c
181
imsg_get_ibuf(struct imsg *imsg, struct ibuf *ibuf)
lib/libutil/imsg.c
183
if (ibuf_size(imsg->buf) == 0) {
lib/libutil/imsg.c
187
return ibuf_get_ibuf(imsg->buf, ibuf_size(imsg->buf), ibuf);
lib/libutil/imsg.c
191
imsg_get_data(struct imsg *imsg, void *data, size_t len)
lib/libutil/imsg.c
197
if (ibuf_size(imsg->buf) != len) {
lib/libutil/imsg.c
201
return ibuf_get(imsg->buf, data, len);
lib/libutil/imsg.c
205
imsg_get_buf(struct imsg *imsg, void *data, size_t len)
lib/libutil/imsg.c
207
return ibuf_get(imsg->buf, data, len);
lib/libutil/imsg.c
211
imsg_get_strbuf(struct imsg *imsg, char *str, size_t len)
lib/libutil/imsg.c
213
return ibuf_get_strbuf(imsg->buf, str, len);
lib/libutil/imsg.c
217
imsg_get_fd(struct imsg *imsg)
lib/libutil/imsg.c
219
return ibuf_fd_get(imsg->buf);
lib/libutil/imsg.c
223
imsg_get_id(struct imsg *imsg)
lib/libutil/imsg.c
225
return (imsg->hdr.peerid);
lib/libutil/imsg.c
229
imsg_get_len(struct imsg *imsg)
lib/libutil/imsg.c
231
return ibuf_size(imsg->buf);
lib/libutil/imsg.c
235
imsg_get_pid(struct imsg *imsg)
lib/libutil/imsg.c
237
return (imsg->hdr.pid);
lib/libutil/imsg.c
241
imsg_get_type(struct imsg *imsg)
lib/libutil/imsg.c
243
return (imsg->hdr.type);
lib/libutil/imsg.c
337
imsg_forward(struct imsgbuf *imsgbuf, struct imsg *msg)
lib/libutil/imsg.c
416
imsg_free(struct imsg *imsg)
lib/libutil/imsg.c
418
ibuf_free(imsg->buf);
lib/libutil/imsg.h
149
int imsgbuf_get(struct imsgbuf *, struct imsg *);
lib/libutil/imsg.h
150
ssize_t imsg_get(struct imsgbuf *, struct imsg *);
lib/libutil/imsg.h
151
int imsg_ibufq_pop(struct ibufqueue *, struct imsg *);
lib/libutil/imsg.h
152
void imsg_ibufq_push(struct ibufqueue *, struct imsg *);
lib/libutil/imsg.h
153
int imsg_get_ibuf(struct imsg *, struct ibuf *);
lib/libutil/imsg.h
154
int imsg_get_data(struct imsg *, void *, size_t);
lib/libutil/imsg.h
155
int imsg_get_buf(struct imsg *, void *, size_t);
lib/libutil/imsg.h
156
int imsg_get_strbuf(struct imsg *, char *, size_t);
lib/libutil/imsg.h
157
int imsg_get_fd(struct imsg *);
lib/libutil/imsg.h
158
uint32_t imsg_get_id(struct imsg *);
lib/libutil/imsg.h
159
size_t imsg_get_len(struct imsg *);
lib/libutil/imsg.h
160
pid_t imsg_get_pid(struct imsg *);
lib/libutil/imsg.h
161
uint32_t imsg_get_type(struct imsg *);
lib/libutil/imsg.h
162
int imsg_forward(struct imsgbuf *, struct imsg *);
lib/libutil/imsg.h
172
void imsg_free(struct imsg *);
sbin/dhcp6leased/control.c
229
struct imsg imsg;
sbin/dhcp6leased/control.c
251
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
sbin/dhcp6leased/control.c
258
switch (imsg.hdr.type) {
sbin/dhcp6leased/control.c
260
frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
sbin/dhcp6leased/control.c
263
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
sbin/dhcp6leased/control.c
265
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/dhcp6leased/control.c
267
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
sbin/dhcp6leased/control.c
268
imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
269
frontend_imsg_compose_engine(imsg.hdr.type, 0,
sbin/dhcp6leased/control.c
270
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
272
memcpy(&verbose, imsg.data, sizeof(verbose));
sbin/dhcp6leased/control.c
276
if (IMSG_DATA_SIZE(imsg) != sizeof(uint32_t))
sbin/dhcp6leased/control.c
278
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/dhcp6leased/control.c
279
frontend_imsg_compose_engine(imsg.hdr.type, 0,
sbin/dhcp6leased/control.c
280
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
283
if (IMSG_DATA_SIZE(imsg) != sizeof(uint32_t))
sbin/dhcp6leased/control.c
285
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/dhcp6leased/control.c
287
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
291
imsg.hdr.type);
sbin/dhcp6leased/control.c
294
imsg_free(&imsg);
sbin/dhcp6leased/control.c
301
control_imsg_relay(struct imsg *imsg)
sbin/dhcp6leased/control.c
305
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
sbin/dhcp6leased/control.c
308
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
sbin/dhcp6leased/control.c
309
-1, imsg->data, IMSG_DATA_SIZE(*imsg)));
sbin/dhcp6leased/control.h
23
int control_imsg_relay(struct imsg *);
sbin/dhcp6leased/dhcp6leased.c
424
struct imsg imsg;
sbin/dhcp6leased/dhcp6leased.c
448
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcp6leased/dhcp6leased.c
453
switch (imsg.hdr.type) {
sbin/dhcp6leased/dhcp6leased.c
455
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
sbin/dhcp6leased/dhcp6leased.c
457
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
458
memcpy(&if_index, imsg.data, sizeof(if_index));
sbin/dhcp6leased/dhcp6leased.c
468
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
sbin/dhcp6leased/dhcp6leased.c
470
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
471
memcpy(&verbose, imsg.data, sizeof(verbose));
sbin/dhcp6leased/dhcp6leased.c
475
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_ifinfo))
sbin/dhcp6leased/dhcp6leased.c
477
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
478
memcpy(&imsg_ifinfo, imsg.data, sizeof(imsg_ifinfo));
sbin/dhcp6leased/dhcp6leased.c
485
imsg.hdr.type);
sbin/dhcp6leased/dhcp6leased.c
488
imsg_free(&imsg);
sbin/dhcp6leased/dhcp6leased.c
504
struct imsg imsg;
sbin/dhcp6leased/dhcp6leased.c
525
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcp6leased/dhcp6leased.c
530
switch (imsg.hdr.type) {
sbin/dhcp6leased/dhcp6leased.c
533
if (IMSG_DATA_SIZE(imsg) !=
sbin/dhcp6leased/dhcp6leased.c
537
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
538
memcpy(&imsg_configure_address, imsg.data,
sbin/dhcp6leased/dhcp6leased.c
545
if (IMSG_DATA_SIZE(imsg) !=
sbin/dhcp6leased/dhcp6leased.c
549
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
550
memcpy(&imsg_configure_address, imsg.data,
sbin/dhcp6leased/dhcp6leased.c
557
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_crr))
sbin/dhcp6leased/dhcp6leased.c
560
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
561
memcpy(&imsg_crr, imsg.data, sizeof(imsg_crr));
sbin/dhcp6leased/dhcp6leased.c
567
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_crr))
sbin/dhcp6leased/dhcp6leased.c
570
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
571
memcpy(&imsg_crr, imsg.data, sizeof(imsg_crr));
sbin/dhcp6leased/dhcp6leased.c
577
if (IMSG_DATA_SIZE(imsg) !=
sbin/dhcp6leased/dhcp6leased.c
580
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/dhcp6leased.c
581
memcpy(&imsg_lease_info, imsg.data,
sbin/dhcp6leased/dhcp6leased.c
588
imsg.hdr.type);
sbin/dhcp6leased/dhcp6leased.c
591
imsg_free(&imsg);
sbin/dhcp6leased/dhcp6leased.h
94
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
sbin/dhcp6leased/engine.c
124
void engine_showinfo_ctl(struct imsg *, uint32_t);
sbin/dhcp6leased/engine.c
1280
struct imsg_req_dhcp imsg;
sbin/dhcp6leased/engine.c
1283
memset(&imsg, 0, sizeof(imsg));
sbin/dhcp6leased/engine.c
1284
imsg.if_index = iface->if_index;
sbin/dhcp6leased/engine.c
1285
memcpy(imsg.xid, iface->xid, sizeof(imsg.xid));
sbin/dhcp6leased/engine.c
1289
imsg.elapsed_time = 0xffff;
sbin/dhcp6leased/engine.c
1291
imsg.elapsed_time = res.tv_sec * 100;
sbin/dhcp6leased/engine.c
1292
engine_imsg_compose_frontend(IMSG_SEND_SOLICIT, 0, &imsg, sizeof(imsg));
sbin/dhcp6leased/engine.c
1298
struct imsg_req_dhcp imsg;
sbin/dhcp6leased/engine.c
1301
memset(&imsg, 0, sizeof(imsg));
sbin/dhcp6leased/engine.c
1302
imsg.if_index = iface->if_index;
sbin/dhcp6leased/engine.c
1303
memcpy(imsg.xid, iface->xid, sizeof(imsg.xid));
sbin/dhcp6leased/engine.c
1308
imsg.elapsed_time = 0xffff;
sbin/dhcp6leased/engine.c
1310
imsg.elapsed_time = res.tv_sec * 100;
sbin/dhcp6leased/engine.c
1326
imsg.serverid_len = iface->serverid_len;
sbin/dhcp6leased/engine.c
1327
memcpy(imsg.serverid, iface->serverid, SERVERID_SIZE);
sbin/dhcp6leased/engine.c
1328
memcpy(imsg.pds, iface->pds, sizeof(iface->pds));
sbin/dhcp6leased/engine.c
1333
engine_imsg_compose_frontend(IMSG_SEND_REQUEST, 0, &imsg,
sbin/dhcp6leased/engine.c
1334
sizeof(imsg));
sbin/dhcp6leased/engine.c
1337
engine_imsg_compose_frontend(IMSG_SEND_RENEW, 0, &imsg,
sbin/dhcp6leased/engine.c
1338
sizeof(imsg));
sbin/dhcp6leased/engine.c
1342
engine_imsg_compose_frontend(IMSG_SEND_REBIND, 0, &imsg,
sbin/dhcp6leased/engine.c
1343
sizeof(imsg));
sbin/dhcp6leased/engine.c
1584
struct imsg_configure_reject_route imsg;
sbin/dhcp6leased/engine.c
1586
memset(&imsg, 0, sizeof(imsg));
sbin/dhcp6leased/engine.c
1588
imsg.if_index = iface->if_index;
sbin/dhcp6leased/engine.c
1589
imsg.rdomain = iface->rdomain;
sbin/dhcp6leased/engine.c
1590
memcpy(&imsg.prefix, prefix, sizeof(imsg.prefix));
sbin/dhcp6leased/engine.c
1591
in6_prefixlen2mask(&imsg.mask, prefix_len);
sbin/dhcp6leased/engine.c
1594
engine_imsg_compose_main(IMSG_CONFIGURE_REJECT_ROUTE, 0, &imsg,
sbin/dhcp6leased/engine.c
1595
sizeof(imsg));
sbin/dhcp6leased/engine.c
1598
&imsg, sizeof(imsg));
sbin/dhcp6leased/engine.c
277
struct imsg imsg;
sbin/dhcp6leased/engine.c
299
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcp6leased/engine.c
304
switch (imsg.hdr.type) {
sbin/dhcp6leased/engine.c
306
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
sbin/dhcp6leased/engine.c
308
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
309
memcpy(&verbose, imsg.data, sizeof(verbose));
sbin/dhcp6leased/engine.c
313
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
sbin/dhcp6leased/engine.c
316
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
317
memcpy(&if_index, imsg.data, sizeof(if_index));
sbin/dhcp6leased/engine.c
318
engine_showinfo_ctl(&imsg, if_index);
sbin/dhcp6leased/engine.c
321
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
sbin/dhcp6leased/engine.c
324
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
325
memcpy(&if_index, imsg.data, sizeof(if_index));
sbin/dhcp6leased/engine.c
345
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
sbin/dhcp6leased/engine.c
347
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
348
memcpy(&if_index, imsg.data, sizeof(if_index));
sbin/dhcp6leased/engine.c
353
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_dhcp))
sbin/dhcp6leased/engine.c
355
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
356
memcpy(&imsg_dhcp, imsg.data, sizeof(imsg_dhcp));
sbin/dhcp6leased/engine.c
364
imsg.hdr.type);
sbin/dhcp6leased/engine.c
367
imsg_free(&imsg);
sbin/dhcp6leased/engine.c
385
struct imsg imsg;
sbin/dhcp6leased/engine.c
407
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcp6leased/engine.c
412
switch (imsg.hdr.type) {
sbin/dhcp6leased/engine.c
422
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcp6leased/engine.c
445
if (IMSG_DATA_SIZE(imsg) != sizeof(duid.uuid))
sbin/dhcp6leased/engine.c
447
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
449
memcpy(duid.uuid, imsg.data, sizeof(duid.uuid));
sbin/dhcp6leased/engine.c
452
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_ifinfo))
sbin/dhcp6leased/engine.c
454
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
455
memcpy(&imsg_ifinfo, imsg.data, sizeof(imsg_ifinfo));
sbin/dhcp6leased/engine.c
462
if (IMSG_DATA_SIZE(imsg) !=
sbin/dhcp6leased/engine.c
465
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
469
memcpy(nconf, imsg.data,
sbin/dhcp6leased/engine.c
474
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
sbin/dhcp6leased/engine.c
477
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
481
memcpy(iface_conf, imsg.data, sizeof(struct
sbin/dhcp6leased/engine.c
494
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
sbin/dhcp6leased/engine.c
498
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
502
memcpy(iface_ia_conf, imsg.data, sizeof(struct
sbin/dhcp6leased/engine.c
512
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
sbin/dhcp6leased/engine.c
515
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/engine.c
519
memcpy(iface_pd_conf, imsg.data, sizeof(struct
sbin/dhcp6leased/engine.c
564
imsg.hdr.type);
sbin/dhcp6leased/engine.c
567
imsg_free(&imsg);
sbin/dhcp6leased/engine.c
599
engine_showinfo_ctl(struct imsg *imsg, uint32_t if_index)
sbin/dhcp6leased/engine.c
603
switch (imsg->hdr.type) {
sbin/dhcp6leased/engine.c
606
send_interface_info(iface, imsg->hdr.pid);
sbin/dhcp6leased/engine.c
609
imsg->hdr.pid, NULL, 0);
sbin/dhcp6leased/frontend.c
241
struct imsg imsg;
sbin/dhcp6leased/frontend.c
262
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcp6leased/frontend.c
267
switch (imsg.hdr.type) {
sbin/dhcp6leased/frontend.c
277
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcp6leased/frontend.c
296
if ((udpsock = imsg_get_fd(&imsg)) == -1)
sbin/dhcp6leased/frontend.c
300
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
sbin/dhcp6leased/frontend.c
302
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
303
memcpy(&if_index, imsg.data, sizeof(if_index));
sbin/dhcp6leased/frontend.c
307
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcp6leased/frontend.c
315
if (IMSG_DATA_SIZE(imsg) != sizeof(duid.uuid))
sbin/dhcp6leased/frontend.c
317
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
319
memcpy(duid.uuid, imsg.data, sizeof(duid.uuid));
sbin/dhcp6leased/frontend.c
328
if (IMSG_DATA_SIZE(imsg) !=
sbin/dhcp6leased/frontend.c
331
__func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
335
memcpy(nconf, imsg.data,
sbin/dhcp6leased/frontend.c
340
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
sbin/dhcp6leased/frontend.c
343
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
347
memcpy(iface_conf, imsg.data, sizeof(struct
sbin/dhcp6leased/frontend.c
360
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
sbin/dhcp6leased/frontend.c
364
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
368
memcpy(iface_ia_conf, imsg.data, sizeof(struct
sbin/dhcp6leased/frontend.c
378
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
sbin/dhcp6leased/frontend.c
381
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
385
memcpy(iface_pd_conf, imsg.data, sizeof(struct
sbin/dhcp6leased/frontend.c
427
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcp6leased/frontend.c
435
control_imsg_relay(&imsg);
sbin/dhcp6leased/frontend.c
439
imsg.hdr.type);
sbin/dhcp6leased/frontend.c
442
imsg_free(&imsg);
sbin/dhcp6leased/frontend.c
458
struct imsg imsg;
sbin/dhcp6leased/frontend.c
478
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcp6leased/frontend.c
483
switch (imsg.hdr.type) {
sbin/dhcp6leased/frontend.c
486
control_imsg_relay(&imsg);
sbin/dhcp6leased/frontend.c
493
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_req_dhcp))
sbin/dhcp6leased/frontend.c
496
IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/frontend.c
497
memcpy(&imsg_req_dhcp, imsg.data,
sbin/dhcp6leased/frontend.c
506
switch (imsg.hdr.type) {
sbin/dhcp6leased/frontend.c
524
imsg.hdr.type);
sbin/dhcp6leased/frontend.c
527
imsg_free(&imsg);
sbin/dhcp6leased/frontend.c
733
iface_data_from_imsg(struct iface* iface, struct imsg_req_dhcp *imsg)
sbin/dhcp6leased/frontend.c
735
memcpy(iface->xid, imsg->xid, sizeof(iface->xid));
sbin/dhcp6leased/frontend.c
736
iface->elapsed_time = imsg->elapsed_time;
sbin/dhcp6leased/frontend.c
737
iface->serverid_len = imsg->serverid_len;
sbin/dhcp6leased/frontend.c
738
memcpy(iface->serverid, imsg->serverid, SERVERID_SIZE);
sbin/dhcp6leased/frontend.c
739
memcpy(iface->pds, imsg->pds, sizeof(iface->pds));
sbin/dhcp6leased/parse_lease.y
277
parse_lease(const char *filename, struct imsg_ifinfo *imsg)
sbin/dhcp6leased/parse_lease.y
279
ifinfo = imsg;
sbin/dhcpleased/control.c
229
struct imsg imsg;
sbin/dhcpleased/control.c
253
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
sbin/dhcpleased/control.c
260
type = imsg_get_type(&imsg);
sbin/dhcpleased/control.c
261
pid = imsg_get_pid(&imsg);
sbin/dhcpleased/control.c
268
if (imsg_get_data(&imsg, &verbose,
sbin/dhcpleased/control.c
282
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/control.c
291
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/control.c
303
imsg_free(&imsg);
sbin/dhcpleased/control.c
310
control_imsg_relay(struct imsg *imsg)
sbin/dhcpleased/control.c
314
if ((c = control_connbypid(imsg_get_pid(imsg))) == NULL)
sbin/dhcpleased/control.c
317
return (imsg_forward_event(&c->iev, imsg));
sbin/dhcpleased/control.h
24
int control_imsg_relay(struct imsg *);
sbin/dhcpleased/dhcpleased.c
1001
imsg->if_index);
sbin/dhcpleased/dhcpleased.c
1011
req_sin_addr->sin_addr = imsg->addr;
sbin/dhcpleased/dhcpleased.c
1019
configure_routes(uint8_t rtm_type, struct imsg_configure_interface *imsg)
sbin/dhcpleased/dhcpleased.c
1028
ifa.sin_addr = imsg->addr;
sbin/dhcpleased/dhcpleased.c
1042
addrnet = imsg->addr.s_addr & imsg->mask.s_addr;
sbin/dhcpleased/dhcpleased.c
1044
for (i = 0; i < imsg->routes_len; i++) {
sbin/dhcpleased/dhcpleased.c
1045
dst.sin_addr = imsg->routes[i].dst;
sbin/dhcpleased/dhcpleased.c
1046
mask.sin_addr = imsg->routes[i].mask;
sbin/dhcpleased/dhcpleased.c
1047
gw.sin_addr = imsg->routes[i].gw;
sbin/dhcpleased/dhcpleased.c
1051
configure_route(rtm_type, imsg->if_index,
sbin/dhcpleased/dhcpleased.c
1052
imsg->rdomain, &dst, &mask, &ifa, NULL,
sbin/dhcpleased/dhcpleased.c
1056
gwnet = gw.sin_addr.s_addr & imsg->mask.s_addr;
sbin/dhcpleased/dhcpleased.c
1065
configure_route(rtm_type, imsg->if_index,
sbin/dhcpleased/dhcpleased.c
1066
imsg->rdomain, &gw, &mask, &ifa, NULL,
sbin/dhcpleased/dhcpleased.c
1068
mask.sin_addr = imsg->routes[i].mask;
sbin/dhcpleased/dhcpleased.c
1073
configure_route(rtm_type, imsg->if_index,
sbin/dhcpleased/dhcpleased.c
1074
imsg->rdomain, &dst, &mask, &gw, NULL, 0);
sbin/dhcpleased/dhcpleased.c
1077
configure_route(rtm_type, imsg->if_index,
sbin/dhcpleased/dhcpleased.c
1078
imsg->rdomain, &dst, &mask, &gw, &ifa,
sbin/dhcpleased/dhcpleased.c
1083
configure_route(rtm_type, imsg->if_index, imsg->rdomain,
sbin/dhcpleased/dhcpleased.c
439
struct imsg imsg;
sbin/dhcpleased/dhcpleased.c
465
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcpleased/dhcpleased.c
470
type = imsg_get_type(&imsg);
sbin/dhcpleased/dhcpleased.c
474
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/dhcpleased.c
488
if (imsg_get_data(&imsg, &verbose,
sbin/dhcpleased/dhcpleased.c
496
if (imsg_get_data(&imsg, &imsg_ifinfo,
sbin/dhcpleased/dhcpleased.c
508
imsg_free(&imsg);
sbin/dhcpleased/dhcpleased.c
524
struct imsg imsg;
sbin/dhcpleased/dhcpleased.c
546
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcpleased/dhcpleased.c
551
type = imsg_get_type(&imsg);
sbin/dhcpleased/dhcpleased.c
557
if (imsg_get_data(&imsg, &imsg_interface,
sbin/dhcpleased/dhcpleased.c
578
if (imsg_get_data(&imsg, &imsg_interface,
sbin/dhcpleased/dhcpleased.c
602
if (imsg_get_data(&imsg, &imsg_interface,
sbin/dhcpleased/dhcpleased.c
624
if (imsg_get_data(&imsg, &rdns, sizeof(rdns)) == -1)
sbin/dhcpleased/dhcpleased.c
640
if (imsg_get_data(&imsg, &rdns, sizeof(rdns)) == -1)
sbin/dhcpleased/dhcpleased.c
653
imsg_free(&imsg);
sbin/dhcpleased/dhcpleased.c
710
imsg_forward_event(struct imsgev *iev, struct imsg *imsg)
sbin/dhcpleased/dhcpleased.c
714
if ((ret = imsg_forward(&iev->ibuf, imsg)) != -1)
sbin/dhcpleased/dhcpleased.c
810
configure_interface(struct imsg_configure_interface *imsg)
sbin/dhcpleased/dhcpleased.c
826
if_name = if_indextoname(imsg->if_index, ifaliasreq.ifra_name);
sbin/dhcpleased/dhcpleased.c
829
imsg->if_index);
sbin/dhcpleased/dhcpleased.c
855
if (imsg->addr.s_addr == addr.s_addr) {
sbin/dhcpleased/dhcpleased.c
856
if (imsg->mask.s_addr == mask.s_addr)
sbin/dhcpleased/dhcpleased.c
871
req_sin_addr->sin_addr = imsg->addr;
sbin/dhcpleased/dhcpleased.c
876
req_sin_mask->sin_addr = imsg->mask;
sbin/dhcpleased/dhcpleased.c
880
if (imsg->routes_len > 0)
sbin/dhcpleased/dhcpleased.c
881
configure_routes(RTM_ADD, imsg);
sbin/dhcpleased/dhcpleased.c
892
if (setsockopt(udpsock, SOL_SOCKET, SO_RTABLE, &imsg->rdomain,
sbin/dhcpleased/dhcpleased.c
893
sizeof(imsg->rdomain)) == -1) {
sbin/dhcpleased/dhcpleased.c
909
&imsg->if_index, sizeof(imsg->if_index));
sbin/dhcpleased/dhcpleased.c
914
if (inet_ntop(AF_INET, &imsg->addr, ip_ntop_buf, sizeof(ip_ntop_buf)) ==
sbin/dhcpleased/dhcpleased.c
920
if (imsg->siaddr.s_addr == INADDR_ANY)
sbin/dhcpleased/dhcpleased.c
923
if (inet_ntop(AF_INET, &imsg->siaddr, nextserver_ntop_buf,
sbin/dhcpleased/dhcpleased.c
941
imsg->file, LEASE_HOSTNAME_PREFIX, imsg->hostname,
sbin/dhcpleased/dhcpleased.c
942
LEASE_DOMAIN_PREFIX, imsg->domainname);
sbin/dhcpleased/dhcpleased.c
975
deconfigure_interface(struct imsg_configure_interface *imsg)
sbin/dhcpleased/dhcpleased.c
995
if (imsg->routes_len > 0)
sbin/dhcpleased/dhcpleased.c
996
configure_routes(RTM_DELETE, imsg);
sbin/dhcpleased/dhcpleased.c
999
if (if_indextoname(imsg->if_index, ifaliasreq.ifra_name) == NULL) {
sbin/dhcpleased/dhcpleased.h
316
int imsg_forward_event(struct imsgev *, struct imsg *);
sbin/dhcpleased/engine.c
1602
struct imsg_req_dhcp imsg;
sbin/dhcpleased/engine.c
1604
memset(&imsg, 0, sizeof(imsg));
sbin/dhcpleased/engine.c
1606
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1607
imsg.xid = iface->xid;
sbin/dhcpleased/engine.c
1624
engine_imsg_compose_frontend(IMSG_SEND_DISCOVER, 0, &imsg, sizeof(imsg));
sbin/dhcpleased/engine.c
1630
struct imsg_req_dhcp imsg;
sbin/dhcpleased/engine.c
1632
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1633
imsg.xid = iface->xid;
sbin/dhcpleased/engine.c
1657
imsg.dhcp_server.s_addr = INADDR_ANY; /* broadcast */
sbin/dhcpleased/engine.c
1658
imsg.server_identifier.s_addr = INADDR_ANY; /* MUST NOT */
sbin/dhcpleased/engine.c
1659
imsg.requested_ip = iface->requested_ip; /* MUST */
sbin/dhcpleased/engine.c
1660
imsg.ciaddr.s_addr = INADDR_ANY; /* zero */
sbin/dhcpleased/engine.c
1663
imsg.dhcp_server.s_addr = INADDR_ANY; /* broadcast */
sbin/dhcpleased/engine.c
1664
imsg.server_identifier =
sbin/dhcpleased/engine.c
1666
imsg.requested_ip = iface->requested_ip; /* MUST */
sbin/dhcpleased/engine.c
1667
imsg.ciaddr.s_addr = INADDR_ANY; /* zero */
sbin/dhcpleased/engine.c
1670
imsg.dhcp_server = iface->dhcp_server; /* unicast */
sbin/dhcpleased/engine.c
1671
imsg.server_identifier.s_addr = INADDR_ANY; /* MUST NOT */
sbin/dhcpleased/engine.c
1672
imsg.requested_ip.s_addr = INADDR_ANY; /* MUST NOT */
sbin/dhcpleased/engine.c
1673
imsg.ciaddr = iface->requested_ip; /* IP address */
sbin/dhcpleased/engine.c
1676
imsg.dhcp_server.s_addr = INADDR_ANY; /* broadcast */
sbin/dhcpleased/engine.c
1677
imsg.server_identifier.s_addr = INADDR_ANY; /* MUST NOT */
sbin/dhcpleased/engine.c
1678
imsg.requested_ip.s_addr = INADDR_ANY; /* MUST NOT */
sbin/dhcpleased/engine.c
1679
imsg.ciaddr = iface->requested_ip; /* IP address */
sbin/dhcpleased/engine.c
1686
engine_imsg_compose_frontend(IMSG_SEND_REQUEST, 0, &imsg, sizeof(imsg));
sbin/dhcpleased/engine.c
1711
struct imsg_configure_interface imsg;
sbin/dhcpleased/engine.c
1716
memset(&imsg, 0, sizeof(imsg));
sbin/dhcpleased/engine.c
1717
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1718
imsg.rdomain = iface->rdomain;
sbin/dhcpleased/engine.c
1719
imsg.addr = iface->requested_ip;
sbin/dhcpleased/engine.c
1720
imsg.mask = iface->mask;
sbin/dhcpleased/engine.c
1721
imsg.siaddr = iface->siaddr;
sbin/dhcpleased/engine.c
1722
strlcpy(imsg.file, iface->file, sizeof(imsg.file));
sbin/dhcpleased/engine.c
1723
strlcpy(imsg.domainname, iface->domainname, sizeof(imsg.domainname));
sbin/dhcpleased/engine.c
1724
strlcpy(imsg.hostname, iface->hostname, sizeof(imsg.hostname));
sbin/dhcpleased/engine.c
1735
imsg.routes[imsg.routes_len++] = iface->prev_routes[i];
sbin/dhcpleased/engine.c
1737
if (imsg.routes_len > 0)
sbin/dhcpleased/engine.c
1738
engine_imsg_compose_main(IMSG_WITHDRAW_ROUTES, 0, &imsg,
sbin/dhcpleased/engine.c
1739
sizeof(imsg));
sbin/dhcpleased/engine.c
1740
imsg.routes_len = iface->routes_len;
sbin/dhcpleased/engine.c
1741
memcpy(imsg.routes, iface->routes, sizeof(imsg.routes));
sbin/dhcpleased/engine.c
1742
engine_imsg_compose_main(IMSG_CONFIGURE_INTERFACE, 0, &imsg,
sbin/dhcpleased/engine.c
1743
sizeof(imsg));
sbin/dhcpleased/engine.c
1749
struct imsg_configure_interface imsg;
sbin/dhcpleased/engine.c
1756
memset(&imsg, 0, sizeof(imsg));
sbin/dhcpleased/engine.c
1757
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1758
imsg.rdomain = iface->rdomain;
sbin/dhcpleased/engine.c
1759
imsg.addr = iface->requested_ip;
sbin/dhcpleased/engine.c
1760
imsg.mask = iface->mask;
sbin/dhcpleased/engine.c
1761
imsg.siaddr = iface->siaddr;
sbin/dhcpleased/engine.c
1762
strlcpy(imsg.file, iface->file, sizeof(imsg.file));
sbin/dhcpleased/engine.c
1763
strlcpy(imsg.domainname, iface->domainname, sizeof(imsg.domainname));
sbin/dhcpleased/engine.c
1764
strlcpy(imsg.hostname, iface->hostname, sizeof(imsg.hostname));
sbin/dhcpleased/engine.c
1765
imsg.routes_len = iface->routes_len;
sbin/dhcpleased/engine.c
1766
memcpy(imsg.routes, iface->routes, sizeof(imsg.routes));
sbin/dhcpleased/engine.c
1767
engine_imsg_compose_main(IMSG_DECONFIGURE_INTERFACE, 0, &imsg,
sbin/dhcpleased/engine.c
1768
sizeof(imsg));
sbin/dhcpleased/engine.c
1781
struct imsg_configure_interface imsg;
sbin/dhcpleased/engine.c
1786
memset(&imsg, 0, sizeof(imsg));
sbin/dhcpleased/engine.c
1787
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1788
imsg.rdomain = iface->rdomain;
sbin/dhcpleased/engine.c
1789
imsg.addr = iface->requested_ip;
sbin/dhcpleased/engine.c
1790
imsg.mask = iface->mask;
sbin/dhcpleased/engine.c
1791
imsg.siaddr = iface->siaddr;
sbin/dhcpleased/engine.c
1792
strlcpy(imsg.file, iface->file, sizeof(imsg.file));
sbin/dhcpleased/engine.c
1793
strlcpy(imsg.domainname, iface->domainname, sizeof(imsg.domainname));
sbin/dhcpleased/engine.c
1794
strlcpy(imsg.hostname, iface->hostname, sizeof(imsg.hostname));
sbin/dhcpleased/engine.c
1795
imsg.routes_len = iface->routes_len;
sbin/dhcpleased/engine.c
1796
memcpy(imsg.routes, iface->routes, sizeof(imsg.routes));
sbin/dhcpleased/engine.c
1797
engine_imsg_compose_main(IMSG_WITHDRAW_ROUTES, 0, &imsg,
sbin/dhcpleased/engine.c
1798
sizeof(imsg));
sbin/dhcpleased/engine.c
1839
struct imsg_propose_rdns imsg;
sbin/dhcpleased/engine.c
1843
memset(&imsg, 0, sizeof(imsg));
sbin/dhcpleased/engine.c
1845
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1846
imsg.rdomain = iface->rdomain;
sbin/dhcpleased/engine.c
1847
for (imsg.rdns_count = 0; imsg.rdns_count < MAX_RDNS_COUNT &&
sbin/dhcpleased/engine.c
1848
iface->nameservers[imsg.rdns_count].s_addr != INADDR_ANY;
sbin/dhcpleased/engine.c
1849
imsg.rdns_count++)
sbin/dhcpleased/engine.c
1851
memcpy(imsg.rdns, iface->nameservers, sizeof(imsg.rdns));
sbin/dhcpleased/engine.c
1852
engine_imsg_compose_main(IMSG_PROPOSE_RDNS, 0, &imsg, sizeof(imsg));
sbin/dhcpleased/engine.c
1858
struct imsg_propose_rdns imsg;
sbin/dhcpleased/engine.c
1862
memset(&imsg, 0, sizeof(imsg));
sbin/dhcpleased/engine.c
1864
imsg.if_index = iface->if_index;
sbin/dhcpleased/engine.c
1865
imsg.rdomain = iface->rdomain;
sbin/dhcpleased/engine.c
1866
engine_imsg_compose_main(IMSG_WITHDRAW_RDNS, 0, &imsg, sizeof(imsg));
sbin/dhcpleased/engine.c
288
struct imsg imsg;
sbin/dhcpleased/engine.c
312
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcpleased/engine.c
317
type = imsg_get_type(&imsg);
sbin/dhcpleased/engine.c
322
if (imsg_get_data(&imsg, &verbose,
sbin/dhcpleased/engine.c
329
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/engine.c
333
engine_showinfo_ctl(imsg_get_pid(&imsg), if_index);
sbin/dhcpleased/engine.c
336
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/engine.c
361
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/engine.c
370
if (imsg_get_data(&imsg, &imsg_dhcp,
sbin/dhcpleased/engine.c
389
imsg_free(&imsg);
sbin/dhcpleased/engine.c
408
struct imsg imsg;
sbin/dhcpleased/engine.c
431
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcpleased/engine.c
436
type = imsg_get_type(&imsg);
sbin/dhcpleased/engine.c
448
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcpleased/engine.c
471
if (imsg_get_data(&imsg, &imsg_ifinfo,
sbin/dhcpleased/engine.c
494
if (imsg_get_data(&imsg, &imsg_iface_conf,
sbin/dhcpleased/engine.c
523
if ((iface_conf->vc_id_len = imsg_get_len(&imsg))
sbin/dhcpleased/engine.c
529
if (imsg_get_data(&imsg, iface_conf->vc_id,
sbin/dhcpleased/engine.c
540
if ((iface_conf->c_id_len = imsg_get_len(&imsg))
sbin/dhcpleased/engine.c
546
if (imsg_get_data(&imsg, iface_conf->c_id,
sbin/dhcpleased/engine.c
559
if ((len = imsg_get_len(&imsg)) > 256 || len == 0)
sbin/dhcpleased/engine.c
563
if (imsg_get_data(&imsg, iface_conf->h_name, len) == -1)
sbin/dhcpleased/engine.c
603
imsg_free(&imsg);
sbin/dhcpleased/frontend.c
241
struct imsg imsg;
sbin/dhcpleased/frontend.c
265
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcpleased/frontend.c
270
type = imsg_get_type(&imsg);
sbin/dhcpleased/frontend.c
282
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcpleased/frontend.c
301
if ((bpfsock = imsg_get_fd(&imsg)) == -1)
sbin/dhcpleased/frontend.c
305
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/frontend.c
312
if ((udpsock = imsg_get_fd(&imsg)) == -1)
sbin/dhcpleased/frontend.c
316
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/frontend.c
330
if (imsg_get_data(&imsg, &if_index,
sbin/dhcpleased/frontend.c
341
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcpleased/frontend.c
366
if (imsg_get_data(&imsg, &imsg_iface_conf,
sbin/dhcpleased/frontend.c
396
if ((iface_conf->vc_id_len = imsg_get_len(&imsg))
sbin/dhcpleased/frontend.c
402
if (imsg_get_data(&imsg, iface_conf->vc_id,
sbin/dhcpleased/frontend.c
413
if ((iface_conf->c_id_len = imsg_get_len(&imsg))
sbin/dhcpleased/frontend.c
419
if (imsg_get_data(&imsg, iface_conf->c_id,
sbin/dhcpleased/frontend.c
432
if ((len = imsg_get_len(&imsg)) > 256 || len == 0)
sbin/dhcpleased/frontend.c
436
if (imsg_get_data(&imsg, iface_conf->h_name, len) == -1)
sbin/dhcpleased/frontend.c
463
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/dhcpleased/frontend.c
471
control_imsg_relay(&imsg);
sbin/dhcpleased/frontend.c
478
imsg_free(&imsg);
sbin/dhcpleased/frontend.c
494
struct imsg imsg;
sbin/dhcpleased/frontend.c
515
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/dhcpleased/frontend.c
520
type = imsg_get_type(&imsg);
sbin/dhcpleased/frontend.c
526
control_imsg_relay(&imsg);
sbin/dhcpleased/frontend.c
532
if (imsg_get_data(&imsg, &imsg_req_dhcp,
sbin/dhcpleased/frontend.c
548
if (imsg_get_data(&imsg, &imsg_req_dhcp,
sbin/dhcpleased/frontend.c
565
imsg_free(&imsg);
sbin/dhcpleased/frontend.c
914
iface_data_from_imsg(struct iface* iface, struct imsg_req_dhcp *imsg)
sbin/dhcpleased/frontend.c
916
iface->xid = imsg->xid;
sbin/dhcpleased/frontend.c
917
iface->ciaddr = imsg->ciaddr;
sbin/dhcpleased/frontend.c
918
iface->requested_ip = imsg->requested_ip;
sbin/dhcpleased/frontend.c
919
iface->server_identifier = imsg->server_identifier;
sbin/dhcpleased/frontend.c
920
iface->dhcp_server = imsg->dhcp_server;
sbin/iked/ca.c
1382
ca_store_info(struct iked *env, struct imsg *imsg, const char *msg, X509_STORE *ctx)
sbin/iked/ca.c
1407
IMSG_CTL_SHOW_CERTSTORE, imsg->hdr.peerid,
sbin/iked/ca.c
332
ca_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/ca.c
337
switch (imsg->hdr.type) {
sbin/iked/ca.c
344
proc_compose(&env->sc_ps, PROC_PARENT, imsg->hdr.type, NULL, 0);
sbin/iked/ca.c
347
IMSG_SIZE_CHECK(imsg, &mode);
sbin/iked/ca.c
348
memcpy(&mode, imsg->data, sizeof(mode));
sbin/iked/ca.c
355
ocsp_receive_fd(env, imsg);
sbin/iked/ca.c
358
config_getocsp(env, imsg);
sbin/iked/ca.c
362
config_getkey(env, imsg);
sbin/iked/ca.c
365
config_getstatic(env, imsg);
sbin/iked/ca.c
375
ca_dispatch_ikev2(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/ca.c
379
switch (imsg->hdr.type) {
sbin/iked/ca.c
381
ca_getreq(env, imsg);
sbin/iked/ca.c
384
ca_getcert(env, imsg);
sbin/iked/ca.c
387
ca_getauth(env, imsg);
sbin/iked/ca.c
397
ca_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/ca.c
402
switch (imsg->hdr.type) {
sbin/iked/ca.c
404
ca_store_info(env, imsg, "CA", store->ca_cas);
sbin/iked/ca.c
405
ca_store_info(env, imsg, "CERT", store->ca_certs);
sbin/iked/ca.c
408
IMSG_CTL_SHOW_CERTSTORE, imsg->hdr.peerid,
sbin/iked/ca.c
55
int ca_getreq(struct iked *, struct imsg *);
sbin/iked/ca.c
56
int ca_getcert(struct iked *, struct imsg *);
sbin/iked/ca.c
57
int ca_getauth(struct iked *, struct imsg *);
sbin/iked/ca.c
603
ca_getcert(struct iked *env, struct imsg *imsg)
sbin/iked/ca.c
619
ptr = (uint8_t *)imsg->data;
sbin/iked/ca.c
620
len = IMSG_DATA_SIZE(imsg);
sbin/iked/ca.c
756
ca_getreq(struct iked *env, struct imsg *imsg)
sbin/iked/ca.c
773
ptr = (uint8_t *)imsg->data;
sbin/iked/ca.c
774
len = IMSG_DATA_SIZE(imsg);
sbin/iked/ca.c
79
int ca_dispatch_parent(int, struct privsep_proc *, struct imsg *);
sbin/iked/ca.c
80
int ca_dispatch_ikev2(int, struct privsep_proc *, struct imsg *);
sbin/iked/ca.c
81
int ca_dispatch_control(int, struct privsep_proc *, struct imsg *);
sbin/iked/ca.c
82
void ca_store_info(struct iked *, struct imsg *, const char *, X509_STORE *);
sbin/iked/ca.c
908
ca_getauth(struct iked *env, struct imsg *imsg)
sbin/iked/ca.c
922
ptr = (uint8_t *)imsg->data;
sbin/iked/ca.c
923
len = IMSG_DATA_SIZE(imsg);
sbin/iked/config.c
1023
config_getocsp(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1029
ptr = (uint8_t *)imsg->data;
sbin/iked/config.c
1030
have = IMSG_DATA_SIZE(imsg);
sbin/iked/config.c
1125
config_getkey(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1130
len = IMSG_DATA_SIZE(imsg);
sbin/iked/config.c
1134
memcpy(&id, imsg->data, sizeof(id));
sbin/iked/config.c
1135
if ((id.id_buf = ibuf_new((uint8_t *)imsg->data + sizeof(id),
sbin/iked/config.c
1139
explicit_bzero(imsg->data, len);
sbin/iked/config.c
1140
ca_getkey(&env->sc_ps, &id, imsg->hdr.type);
sbin/iked/config.c
1154
config_getradauth(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1156
if (IMSG_DATA_SIZE(imsg) < sizeof(struct iked_radopts))
sbin/iked/config.c
1159
memcpy(&env->sc_radauth, imsg->data, sizeof(struct iked_radopts));
sbin/iked/config.c
1173
config_getradacct(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1175
if (IMSG_DATA_SIZE(imsg) < sizeof(struct iked_radopts))
sbin/iked/config.c
1178
memcpy(&env->sc_radacct, imsg->data, sizeof(struct iked_radopts));
sbin/iked/config.c
1220
config_getradserver(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1225
len = IMSG_DATA_SIZE(imsg);
sbin/iked/config.c
1233
memcpy(server, imsg->data, len);
sbin/iked/config.c
1234
explicit_bzero(imsg->data, len);
sbin/iked/config.c
1236
server->rs_sock = imsg_get_fd(imsg);
sbin/iked/config.c
1270
config_getradcfgmap(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1277
len = IMSG_DATA_SIZE(imsg);
sbin/iked/config.c
1298
cfgmap0 = (struct iked_radcfgmap *)imsg->data;
sbin/iked/config.c
1312
memcpy(cfgmap, imsg->data, len);
sbin/iked/config.c
1355
config_getraddae(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1359
if (IMSG_DATA_SIZE(imsg) < sizeof(*dae))
sbin/iked/config.c
1366
memcpy(dae, imsg->data, sizeof(*dae));
sbin/iked/config.c
1367
dae->rd_sock = imsg_get_fd(imsg);
sbin/iked/config.c
1403
config_getradclient(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
1408
len = IMSG_DATA_SIZE(imsg);
sbin/iked/config.c
1417
memcpy(client, imsg->data, len);
sbin/iked/config.c
555
config_getreset(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
559
IMSG_SIZE_CHECK(imsg, &mode);
sbin/iked/config.c
560
memcpy(&mode, imsg->data, sizeof(mode));
sbin/iked/config.c
664
config_getsocket(struct iked *env, struct imsg *imsg,
sbin/iked/config.c
672
IMSG_SIZE_CHECK(imsg, &sock->sock_addr);
sbin/iked/config.c
674
memcpy(&sock->sock_addr, imsg->data, sizeof(sock->sock_addr));
sbin/iked/config.c
675
sock->sock_fd = imsg_get_fd(imsg);
sbin/iked/config.c
734
config_getpfkey(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
736
int fd = imsg_get_fd(imsg);
sbin/iked/config.c
756
config_getuser(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
761
IMSG_SIZE_CHECK(imsg, &usr);
sbin/iked/config.c
762
memcpy(&usr, imsg->data, sizeof(usr));
sbin/iked/config.c
848
config_getpolicy(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
855
uint8_t *buf = (uint8_t *)imsg->data;
sbin/iked/config.c
857
IMSG_SIZE_CHECK(imsg, pol);
sbin/iked/config.c
907
config_getflow(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
913
uint8_t *buf = (uint8_t *)imsg->data;
sbin/iked/config.c
915
if (IMSG_DATA_SIZE(imsg) < sizeof(id))
sbin/iked/config.c
979
config_getstatic(struct iked *env, struct imsg *imsg)
sbin/iked/config.c
981
IMSG_SIZE_CHECK(imsg, &env->sc_static);
sbin/iked/config.c
982
memcpy(&env->sc_static, imsg->data, sizeof(env->sc_static));
sbin/iked/control.c
260
struct imsg imsg;
sbin/iked/control.c
282
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
sbin/iked/control.c
290
control_imsg_forward(&imsg);
sbin/iked/control.c
293
imsg.hdr.peerid = c->peerid;
sbin/iked/control.c
295
switch (imsg.hdr.type) {
sbin/iked/control.c
308
IMSG_SIZE_CHECK(&imsg, &v);
sbin/iked/control.c
310
memcpy(&v, imsg.data, sizeof(v));
sbin/iked/control.c
313
proc_forward_imsg(&env->sc_ps, &imsg, PROC_PARENT);
sbin/iked/control.c
321
proc_forward_imsg(&env->sc_ps, &imsg, PROC_PARENT);
sbin/iked/control.c
324
proc_forward_imsg(&env->sc_ps, &imsg, PROC_IKEV2);
sbin/iked/control.c
328
proc_forward_imsg(&env->sc_ps, &imsg, PROC_IKEV2);
sbin/iked/control.c
331
proc_forward_imsg(&env->sc_ps, &imsg, PROC_CERT);
sbin/iked/control.c
335
__func__, imsg.hdr.type);
sbin/iked/control.c
338
imsg_free(&imsg);
sbin/iked/control.c
345
control_imsg_forward(struct imsg *imsg)
sbin/iked/control.c
351
imsg_compose_event(&c->iev, imsg->hdr.type,
sbin/iked/control.c
352
0, imsg->hdr.pid, -1, imsg->data,
sbin/iked/control.c
353
imsg->hdr.len - IMSG_HEADER_SIZE);
sbin/iked/control.c
357
control_imsg_forward_peerid(struct imsg *imsg)
sbin/iked/control.c
362
if (c->peerid == imsg->hdr.peerid)
sbin/iked/control.c
363
imsg_compose_event(&c->iev, imsg->hdr.type,
sbin/iked/control.c
364
0, imsg->hdr.pid, -1, imsg->data,
sbin/iked/control.c
365
imsg->hdr.len - IMSG_HEADER_SIZE);
sbin/iked/control.c
369
control_dispatch_ikev2(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/control.c
371
switch (imsg->hdr.type) {
sbin/iked/control.c
374
control_imsg_forward_peerid(imsg);
sbin/iked/control.c
384
control_dispatch_ca(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/control.c
386
switch (imsg->hdr.type) {
sbin/iked/control.c
388
control_imsg_forward_peerid(imsg);
sbin/iked/control.c
47
void control_imsg_forward(struct imsg *);
sbin/iked/control.c
48
void control_imsg_forward_peerid(struct imsg *);
sbin/iked/control.c
50
int control_dispatch_ikev2(int, struct privsep_proc *, struct imsg *);
sbin/iked/control.c
51
int control_dispatch_ca(int, struct privsep_proc *, struct imsg *);
sbin/iked/iked.c
430
parent_dispatch_ca(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/iked.c
434
switch (imsg->hdr.type) {
sbin/iked/iked.c
437
proc_forward_imsg(&env->sc_ps, imsg, PROC_IKEV2);
sbin/iked/iked.c
440
ocsp_connect(env, imsg);
sbin/iked/iked.c
45
int parent_dispatch_ca(int, struct privsep_proc *, struct imsg *);
sbin/iked/iked.c
450
parent_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/iked.c
455
unsigned int type = imsg->hdr.type;
sbin/iked/iked.c
459
IMSG_SIZE_CHECK(imsg, &v);
sbin/iked/iked.c
46
int parent_dispatch_control(int, struct privsep_proc *, struct imsg *);
sbin/iked/iked.c
460
memcpy(&v, imsg->data, sizeof(v));
sbin/iked/iked.c
47
int parent_dispatch_ikev2(int, struct privsep_proc *, struct imsg *);
sbin/iked/iked.c
470
if (IMSG_DATA_SIZE(imsg) > 0)
sbin/iked/iked.c
471
str = get_string(imsg->data, IMSG_DATA_SIZE(imsg));
sbin/iked/iked.c
476
proc_forward_imsg(&env->sc_ps, imsg, PROC_IKEV2);
sbin/iked/iked.c
477
proc_forward_imsg(&env->sc_ps, imsg, PROC_CERT);
sbin/iked/iked.c
489
parent_dispatch_ikev2(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/iked.c
493
switch (imsg->hdr.type) {
sbin/iked/iked.c
496
return (vroute_getaddr(env, imsg));
sbin/iked/iked.c
499
return (vroute_getdns(env, imsg));
sbin/iked/iked.c
502
return (vroute_getroute(env, imsg));
sbin/iked/iked.c
504
return (vroute_getcloneroute(env, imsg));
sbin/iked/iked.h
1018
int config_getreset(struct iked *, struct imsg *);
sbin/iked/iked.h
1022
int config_getpolicy(struct iked *, struct imsg *);
sbin/iked/iked.h
1025
int config_getflow(struct iked *, struct imsg *);
sbin/iked/iked.h
1028
int config_getsocket(struct iked *env, struct imsg *,
sbin/iked/iked.h
1032
int config_getpfkey(struct iked *, struct imsg *);
sbin/iked/iked.h
1034
int config_getuser(struct iked *, struct imsg *);
sbin/iked/iked.h
1038
int config_getocsp(struct iked *, struct imsg *);
sbin/iked/iked.h
1040
int config_getkey(struct iked *, struct imsg *);
sbin/iked/iked.h
1042
int config_getstatic(struct iked *, struct imsg *);
sbin/iked/iked.h
1044
int config_getradauth(struct iked *, struct imsg *);
sbin/iked/iked.h
1046
int config_getradacct(struct iked *, struct imsg *);
sbin/iked/iked.h
1049
int config_getradserver(struct iked *, struct imsg *);
sbin/iked/iked.h
1051
int config_getradcfgmap(struct iked *, struct imsg *);
sbin/iked/iked.h
1053
int config_getraddae(struct iked *, struct imsg *);
sbin/iked/iked.h
1056
int config_getradclient(struct iked *, struct imsg *);
sbin/iked/iked.h
1155
int vroute_getaddr(struct iked *, struct imsg *);
sbin/iked/iked.h
1157
int vroute_getdns(struct iked *, struct imsg *);
sbin/iked/iked.h
1164
int vroute_getroute(struct iked *, struct imsg *);
sbin/iked/iked.h
1165
int vroute_getcloneroute(struct iked *, struct imsg *);
sbin/iked/iked.h
1342
void proc_forward_imsg(struct privsep *, struct imsg *,
sbin/iked/iked.h
1430
int ocsp_connect(struct iked *, struct imsg *);
sbin/iked/iked.h
1431
int ocsp_receive_fd(struct iked *, struct imsg *);
sbin/iked/iked.h
69
#define IMSG_SIZE_CHECK(imsg, p) do { \
sbin/iked/iked.h
70
if (IMSG_DATA_SIZE(imsg) < sizeof(*p)) \
sbin/iked/iked.h
73
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
sbin/iked/iked.h
827
struct imsg *);
sbin/iked/ikev2.c
193
void ikev2_ctl_reset_id(struct iked *, struct imsg *, unsigned int);
sbin/iked/ikev2.c
194
void ikev2_ctl_show_sa(struct iked *, struct imsg *);
sbin/iked/ikev2.c
195
void ikev2_ctl_show_stats(struct iked *, struct imsg *);
sbin/iked/ikev2.c
235
ikev2_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/ikev2.c
241
switch (imsg->hdr.type) {
sbin/iked/ikev2.c
243
return (config_getreset(env, imsg));
sbin/iked/ikev2.c
246
return (config_getcoupled(env, imsg->hdr.type));
sbin/iked/ikev2.c
249
if (config_getmode(env, imsg->hdr.type) == -1)
sbin/iked/ikev2.c
290
return (config_getsocket(env, imsg, ikev2_msg_cb));
sbin/iked/ikev2.c
292
return (config_getpfkey(env, imsg));
sbin/iked/ikev2.c
294
return (config_getpolicy(env, imsg));
sbin/iked/ikev2.c
296
return (config_getflow(env, imsg));
sbin/iked/ikev2.c
298
return (config_getuser(env, imsg));
sbin/iked/ikev2.c
300
return (config_getradauth(env, imsg));
sbin/iked/ikev2.c
302
return (config_getradacct(env, imsg));
sbin/iked/ikev2.c
304
return (config_getradserver(env, imsg));
sbin/iked/ikev2.c
306
return (config_getradcfgmap(env, imsg));
sbin/iked/ikev2.c
308
return (config_getraddae(env, imsg));
sbin/iked/ikev2.c
310
return (config_getradclient(env, imsg));
sbin/iked/ikev2.c
314
return (config_getstatic(env, imsg));
sbin/iked/ikev2.c
323
ikev2_dispatch_cert(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/ikev2.c
335
switch (imsg->hdr.type) {
sbin/iked/ikev2.c
337
IMSG_SIZE_CHECK(imsg, &type);
sbin/iked/ikev2.c
339
ptr = imsg->data;
sbin/iked/ikev2.c
346
IMSG_DATA_SIZE(imsg) - sizeof(type));
sbin/iked/ikev2.c
356
if ((sa = ikev2_getimsgdata(env, imsg,
sbin/iked/ikev2.c
377
if (imsg->hdr.type == IMSG_CERTVALID) {
sbin/iked/ikev2.c
393
if ((sa = ikev2_getimsgdata(env, imsg,
sbin/iked/ikev2.c
436
if ((sa = ikev2_getimsgdata(env, imsg,
sbin/iked/ikev2.c
481
if ((sa = ikev2_getimsgdata(env, imsg,
sbin/iked/ikev2.c
52
void ikev2_info(struct iked *, struct imsg *, int);
sbin/iked/ikev2.c
523
ikev2_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/ikev2.c
527
switch (imsg->hdr.type) {
sbin/iked/ikev2.c
529
ikev2_ctl_reset_id(env, imsg, imsg->hdr.type);
sbin/iked/ikev2.c
53
void ikev2_info_sa(struct iked *, struct imsg *, int, const char *,
sbin/iked/ikev2.c
532
ikev2_ctl_show_sa(env, imsg);
sbin/iked/ikev2.c
535
ikev2_ctl_show_stats(env, imsg);
sbin/iked/ikev2.c
55
void ikev2_info_csa(struct iked *, struct imsg *, int, const char *,
sbin/iked/ikev2.c
560
ikev2_ctl_reset_id(struct iked *env, struct imsg *imsg, unsigned int type)
sbin/iked/ikev2.c
566
if ((reset_id = get_string(imsg->data, IMSG_DATA_SIZE(imsg))) == NULL)
sbin/iked/ikev2.c
57
void ikev2_info_flow(struct iked *, struct imsg *, int, const char *,
sbin/iked/ikev2.c
592
ikev2_ctl_show_sa(struct iked *env, struct imsg *imsg)
sbin/iked/ikev2.c
594
ikev2_info(env, imsg, 0);
sbin/iked/ikev2.c
598
ikev2_ctl_show_stats(struct iked *env, struct imsg *imsg)
sbin/iked/ikev2.c
601
IMSG_CTL_SHOW_STATS, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
606
ikev2_getimsgdata(struct iked *env, struct imsg *imsg, struct iked_sahdr *sh,
sbin/iked/ikev2.c
613
ptr = imsg->data;
sbin/iked/ikev2.c
614
len = IMSG_DATA_SIZE(imsg);
sbin/iked/ikev2.c
630
__func__, imsg->hdr.type,
sbin/iked/ikev2.c
65
int ikev2_dispatch_parent(int, struct privsep_proc *, struct imsg *);
sbin/iked/ikev2.c
66
int ikev2_dispatch_cert(int, struct privsep_proc *, struct imsg *);
sbin/iked/ikev2.c
67
int ikev2_dispatch_control(int, struct privsep_proc *, struct imsg *);
sbin/iked/ikev2.c
70
ikev2_getimsgdata(struct iked *, struct imsg *, struct iked_sahdr *,
sbin/iked/ikev2.c
7573
ikev2_info_sa(struct iked *env, struct imsg *imsg, int dolog, const char *msg,
sbin/iked/ikev2.c
7607
IMSG_CTL_SHOW_SA, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
7613
ikev2_info_csa(struct iked *env, struct imsg *imsg, int dolog, const char *msg,
sbin/iked/ikev2.c
7643
IMSG_CTL_SHOW_SA, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
7649
ikev2_info_flow(struct iked *env, struct imsg *imsg, int dolog, const char *msg,
sbin/iked/ikev2.c
7690
IMSG_CTL_SHOW_SA, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
7696
ikev2_info(struct iked *env, struct imsg *imsg, int dolog)
sbin/iked/ikev2.c
7705
ikev2_info_sa(env, imsg, dolog, "iked_sas", sa);
sbin/iked/ikev2.c
7707
ikev2_info_csa(env, imsg, dolog, " sa_childsas", csa);
sbin/iked/ikev2.c
7709
ikev2_info_csa(env, imsg, dolog, " ",
sbin/iked/ikev2.c
7713
ikev2_info_flow(env, imsg, dolog, " sa_flows", flow);
sbin/iked/ikev2.c
7717
ikev2_info_csa(env, imsg, dolog, "iked_activesas", csa);
sbin/iked/ikev2.c
7719
ikev2_info_csa(env, imsg, dolog, " ", ipcomp);
sbin/iked/ikev2.c
7722
ikev2_info_flow(env, imsg, dolog, "iked_flows", flow);
sbin/iked/ikev2.c
7725
ikev2_info_sa(env, imsg, dolog, "iked_dstid_sas", sa);
sbin/iked/ikev2.c
7731
imsg->hdr.peerid, -1, NULL, 0);
sbin/iked/ocsp.c
359
ocsp_receive_fd(struct iked *env, struct imsg *imsg)
sbin/iked/ocsp.c
371
IMSG_SIZE_CHECK(imsg, &sh);
sbin/iked/ocsp.c
373
ptr = (uint8_t *)imsg->data;
sbin/iked/ocsp.c
374
len = IMSG_DATA_SIZE(imsg);
sbin/iked/ocsp.c
388
if ((fd = imsg_get_fd(imsg)) != -1) /* XXX */
sbin/iked/ocsp.c
396
if ((fd = imsg_get_fd(imsg)) == -1)
sbin/iked/ocsp.c
79
ocsp_connect(struct iked *env, struct imsg *imsg)
sbin/iked/ocsp.c
91
IMSG_SIZE_CHECK(imsg, &sh);
sbin/iked/ocsp.c
93
ptr = (uint8_t *)imsg->data;
sbin/iked/ocsp.c
94
len = IMSG_DATA_SIZE(imsg);
sbin/iked/proc.c
51
int proc_dispatch_null(int, struct privsep_proc *, struct imsg *);
sbin/iked/proc.c
612
struct imsg imsg;
sbin/iked/proc.c
646
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/iked/proc.c
654
imsg_get_type(&imsg), imsg_get_id(&imsg),
sbin/iked/proc.c
655
p->p_title, imsg_get_pid(&imsg));
sbin/iked/proc.c
661
if ((p->p_cb)(fd, p, &imsg) == 0) {
sbin/iked/proc.c
663
imsg_free(&imsg);
sbin/iked/proc.c
670
switch (imsg_get_type(&imsg)) {
sbin/iked/proc.c
672
if (imsg_get_data(&imsg, &ver, sizeof(ver)) == -1)
sbin/iked/proc.c
684
if (imsg_get_data(&imsg, &pf, sizeof(pf)) == -1)
sbin/iked/proc.c
687
proc_accept(ps, imsg_get_fd(&imsg), pf.pf_procid,
sbin/iked/proc.c
693
ps->ps_connecting, p->p_title, imsg_get_pid(&imsg),
sbin/iked/proc.c
722
imsg_get_type(&imsg), imsg_get_id(&imsg),
sbin/iked/proc.c
723
p->p_title, imsg_get_pid(&imsg));
sbin/iked/proc.c
725
imsg_free(&imsg);
sbin/iked/proc.c
731
proc_dispatch_null(int fd, struct privsep_proc *p, struct imsg *imsg)
sbin/iked/proc.c
842
proc_forward_imsg(struct privsep *ps, struct imsg *imsg,
sbin/iked/proc.c
849
if (imsg_forward(&ps->ps_ievs[id][n].ibuf, imsg) == -1)
sbin/iked/vroute.c
274
vroute_getaddr(struct iked *env, struct imsg *imsg)
sbin/iked/vroute.c
283
ptr = imsg->data;
sbin/iked/vroute.c
284
left = IMSG_DATA_SIZE(imsg);
sbin/iked/vroute.c
314
add = (imsg->hdr.type == IMSG_IF_ADDADDR);
sbin/iked/vroute.c
342
vroute_getdns(struct iked *env, struct imsg *imsg)
sbin/iked/vroute.c
350
ptr = imsg->data;
sbin/iked/vroute.c
351
left = IMSG_DATA_SIZE(imsg);
sbin/iked/vroute.c
368
add = (imsg->hdr.type == IMSG_VDNS_ADD);
sbin/iked/vroute.c
574
vroute_getroute(struct iked *env, struct imsg *imsg)
sbin/iked/vroute.c
583
ptr = (uint8_t *)imsg->data;
sbin/iked/vroute.c
584
left = IMSG_DATA_SIZE(imsg);
sbin/iked/vroute.c
627
switch(imsg->hdr.type) {
sbin/iked/vroute.c
647
vroute_getcloneroute(struct iked *env, struct imsg *imsg)
sbin/iked/vroute.c
660
ptr = (uint8_t *)imsg->data;
sbin/iked/vroute.c
661
left = IMSG_DATA_SIZE(imsg);
sbin/mountd/mountd.c
198
ssize_t recv_imsg(struct imsg *);
sbin/mountd/mountd.c
365
struct imsg imsg;
sbin/mountd/mountd.c
429
while ((size = imsg_get(&ibuf, &imsg)) != 0) {
sbin/mountd/mountd.c
436
switch (imsg.hdr.type) {
sbin/mountd/mountd.c
442
path = imsg.data;
sbin/mountd/mountd.c
455
req = imsg.data;
sbin/mountd/mountd.c
483
path = imsg.data;
sbin/mountd/mountd.c
501
ml = imsg.data;
sbin/mountd/mountd.c
537
ml = imsg.data;
sbin/mountd/mountd.c
561
imsg_free(&imsg);
sbin/mountd/mountd.c
569
struct imsg imsg;
sbin/mountd/mountd.c
576
size = recv_imsg(&imsg);
sbin/mountd/mountd.c
579
if (imsg.hdr.type != IMSG_GETFH_RESP || size != sizeof(*resp)) {
sbin/mountd/mountd.c
581
imsg_free(&imsg);
sbin/mountd/mountd.c
586
resp = imsg.data;
sbin/mountd/mountd.c
590
imsg_free(&imsg);
sbin/mountd/mountd.c
594
imsg_free(&imsg);
sbin/mountd/mountd.c
602
struct imsg imsg;
sbin/mountd/mountd.c
621
size = recv_imsg(&imsg);
sbin/mountd/mountd.c
624
if (imsg.hdr.type != IMSG_EXPORT_RESP || size != sizeof(int)) {
sbin/mountd/mountd.c
626
imsg_free(&imsg);
sbin/mountd/mountd.c
631
if (*(int *)imsg.data != 0) {
sbin/mountd/mountd.c
632
errno = *(int *)imsg.data;
sbin/mountd/mountd.c
633
imsg_free(&imsg);
sbin/mountd/mountd.c
637
imsg_free(&imsg);
sbin/mountd/mountd.c
642
recv_imsg(struct imsg *imsg)
sbin/mountd/mountd.c
645
switch (imsg_get(&ibuf, imsg)) {
sbin/mountd/mountd.c
652
return (imsg_get_len(imsg));
sbin/slaacd/control.c
230
struct imsg imsg;
sbin/slaacd/control.c
254
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
sbin/slaacd/control.c
261
type = imsg_get_type(&imsg);
sbin/slaacd/control.c
262
pid = imsg_get_pid(&imsg);
sbin/slaacd/control.c
265
if (imsg_get_data(&imsg, &verbose,
sbin/slaacd/control.c
279
if (imsg_get_data(&imsg, &if_index,
sbin/slaacd/control.c
291
imsg_free(&imsg);
sbin/slaacd/control.c
298
control_imsg_relay(struct imsg *imsg)
sbin/slaacd/control.c
302
if ((c = control_connbypid(imsg_get_pid(imsg))) == NULL)
sbin/slaacd/control.c
305
return (imsg_forward_event(&c->iev, imsg));
sbin/slaacd/control.h
24
int control_imsg_relay(struct imsg *);
sbin/slaacd/engine.c
454
struct imsg imsg;
sbin/slaacd/engine.c
484
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/slaacd/engine.c
489
type = imsg_get_type(&imsg);
sbin/slaacd/engine.c
494
if (imsg_get_data(&imsg, &verbose,
sbin/slaacd/engine.c
501
if (imsg_get_data(&imsg, &if_index,
sbin/slaacd/engine.c
505
engine_showinfo_ctl(imsg_get_pid(&imsg), if_index);
sbin/slaacd/engine.c
509
if (imsg_get_data(&imsg, &if_index,
sbin/slaacd/engine.c
516
if (imsg_get_data(&imsg, &ra, sizeof(ra)) == -1)
sbin/slaacd/engine.c
530
if (imsg_get_data(&imsg, &if_index,
sbin/slaacd/engine.c
544
if (imsg_get_data(&imsg, &del_addr,
sbin/slaacd/engine.c
567
if (imsg_get_data(&imsg, &del_route,
sbin/slaacd/engine.c
587
if (imsg_get_data(&imsg, &dup_addr,
sbin/slaacd/engine.c
614
imsg_free(&imsg);
sbin/slaacd/engine.c
628
struct imsg imsg;
sbin/slaacd/engine.c
651
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/slaacd/engine.c
656
type = imsg_get_type(&imsg);
sbin/slaacd/engine.c
668
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/slaacd/engine.c
690
if (imsg_get_data(&imsg, &imsg_ifinfo,
sbin/slaacd/engine.c
700
imsg_free(&imsg);
sbin/slaacd/frontend.c
283
struct imsg imsg;
sbin/slaacd/frontend.c
305
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/slaacd/frontend.c
310
type = imsg_get_type(&imsg);
sbin/slaacd/frontend.c
322
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/slaacd/frontend.c
341
if ((icmp6sock = imsg_get_fd(&imsg)) == -1)
sbin/slaacd/frontend.c
345
if (imsg_get_data(&imsg, &rdomain,
sbin/slaacd/frontend.c
352
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/slaacd/frontend.c
365
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/slaacd/frontend.c
374
control_imsg_relay(&imsg);
sbin/slaacd/frontend.c
381
imsg_free(&imsg);
sbin/slaacd/frontend.c
397
struct imsg imsg;
sbin/slaacd/frontend.c
417
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/slaacd/frontend.c
422
type = imsg_get_type(&imsg);
sbin/slaacd/frontend.c
437
control_imsg_relay(&imsg);
sbin/slaacd/frontend.c
441
if (imsg_get_data(&imsg, &if_index,
sbin/slaacd/frontend.c
451
imsg_free(&imsg);
sbin/slaacd/slaacd.c
391
struct imsg imsg;
sbin/slaacd/slaacd.c
418
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/slaacd/slaacd.c
423
type = imsg_get_type(&imsg);
sbin/slaacd/slaacd.c
427
if (imsg_get_data(&imsg, &rdomain,
sbin/slaacd/slaacd.c
435
if (imsg_get_data(&imsg, &verbose,
sbin/slaacd/slaacd.c
443
if (imsg_get_data(&imsg, &imsg_ifinfo,
sbin/slaacd/slaacd.c
456
imsg_free(&imsg);
sbin/slaacd/slaacd.c
472
struct imsg imsg;
sbin/slaacd/slaacd.c
497
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/slaacd/slaacd.c
502
type = imsg_get_type(&imsg);
sbin/slaacd/slaacd.c
506
if (imsg_get_data(&imsg, &address,
sbin/slaacd/slaacd.c
513
if (imsg_get_data(&imsg, &address,
sbin/slaacd/slaacd.c
520
if (imsg_get_data(&imsg, &dfr, sizeof(dfr)) == -1)
sbin/slaacd/slaacd.c
526
if (imsg_get_data(&imsg, &dfr, sizeof(dfr)) == -1)
sbin/slaacd/slaacd.c
532
if (imsg_get_data(&imsg, &rdns, sizeof(rdns)) == -1)
sbin/slaacd/slaacd.c
548
imsg_free(&imsg);
sbin/slaacd/slaacd.c
605
imsg_forward_event(struct imsgev *iev, struct imsg *imsg)
sbin/slaacd/slaacd.c
609
if ((ret = imsg_forward(&iev->ibuf, imsg)) != -1)
sbin/slaacd/slaacd.h
205
int imsg_forward_event(struct imsgev *, struct imsg *);
sbin/unwind/control.c
229
struct imsg imsg;
sbin/unwind/control.c
258
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
sbin/unwind/control.c
265
switch (imsg.hdr.type) {
sbin/unwind/control.c
269
imsg_free(&imsg);
sbin/unwind/control.c
278
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/unwind/control.c
279
switch (imsg.hdr.type) {
sbin/unwind/control.c
281
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
sbin/unwind/control.c
285
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
sbin/unwind/control.c
289
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
sbin/unwind/control.c
290
imsg.data, IMSG_DATA_SIZE(imsg));
sbin/unwind/control.c
291
frontend_imsg_compose_resolver(imsg.hdr.type,
sbin/unwind/control.c
292
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/unwind/control.c
294
memcpy(&verbose, imsg.data, sizeof(verbose));
sbin/unwind/control.c
300
if (IMSG_DATA_SIZE(imsg) != 0)
sbin/unwind/control.c
302
frontend_imsg_compose_resolver(imsg.hdr.type,
sbin/unwind/control.c
303
imsg.hdr.pid, NULL, 0);
sbin/unwind/control.c
307
imsg.hdr.type);
sbin/unwind/control.c
310
imsg_free(&imsg);
sbin/unwind/control.c
317
control_imsg_relay(struct imsg *imsg)
sbin/unwind/control.c
321
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
sbin/unwind/control.c
324
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
sbin/unwind/control.c
325
-1, imsg->data, IMSG_DATA_SIZE(*imsg)));
sbin/unwind/control.h
23
int control_imsg_relay(struct imsg *);
sbin/unwind/frontend.c
313
struct imsg imsg;
sbin/unwind/frontend.c
334
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/unwind/frontend.c
339
switch (imsg.hdr.type) {
sbin/unwind/frontend.c
350
if ((fd = imsg_get_fd(&imsg)) == -1) {
sbin/unwind/frontend.c
378
imsg_receive_config(&imsg, &nconf);
sbin/unwind/frontend.c
393
if ((udp6sock = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
404
if ((udp4sock = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
415
if ((tcp4sock = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
427
if ((tcp6sock = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
441
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
454
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
461
if ((ta_fd = imsg_get_fd(&imsg)) != -1)
sbin/unwind/frontend.c
467
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/unwind/frontend.c
474
imsg.hdr.type);
sbin/unwind/frontend.c
477
imsg_free(&imsg);
sbin/unwind/frontend.c
497
struct imsg imsg;
sbin/unwind/frontend.c
516
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/unwind/frontend.c
521
switch (imsg.hdr.type) {
sbin/unwind/frontend.c
527
if (IMSG_DATA_SIZE(imsg) < sizeof(*answer_header))
sbin/unwind/frontend.c
529
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/frontend.c
530
answer_header = (struct answer_header *)imsg.data;
sbin/unwind/frontend.c
531
data = (uint8_t *)imsg.data + sizeof(*answer_header);
sbin/unwind/frontend.c
535
data_len = IMSG_DATA_SIZE(imsg) -
sbin/unwind/frontend.c
592
control_imsg_relay(&imsg);
sbin/unwind/frontend.c
596
((char *)imsg.data)[IMSG_DATA_SIZE(imsg) - 1] = '\0';
sbin/unwind/frontend.c
597
add_new_ta(&new_trust_anchors, imsg.data);
sbin/unwind/frontend.c
615
if (IMSG_DATA_SIZE(imsg) !=
sbin/unwind/frontend.c
619
IMSG_DATA_SIZE(imsg));
sbin/unwind/frontend.c
620
memcpy(&new_dns64_prefix_count, imsg.data,
sbin/unwind/frontend.c
631
if (IMSG_DATA_SIZE(imsg) != sizeof(struct dns64_prefix))
sbin/unwind/frontend.c
634
IMSG_DATA_SIZE(imsg));
sbin/unwind/frontend.c
641
imsg.data, sizeof(struct dns64_prefix));
sbin/unwind/frontend.c
652
imsg.hdr.type);
sbin/unwind/frontend.c
655
imsg_free(&imsg);
sbin/unwind/resolver.c
491
struct imsg imsg;
sbin/unwind/resolver.c
514
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/unwind/resolver.c
519
switch (imsg.hdr.type) {
sbin/unwind/resolver.c
521
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
sbin/unwind/resolver.c
524
IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
525
memcpy(&verbose, imsg.data, sizeof(verbose));
sbin/unwind/resolver.c
532
if (IMSG_DATA_SIZE(imsg) != sizeof(*query_imsg))
sbin/unwind/resolver.c
534
__func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
540
memcpy(query_imsg, imsg.data, sizeof(*query_imsg));
sbin/unwind/resolver.c
547
if (IMSG_DATA_SIZE(imsg) != 0)
sbin/unwind/resolver.c
549
__func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
550
show_status(imsg.hdr.pid);
sbin/unwind/resolver.c
553
if (IMSG_DATA_SIZE(imsg) != 0)
sbin/unwind/resolver.c
555
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
556
show_autoconf(imsg.hdr.pid);
sbin/unwind/resolver.c
559
if (IMSG_DATA_SIZE(imsg) != 0)
sbin/unwind/resolver.c
561
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
562
show_mem(imsg.hdr.pid);
sbin/unwind/resolver.c
565
if (((char *)imsg.data)[IMSG_DATA_SIZE(imsg) - 1] !=
sbin/unwind/resolver.c
568
ta = imsg.data;
sbin/unwind/resolver.c
592
if (IMSG_DATA_SIZE(imsg) !=
sbin/unwind/resolver.c
595
__func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
597
imsg_rdns_proposal *)imsg.data);
sbin/unwind/resolver.c
600
if (IMSG_DATA_SIZE(imsg) !=
sbin/unwind/resolver.c
603
__func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/resolver.c
604
memcpy(&new_available_afs, imsg.data,
sbin/unwind/resolver.c
613
imsg.hdr.type);
sbin/unwind/resolver.c
616
imsg_free(&imsg);
sbin/unwind/resolver.c
631
struct imsg imsg;
sbin/unwind/resolver.c
654
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/unwind/resolver.c
659
switch (imsg.hdr.type) {
sbin/unwind/resolver.c
669
if ((fd = imsg_get_fd(&imsg)) == -1)
sbin/unwind/resolver.c
697
imsg_receive_config(&imsg, &nconf);
sbin/unwind/resolver.c
712
imsg.hdr.type);
sbin/unwind/resolver.c
715
imsg_free(&imsg);
sbin/unwind/unwind.c
398
struct imsg imsg;
sbin/unwind/unwind.c
419
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/unwind/unwind.c
424
switch (imsg.hdr.type) {
sbin/unwind/unwind.c
435
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
sbin/unwind/unwind.c
437
"%lu", __func__, IMSG_DATA_SIZE(imsg));
sbin/unwind/unwind.c
438
memcpy(&verbose, imsg.data, sizeof(verbose));
sbin/unwind/unwind.c
443
imsg.hdr.type);
sbin/unwind/unwind.c
446
imsg_free(&imsg);
sbin/unwind/unwind.c
462
struct imsg imsg;
sbin/unwind/unwind.c
483
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
sbin/unwind/unwind.c
488
switch (imsg.hdr.type) {
sbin/unwind/unwind.c
491
imsg.hdr.type);
sbin/unwind/unwind.c
494
imsg_free(&imsg);
sbin/unwind/unwind.c
883
imsg_receive_config(struct imsg *imsg, struct uw_conf **xconf)
sbin/unwind/unwind.c
891
switch (imsg->hdr.type) {
sbin/unwind/unwind.c
896
if (IMSG_DATA_SIZE(*imsg) != sizeof(struct uw_conf))
sbin/unwind/unwind.c
898
__func__, IMSG_DATA_SIZE(*imsg));
sbin/unwind/unwind.c
902
memcpy(nconf, imsg->data, sizeof(struct uw_conf));
sbin/unwind/unwind.c
908
if (((char *)imsg->data)[IMSG_DATA_SIZE(*imsg) - 1] != '\0')
sbin/unwind/unwind.c
910
if ((nconf->blocklist_file = strdup(imsg->data)) ==
sbin/unwind/unwind.c
915
if (IMSG_DATA_SIZE(*imsg) != sizeof(struct uw_forwarder))
sbin/unwind/unwind.c
917
" %lu", __func__, IMSG_DATA_SIZE(*imsg));
sbin/unwind/unwind.c
921
memcpy(uw_forwarder, imsg->data, sizeof(struct
sbin/unwind/unwind.c
933
if (IMSG_DATA_SIZE(*imsg) != sizeof(struct uw_forwarder))
sbin/unwind/unwind.c
936
IMSG_DATA_SIZE(*imsg));
sbin/unwind/unwind.c
940
memcpy(uw_forwarder, imsg->data, sizeof(struct
sbin/unwind/unwind.c
952
if (IMSG_DATA_SIZE(*imsg) != sizeof(struct force_tree_entry))
sbin/unwind/unwind.c
955
IMSG_DATA_SIZE(*imsg));
sbin/unwind/unwind.c
959
memcpy(force_entry, imsg->data, sizeof(struct
sbin/unwind/unwind.c
973
imsg->hdr.type);
sbin/unwind/unwind.h
189
void imsg_receive_config(struct imsg *, struct uw_conf **);
sbin/unwind/unwind.h
46
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
usr.bin/file/file.c
126
struct imsg imsg;
usr.bin/file/file.c
226
if (read_message(&ibuf, &imsg, pid) == 0)
usr.bin/file/file.c
228
if (imsg_get_data(&imsg, &ack, sizeof ack) == -1)
usr.bin/file/file.c
232
imsg_free(&imsg);
usr.bin/file/file.c
297
read_message(struct imsgbuf *ibuf, struct imsg *imsg, pid_t from)
usr.bin/file/file.c
300
switch (imsgbuf_get(ibuf, imsg)) {
usr.bin/file/file.c
306
if ((pid_t)imsg->hdr.pid != from)
usr.bin/file/file.c
368
struct imsg imsg;
usr.bin/file/file.c
409
if (read_message(&ibuf, &imsg, parent) == 0)
usr.bin/file/file.c
411
if (imsg_get_data(&imsg, &msg, sizeof msg) == -1)
usr.bin/file/file.c
423
inf.fd = imsg_get_fd(&imsg);
usr.bin/file/file.c
429
imsg_free(&imsg);
usr.bin/file/file.c
79
static int read_message(struct imsgbuf *, struct imsg *, pid_t);
usr.bin/sndiod/midi.c
280
iep->ops->imsg(iep->arg, &c, 1);
usr.bin/sndiod/midi.c
284
iep->ops->imsg(iep->arg, iep->msg, iep->idx);
usr.bin/sndiod/midi.c
314
iep->ops->imsg(iep->arg, iep->msg, iep->idx);
usr.bin/sndiod/midi.c
320
iep->ops->imsg(iep->arg, iep->msg, iep->idx);
usr.bin/sndiod/midi.h
57
void (*imsg)(void *, unsigned char *, int);
usr.bin/tmux/client.c
570
client_dispatch(struct imsg *imsg, __unused void *arg)
usr.bin/tmux/client.c
572
if (imsg == NULL) {
usr.bin/tmux/client.c
582
client_dispatch_attached(imsg);
usr.bin/tmux/client.c
584
client_dispatch_wait(imsg);
usr.bin/tmux/client.c
615
client_dispatch_wait(struct imsg *imsg)
usr.bin/tmux/client.c
635
data = imsg->data;
usr.bin/tmux/client.c
636
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/client.c
638
switch (imsg->hdr.type) {
usr.bin/tmux/client.c
658
imsg->hdr.peerid & 0xff);
usr.bin/tmux/client.c
68
static void client_dispatch(struct imsg *, void *);
usr.bin/tmux/client.c
684
file_read_open(&client_files, client_peer, imsg, 1,
usr.bin/tmux/client.c
689
file_read_cancel(&client_files, imsg);
usr.bin/tmux/client.c
69
static void client_dispatch_attached(struct imsg *);
usr.bin/tmux/client.c
692
file_write_open(&client_files, client_peer, imsg, 1,
usr.bin/tmux/client.c
697
file_write_data(&client_files, imsg);
usr.bin/tmux/client.c
70
static void client_dispatch_wait(struct imsg *);
usr.bin/tmux/client.c
700
file_write_close(&client_files, imsg);
usr.bin/tmux/client.c
713
client_dispatch_attached(struct imsg *imsg)
usr.bin/tmux/client.c
719
data = imsg->data;
usr.bin/tmux/client.c
720
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/client.c
722
switch (imsg->hdr.type) {
usr.bin/tmux/client.c
737
client_exittype = imsg->hdr.type;
usr.bin/tmux/client.c
738
if (imsg->hdr.type == MSG_DETACHKILL)
usr.bin/tmux/client.c
751
client_exittype = imsg->hdr.type;
usr.bin/tmux/file.c
574
struct imsg *imsg, int allow_streams, int close_received,
usr.bin/tmux/file.c
577
struct msg_write_open *msg = imsg->data;
usr.bin/tmux/file.c
578
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
637
file_write_data(struct client_files *files, struct imsg *imsg)
usr.bin/tmux/file.c
639
struct msg_write_data *msg = imsg->data;
usr.bin/tmux/file.c
640
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
657
file_write_close(struct client_files *files, struct imsg *imsg)
usr.bin/tmux/file.c
659
struct msg_write_close *msg = imsg->data;
usr.bin/tmux/file.c
660
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
735
struct imsg *imsg, int allow_streams, int close_received, client_file_cb cb,
usr.bin/tmux/file.c
738
struct msg_read_open *msg = imsg->data;
usr.bin/tmux/file.c
739
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
798
file_read_cancel(struct client_files *files, struct imsg *imsg)
usr.bin/tmux/file.c
800
struct msg_read_cancel *msg = imsg->data;
usr.bin/tmux/file.c
801
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
816
file_write_ready(struct client_files *files, struct imsg *imsg)
usr.bin/tmux/file.c
818
struct msg_write_ready *msg = imsg->data;
usr.bin/tmux/file.c
819
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
837
file_read_data(struct client_files *files, struct imsg *imsg)
usr.bin/tmux/file.c
839
struct msg_read_data *msg = imsg->data;
usr.bin/tmux/file.c
840
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
864
file_read_done(struct client_files *files, struct imsg *imsg)
usr.bin/tmux/file.c
866
struct msg_read_done *msg = imsg->data;
usr.bin/tmux/file.c
867
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/proc.c
102
peer->dispatchcb(&imsg, peer->arg);
usr.bin/tmux/proc.c
103
imsg_free(&imsg);
usr.bin/tmux/proc.c
131
peer_check_version(struct tmuxpeer *peer, struct imsg *imsg)
usr.bin/tmux/proc.c
135
version = imsg->hdr.peerid & 0xff;
usr.bin/tmux/proc.c
136
if (imsg->hdr.type != MSG_VERSION && version != PROTOCOL_VERSION) {
usr.bin/tmux/proc.c
298
void (*dispatchcb)(struct imsg *, void *), void *arg)
usr.bin/tmux/proc.c
64
void (*dispatchcb)(struct imsg *, void *);
usr.bin/tmux/proc.c
70
static int peer_check_version(struct tmuxpeer *, struct imsg *);
usr.bin/tmux/proc.c
78
struct imsg imsg;
usr.bin/tmux/proc.c
86
if ((n = imsgbuf_get(&peer->ibuf, &imsg)) == -1) {
usr.bin/tmux/proc.c
92
log_debug("peer %p message %d", peer, imsg.hdr.type);
usr.bin/tmux/proc.c
94
if (peer_check_version(peer, &imsg) != 0) {
usr.bin/tmux/proc.c
95
fd = imsg_get_fd(&imsg);
usr.bin/tmux/proc.c
98
imsg_free(&imsg);
usr.bin/tmux/server-client.c
2605
server_client_dispatch(struct imsg *imsg, void *arg)
usr.bin/tmux/server-client.c
2615
if (imsg == NULL) {
usr.bin/tmux/server-client.c
2620
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/server-client.c
2622
switch (imsg->hdr.type) {
usr.bin/tmux/server-client.c
2635
if (server_client_dispatch_identify(c, imsg) != 0)
usr.bin/tmux/server-client.c
2639
if (server_client_dispatch_command(c, imsg) != 0)
usr.bin/tmux/server-client.c
2700
if (file_write_ready(&c->files, imsg) != 0)
usr.bin/tmux/server-client.c
2704
if (file_read_data(&c->files, imsg) != 0)
usr.bin/tmux/server-client.c
2708
if (file_read_done(&c->files, imsg) != 0)
usr.bin/tmux/server-client.c
2716
log_debug("client %p invalid message type %d", c, imsg->hdr.type);
usr.bin/tmux/server-client.c
2764
server_client_dispatch_command(struct client *c, struct imsg *imsg)
usr.bin/tmux/server-client.c
2778
if (imsg->hdr.len - IMSG_HEADER_SIZE < sizeof data)
usr.bin/tmux/server-client.c
2780
memcpy(&data, imsg->data, sizeof data);
usr.bin/tmux/server-client.c
2782
buf = (char *)imsg->data + sizeof data;
usr.bin/tmux/server-client.c
2783
len = imsg->hdr.len - IMSG_HEADER_SIZE - sizeof data;
usr.bin/tmux/server-client.c
2834
server_client_dispatch_identify(struct client *c, struct imsg *imsg)
usr.bin/tmux/server-client.c
2845
data = imsg->data;
usr.bin/tmux/server-client.c
2846
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/server-client.c
2848
switch (imsg->hdr.type) {
usr.bin/tmux/server-client.c
2906
c->fd = imsg_get_fd(imsg);
usr.bin/tmux/server-client.c
2912
c->out_fd = imsg_get_fd(imsg);
usr.bin/tmux/server-client.c
2932
if (imsg->hdr.type != MSG_IDENTIFY_DONE)
usr.bin/tmux/server-client.c
53
static void server_client_dispatch(struct imsg *, void *);
usr.bin/tmux/server-client.c
54
static int server_client_dispatch_command(struct client *, struct imsg *);
usr.bin/tmux/server-client.c
55
static int server_client_dispatch_identify(struct client *, struct imsg *);
usr.bin/tmux/tmux.h
2559
void (*)(struct imsg *, void *), void *);
usr.sbin/bgpctl/bgpctl.c
430
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpctl/bgpctl.c
435
done = show(&imsg, res);
usr.sbin/bgpctl/bgpctl.c
436
imsg_free(&imsg);
usr.sbin/bgpctl/bgpctl.c
463
show(struct imsg *imsg, struct parse_result *res)
usr.sbin/bgpctl/bgpctl.c
479
switch (imsg->hdr.type) {
usr.sbin/bgpctl/bgpctl.c
483
if (imsg_recv_ctl_peer(imsg, &p) == -1)
usr.sbin/bgpctl/bgpctl.c
490
if (imsg_get_data(imsg, &t, sizeof(t)) == -1)
usr.sbin/bgpctl/bgpctl.c
498
if (imsg_get_data(imsg, &iface, sizeof(iface)) == -1)
usr.sbin/bgpctl/bgpctl.c
505
if (imsg_get_data(imsg, &nh, sizeof(nh)) == -1)
usr.sbin/bgpctl/bgpctl.c
51
int show(struct imsg *, struct parse_result *);
usr.sbin/bgpctl/bgpctl.c
513
if (imsg_get_data(imsg, &kf, sizeof(kf)) == -1)
usr.sbin/bgpctl/bgpctl.c
520
if (imsg_get_data(imsg, &f, sizeof(f)) == -1)
usr.sbin/bgpctl/bgpctl.c
527
if (imsg_get_data(imsg, &kt, sizeof(kt)) == -1)
usr.sbin/bgpctl/bgpctl.c
534
if (imsg_get_ibuf(imsg, &ibuf) == -1)
usr.sbin/bgpctl/bgpctl.c
543
if (imsg_get_ibuf(imsg, &ibuf) == -1)
usr.sbin/bgpctl/bgpctl.c
550
if (imsg_get_ibuf(imsg, &ibuf) == -1)
usr.sbin/bgpctl/bgpctl.c
557
if (imsg_get_data(imsg, &stats, sizeof(stats)) == -1)
usr.sbin/bgpctl/bgpctl.c
564
if (imsg_get_data(imsg, &set, sizeof(set)) == -1)
usr.sbin/bgpctl/bgpctl.c
571
if (imsg_get_data(imsg, &rtr, sizeof(rtr)) == -1)
usr.sbin/bgpctl/bgpctl.c
578
if (imsg_get_data(imsg, &rescode, sizeof(rescode)) == -1)
usr.sbin/bgpctl/bgpctl.c
585
warnx("unknown imsg %d received", imsg->hdr.type);
usr.sbin/bgpctl/bgpctl.c
86
struct imsg imsg;
usr.sbin/bgpd/bgpd.c
1004
if (imsg_get_data(&imsg, &verbose, sizeof(verbose)) ==
usr.sbin/bgpd/bgpd.c
1053
uint32_t rtrid = imsg_get_id(&imsg);
usr.sbin/bgpd/bgpd.c
1068
uint32_t rtrid = imsg_get_id(&imsg);
usr.sbin/bgpd/bgpd.c
1077
imsg_get_pid(&imsg), -1, NULL, 0);
usr.sbin/bgpd/bgpd.c
1080
0, imsg_get_pid(&imsg), -1, NULL, 0);
usr.sbin/bgpd/bgpd.c
1083
if (imsg_get_data(&imsg, &rtr, sizeof(rtr)) ==
usr.sbin/bgpd/bgpd.c
1090
if (imsg_get_id(&imsg) == r->id)
usr.sbin/bgpd/bgpd.c
1101
imsg_get_id(&imsg),
usr.sbin/bgpd/bgpd.c
1102
imsg_get_pid(&imsg), -1,
usr.sbin/bgpd/bgpd.c
1113
imsg_forward(ibuf_se, &imsg);
usr.sbin/bgpd/bgpd.c
1118
imsg_free(&imsg);
usr.sbin/bgpd/bgpd.c
842
struct imsg imsg;
usr.sbin/bgpd/bgpd.c
856
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/bgpd.c
861
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/bgpd.c
865
else if (imsg_get_data(&imsg, &kf, sizeof(kf)) == -1)
usr.sbin/bgpd/bgpd.c
867
else if (kr_change(imsg_get_id(&imsg), &kf))
usr.sbin/bgpd/bgpd.c
873
else if (imsg_get_data(&imsg, &kf, sizeof(kf)) == -1)
usr.sbin/bgpd/bgpd.c
875
else if (kr_delete(imsg_get_id(&imsg), &kf))
usr.sbin/bgpd/bgpd.c
881
else if (kr_flush(imsg_get_id(&imsg)))
usr.sbin/bgpd/bgpd.c
887
else if (imsg_get_data(&imsg, &addr, sizeof(addr)) ==
usr.sbin/bgpd/bgpd.c
899
else if (imsg_get_data(&imsg, &addr, sizeof(addr)) ==
usr.sbin/bgpd/bgpd.c
910
else if (imsg_get_data(&imsg, &pfmsg, sizeof(pfmsg)) ==
usr.sbin/bgpd/bgpd.c
919
else if (imsg_get_data(&imsg, &pfmsg, sizeof(pfmsg)) ==
usr.sbin/bgpd/bgpd.c
936
p = getpeerbyid(conf, imsg_get_id(&imsg));
usr.sbin/bgpd/bgpd.c
950
reconfpid = imsg_get_pid(&imsg);
usr.sbin/bgpd/bgpd.c
951
if (imsg_get_data(&imsg, reason,
usr.sbin/bgpd/bgpd.c
963
kr_fib_couple(imsg_get_id(&imsg));
usr.sbin/bgpd/bgpd.c
969
kr_fib_decouple(imsg_get_id(&imsg));
usr.sbin/bgpd/bgpd.c
979
kr_show_route(&imsg);
usr.sbin/bgpd/bgpd.c
984
else if (imsg_get_data(&imsg, ifname, sizeof(ifname)) ==
usr.sbin/bgpd/bgpd.c
993
else if (imsg_get_data(&imsg, &demote, sizeof(demote))
usr.sbin/bgpd/bgpd.h
1603
int control_imsg_relay(struct imsg *, struct peer *);
usr.sbin/bgpd/bgpd.h
1609
int imsg_recv_config(struct imsg *, struct bgpd_config *);
usr.sbin/bgpd/bgpd.h
1651
void kr_show_route(struct imsg *);
usr.sbin/bgpd/bgpd.h
1807
int imsg_recv_ctl_peer(struct imsg *, struct ctl_peer *);
usr.sbin/bgpd/bgpd.h
1811
int imsg_check_filterset(struct imsg *);
usr.sbin/bgpd/bgpd_imsg.c
220
imsg_check_filterset(struct imsg *imsg)
usr.sbin/bgpd/bgpd_imsg.c
225
if (imsg_get_ibuf(imsg, &ibuf) == -1)
usr.sbin/bgpd/bgpd_imsg.c
57
imsg_recv_ctl_peer(struct imsg *imsg, struct ctl_peer *p)
usr.sbin/bgpd/bgpd_imsg.c
59
if (imsg_get_data(imsg, p, sizeof(*p)) == -1)
usr.sbin/bgpd/config.c
471
imsg_recv_config(struct imsg *imsg, struct bgpd_config *conf)
usr.sbin/bgpd/config.c
475
if (imsg_get_data(imsg, &msg, sizeof(msg)) == -1)
usr.sbin/bgpd/control.c
244
struct imsg imsg;
usr.sbin/bgpd/control.c
276
if ((n = imsgbuf_get(&c->imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/control.c
281
type = imsg_get_type(&imsg);
usr.sbin/bgpd/control.c
282
pid = imsg_get_pid(&imsg);
usr.sbin/bgpd/control.c
317
imsg_ctl_parent(&imsg);
usr.sbin/bgpd/control.c
326
if (imsg_get_data(&imsg, &neighbor,
usr.sbin/bgpd/control.c
372
if (imsg_get_data(&imsg, &neighbor,
usr.sbin/bgpd/control.c
455
imsg_ctl_parent(&imsg);
usr.sbin/bgpd/control.c
460
imsg_ctl_parent(&imsg);
usr.sbin/bgpd/control.c
464
if (imsg_get_data(&imsg, &ribreq, sizeof(ribreq)) ==
usr.sbin/bgpd/control.c
488
imsg_ctl_rde(&imsg);
usr.sbin/bgpd/control.c
496
imsg_ctl_rde(&imsg);
usr.sbin/bgpd/control.c
508
imsg_ctl_rde(&imsg);
usr.sbin/bgpd/control.c
511
if (imsg_check_filterset(&imsg) == -1) {
usr.sbin/bgpd/control.c
516
imsg_ctl_rde(&imsg);
usr.sbin/bgpd/control.c
519
if (imsg_get_data(&imsg, &verbose, sizeof(verbose)) ==
usr.sbin/bgpd/control.c
524
imsg_ctl_parent(&imsg);
usr.sbin/bgpd/control.c
525
imsg_ctl_rde(&imsg);
usr.sbin/bgpd/control.c
531
imsg_free(&imsg);
usr.sbin/bgpd/control.c
538
control_imsg_relay(struct imsg *imsg, struct peer *p)
usr.sbin/bgpd/control.c
544
type = imsg_get_type(imsg);
usr.sbin/bgpd/control.c
545
pid = imsg_get_pid(imsg);
usr.sbin/bgpd/control.c
559
if (imsg_get_data(imsg, &stats, sizeof(stats)) == -1)
usr.sbin/bgpd/control.c
575
return imsg_forward(&c->imsgbuf, imsg);
usr.sbin/bgpd/kroute.c
889
kr_show_route(struct imsg *imsg)
usr.sbin/bgpd/kroute.c
905
tableid = imsg_get_id(imsg);
usr.sbin/bgpd/kroute.c
906
pid = imsg_get_pid(imsg);
usr.sbin/bgpd/kroute.c
907
switch (imsg_get_type(imsg)) {
usr.sbin/bgpd/kroute.c
909
if (imsg_get_data(imsg, &req, sizeof(req)) == -1) {
usr.sbin/bgpd/kroute.c
945
if (imsg_get_data(imsg, &addr, sizeof(addr)) == -1) {
usr.sbin/bgpd/pfkey.c
827
pfkey_recv_conf(struct peer *p, struct imsg *imsg)
usr.sbin/bgpd/pfkey.c
831
return imsg_get_data(imsg, &auth->method, sizeof(auth->method));
usr.sbin/bgpd/rde.c
1009
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
1063
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
1091
if (imsg_recv_config(&imsg, nconf) == -1)
usr.sbin/bgpd/rde.c
1107
if (imsg_get_data(&imsg, &rr, sizeof(rr)) == -1)
usr.sbin/bgpd/rde.c
1126
if (imsg_get_data(&imsg, r, sizeof(*r)) == -1)
usr.sbin/bgpd/rde.c
1190
if (imsg_get_data(&imsg, ps->name, sizeof(ps->name)) ==
usr.sbin/bgpd/rde.c
1193
if (imsg_get_type(&imsg) == IMSG_RECONF_ORIGIN_SET) {
usr.sbin/bgpd/rde.c
1203
if (imsg_get_data(&imsg, &roa, sizeof(roa)) == -1)
usr.sbin/bgpd/rde.c
1211
if (imsg_get_data(&imsg, &psi, sizeof(psi)) == -1)
usr.sbin/bgpd/rde.c
1224
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
1234
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
1250
if (imsg_get_data(&imsg, vpn, sizeof(*vpn)) == -1)
usr.sbin/bgpd/rde.c
1293
if (imsg_get_data(&imsg, &knext, sizeof(knext)) == -1)
usr.sbin/bgpd/rde.c
1300
parent_set = rde_filterset_imsg_recv(&imsg);
usr.sbin/bgpd/rde.c
1304
if (imsg_get_data(&imsg, &xmrt, sizeof(xmrt)) == -1) {
usr.sbin/bgpd/rde.c
1308
if ((fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/bgpd/rde.c
1314
rde_dump_mrt_new(&xmrt, imsg_get_pid(&imsg),
usr.sbin/bgpd/rde.c
1323
fatalx("unhandled IMSG %u", imsg_get_type(&imsg));
usr.sbin/bgpd/rde.c
1325
imsg_free(&imsg);
usr.sbin/bgpd/rde.c
1333
struct imsg imsg;
usr.sbin/bgpd/rde.c
1339
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/rde.c
1344
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rde.c
1350
if (imsg_get_data(&imsg, &roa, sizeof(roa)) == -1)
usr.sbin/bgpd/rde.c
1358
if (imsg_get_data(&imsg, &ap, sizeof(ap)) == -1)
usr.sbin/bgpd/rde.c
1371
if (imsg_get_data(&imsg, aspa,
usr.sbin/bgpd/rde.c
1382
if (imsg_get_data(&imsg, aspa->tas,
usr.sbin/bgpd/rde.c
1400
imsg_free(&imsg);
usr.sbin/bgpd/rde.c
1408
struct imsg imsg;
usr.sbin/bgpd/rde.c
1416
if (!peer_imsg_pop(peer, &imsg))
usr.sbin/bgpd/rde.c
1419
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rde.c
1421
if (imsg_get_ibuf(&imsg, &ibuf) == -1)
usr.sbin/bgpd/rde.c
1427
if (imsg_get_data(&imsg, &rr, sizeof(rr)) == -1) {
usr.sbin/bgpd/rde.c
1474
imsg_get_type(&imsg));
usr.sbin/bgpd/rde.c
1478
imsg_free(&imsg);
usr.sbin/bgpd/rde.c
455
struct imsg imsg;
usr.sbin/bgpd/rde.c
474
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/rde.c
479
peerid = imsg_get_id(&imsg);
usr.sbin/bgpd/rde.c
480
pid = imsg_get_pid(&imsg);
usr.sbin/bgpd/rde.c
481
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rde.c
490
peer_imsg_push(peer, &imsg);
usr.sbin/bgpd/rde.c
493
if (imsg_get_data(&imsg, &pconf, sizeof(pconf)) == -1)
usr.sbin/bgpd/rde.c
506
if (imsg_get_data(&imsg, &sup, sizeof(sup)) == -1)
usr.sbin/bgpd/rde.c
536
if (imsg_get_data(&imsg, &aid, sizeof(aid)) == -1) {
usr.sbin/bgpd/rde.c
545
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rde.c
563
if (imsg_get_data(&imsg, &netconf_s,
usr.sbin/bgpd/rde.c
578
if (imsg_get_ibuf(&imsg, &ibuf) == -1) {
usr.sbin/bgpd/rde.c
601
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
636
if (imsg_get_data(&imsg, &netconf_s,
usr.sbin/bgpd/rde.c
672
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
725
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/rde.c
761
session_set = rde_filterset_imsg_recv(&imsg);
usr.sbin/bgpd/rde.c
766
if (imsg_get_data(&imsg, &req, sizeof(req)) == -1) {
usr.sbin/bgpd/rde.c
770
rde_dump_ctx_new(&req, pid, imsg_get_type(&imsg));
usr.sbin/bgpd/rde.c
773
if (imsg_get_data(&imsg, &req, sizeof(req)) == -1) {
usr.sbin/bgpd/rde.c
853
if (imsg_get_data(&imsg, &verbose, sizeof(verbose)) ==
usr.sbin/bgpd/rde.c
891
imsg_free(&imsg);
usr.sbin/bgpd/rde.c
902
struct imsg imsg;
usr.sbin/bgpd/rde.c
922
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/rde.c
927
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rde.c
931
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/bgpd/rde.c
941
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rde.c
972
if (imsg_get_data(&imsg, &netconf_p,
usr.sbin/bgpd/rde.c
995
if (imsg_get_data(&imsg, &netconf_p,
usr.sbin/bgpd/rde.h
445
void peer_imsg_push(struct rde_peer *, struct imsg *);
usr.sbin/bgpd/rde.h
446
int peer_imsg_pop(struct rde_peer *, struct imsg *);
usr.sbin/bgpd/rde.h
576
struct rde_filter_set *rde_filterset_imsg_recv(struct imsg *);
usr.sbin/bgpd/rde_filter.c
968
rde_filterset_imsg_recv(struct imsg *imsg)
usr.sbin/bgpd/rde_filter.c
975
if (imsg_get_ibuf(imsg, &ibuf) == -1)
usr.sbin/bgpd/rde_peer.c
736
peer_imsg_push(struct rde_peer *peer, struct imsg *imsg)
usr.sbin/bgpd/rde_peer.c
740
peer->stats.ibufq_payload_size += imsg_get_len(imsg);
usr.sbin/bgpd/rde_peer.c
741
rdemem.rde_ibufq_payload_size += imsg_get_len(imsg);
usr.sbin/bgpd/rde_peer.c
743
imsg_ibufq_push(peer->ibufq, imsg);
usr.sbin/bgpd/rde_peer.c
751
peer_imsg_pop(struct rde_peer *peer, struct imsg *imsg)
usr.sbin/bgpd/rde_peer.c
753
switch (imsg_ibufq_pop(peer->ibufq, imsg)) {
usr.sbin/bgpd/rde_peer.c
759
peer->stats.ibufq_payload_size -= imsg_get_len(imsg);
usr.sbin/bgpd/rde_peer.c
760
rdemem.rde_ibufq_payload_size -= imsg_get_len(imsg);
usr.sbin/bgpd/rde_update.c
1017
up_dump_withdraws(struct imsgbuf *imsg, struct rde_peer *peer, uint8_t aid)
usr.sbin/bgpd/rde_update.c
1024
if ((buf = imsg_create(imsg, IMSG_UPDATE, peer->conf.id, 0, 64)) ==
usr.sbin/bgpd/rde_update.c
1081
imsg_close(imsg, buf);
usr.sbin/bgpd/rde_update.c
1164
up_dump_update(struct imsgbuf *imsg, struct rde_peer *peer, uint8_t aid)
usr.sbin/bgpd/rde_update.c
1184
if ((buf = imsg_create(imsg, IMSG_UPDATE, peer->conf.id, 0, 64)) ==
usr.sbin/bgpd/rde_update.c
1232
imsg_close(imsg, buf);
usr.sbin/bgpd/rde_update.c
1246
imsg_close(imsg, buf);
usr.sbin/bgpd/rtr.c
318
struct imsg imsg;
usr.sbin/bgpd/rtr.c
326
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/rtr.c
331
rtrid = imsg_get_id(&imsg);
usr.sbin/bgpd/rtr.c
332
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/rtr.c
334
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/bgpd/rtr.c
353
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/bgpd/rtr.c
368
if (imsg_recv_config(&imsg, nconf) == -1)
usr.sbin/bgpd/rtr.c
373
if (imsg_get_data(&imsg, &roa, sizeof(roa)) == -1)
usr.sbin/bgpd/rtr.c
382
if (imsg_get_data(&imsg, aspa,
usr.sbin/bgpd/rtr.c
393
if (imsg_get_data(&imsg, aspa->tas,
usr.sbin/bgpd/rtr.c
407
if (imsg_get_data(&imsg, &rtrconf,
usr.sbin/bgpd/rtr.c
451
rtr_show(rs, imsg_get_pid(&imsg));
usr.sbin/bgpd/rtr.c
455
imsg_get_pid(&imsg), -1, NULL, 0);
usr.sbin/bgpd/rtr.c
458
imsg_free(&imsg);
usr.sbin/bgpd/rtr.c
465
struct imsg imsg;
usr.sbin/bgpd/rtr.c
469
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/rtr.c
476
imsg_free(&imsg);
usr.sbin/bgpd/session.c
1180
struct imsg imsg;
usr.sbin/bgpd/session.c
1196
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/bgpd/session.c
1201
peerid = imsg_get_id(&imsg);
usr.sbin/bgpd/session.c
1202
switch (imsg_get_type(&imsg)) {
usr.sbin/bgpd/session.c
1207
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/bgpd/session.c
1217
if (imsg_get_type(&imsg) == IMSG_SOCKET_CONN) {
usr.sbin/bgpd/session.c
1240
if (imsg_recv_config(&imsg, nconf) == -1)
usr.sbin/bgpd/session.c
1250
if (imsg_get_data(&imsg, &p->conf, sizeof(p->conf)) ==
usr.sbin/bgpd/session.c
1266
if (pfkey_recv_conf(p, &imsg) == -1)
usr.sbin/bgpd/session.c
1274
if (imsg_get_data(&imsg, &nla, sizeof(nla)) == -1)
usr.sbin/bgpd/session.c
1285
if ((nla.fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/bgpd/session.c
1311
if (imsg_get_data(&imsg, &restricted,
usr.sbin/bgpd/session.c
1314
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/bgpd/session.c
1369
if (imsg_get_data(&imsg, &sdon, sizeof(sdon)) == -1)
usr.sbin/bgpd/session.c
1390
if (imsg_get_data(&imsg, &xmrt, sizeof(xmrt)) == -1) {
usr.sbin/bgpd/session.c
1395
if ((xmrt.fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/bgpd/session.c
1420
if (imsg_get_data(&imsg, &xmrt, sizeof(xmrt)) == -1) {
usr.sbin/bgpd/session.c
1438
if (control_imsg_relay(&imsg, NULL) == -1)
usr.sbin/bgpd/session.c
1449
if (control_imsg_relay(&imsg, p) == -1)
usr.sbin/bgpd/session.c
1462
if (control_imsg_relay(&imsg, NULL) == -1)
usr.sbin/bgpd/session.c
1467
if (control_imsg_relay(&imsg, NULL) == -1)
usr.sbin/bgpd/session.c
1478
if (imsg_get_ibuf(&imsg, &ibuf) == -1)
usr.sbin/bgpd/session.c
1491
if (imsg_get_ibuf(&imsg, &ibuf) == -1 ||
usr.sbin/bgpd/session.c
1531
if (imsg_get_data(&imsg, &rr, sizeof(rr)) == -1) {
usr.sbin/bgpd/session.c
1547
if (imsg_get_data(&imsg, &aid, sizeof(aid)) == -1) {
usr.sbin/bgpd/session.c
1570
imsg_free(&imsg);
usr.sbin/bgpd/session.c
1779
imsg_ctl_parent(struct imsg *imsg)
usr.sbin/bgpd/session.c
1781
return imsg_forward(ibuf_main, imsg);
usr.sbin/bgpd/session.c
1785
imsg_ctl_rde(struct imsg *imsg)
usr.sbin/bgpd/session.c
1793
return imsg_forward(ibuf_rde_ctl, imsg);
usr.sbin/bgpd/session.h
207
int pfkey_recv_conf(struct peer *, struct imsg *);
usr.sbin/bgpd/session.h
265
int imsg_ctl_parent(struct imsg *);
usr.sbin/bgpd/session.h
266
int imsg_ctl_rde(struct imsg *);
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
148
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
153
if (imsg.hdr.type == IMSG_CTL_END) {
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
162
cei = imsg.data;
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
176
imsg_free(&imsg);
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
68
struct imsg imsg;
usr.sbin/dhcpleasectl/dhcpleasectl.c
182
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dhcpleasectl/dhcpleasectl.c
187
if (imsg.hdr.type == IMSG_CTL_END) {
usr.sbin/dhcpleasectl/dhcpleasectl.c
196
cei = imsg.data;
usr.sbin/dhcpleasectl/dhcpleasectl.c
210
imsg_free(&imsg);
usr.sbin/dhcpleasectl/dhcpleasectl.c
68
struct imsg imsg;
usr.sbin/dvmrpctl/dvmrpctl.c
187
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dvmrpctl/dvmrpctl.c
194
done = show_summary_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
197
done = show_interface_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
200
done = show_interface_detail_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
203
done = show_igmp_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
206
done = show_nbr_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
209
done = show_nbr_detail_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
212
done = show_rib_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
215
done = show_rib_detail_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
218
done = show_mfc_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
221
done = show_mfc_detail_msg(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
229
imsg_free(&imsg);
usr.sbin/dvmrpctl/dvmrpctl.c
239
show_summary_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
243
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
245
sum = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
260
show_interface_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
265
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
267
iface = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
292
show_interface_detail_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
296
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
298
iface = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
342
show_igmp_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
348
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
350
iface = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
362
group = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
44
int show_summary_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
45
int show_interface_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
46
int show_interface_detail_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
47
int show_igmp_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
477
show_nbr_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
481
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
483
nbr = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
516
show_nbr_detail_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
518
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
53
int show_nbr_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
532
show_rib_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
537
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
539
rt = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
55
int show_nbr_detail_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
56
int show_rib_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
564
show_rib_detail_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
567
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
57
int show_rib_detail_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
58
int show_mfc_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
581
show_mfc_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
589
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
59
int show_mfc_detail_msg(struct imsg *);
usr.sbin/dvmrpctl/dvmrpctl.c
591
mfc = imsg->data;
usr.sbin/dvmrpctl/dvmrpctl.c
630
show_mfc_detail_msg(struct imsg *imsg)
usr.sbin/dvmrpctl/dvmrpctl.c
633
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
78
struct imsg imsg;
usr.sbin/dvmrpd/control.c
226
struct imsg imsg;
usr.sbin/dvmrpd/control.c
250
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/dvmrpd/control.c
258
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/control.c
262
dvmrpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/dvmrpd/control.c
265
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/dvmrpd/control.c
267
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/dvmrpd/control.c
274
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/dvmrpd/control.c
276
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/dvmrpd/control.c
288
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/dvmrpd/control.c
289
dvmrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/dvmrpd/control.c
290
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/dvmrpd/control.c
293
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/dvmrpd/control.c
298
dvmrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/dvmrpd/control.c
299
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/dvmrpd/control.c
300
dvmrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/dvmrpd/control.c
301
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/dvmrpd/control.c
303
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/dvmrpd/control.c
308
"error handling imsg %d", imsg.hdr.type);
usr.sbin/dvmrpd/control.c
311
imsg_free(&imsg);
usr.sbin/dvmrpd/control.c
318
control_imsg_relay(struct imsg *imsg)
usr.sbin/dvmrpd/control.c
322
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/dvmrpd/control.c
325
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/dvmrpd/control.c
326
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/dvmrpd/control.h
35
int control_imsg_relay(struct imsg *);
usr.sbin/dvmrpd/dvmrpd.c
316
struct imsg imsg;
usr.sbin/dvmrpd/dvmrpd.c
335
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dvmrpd/dvmrpd.c
340
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpd.c
353
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/dvmrpd/dvmrpd.c
358
"imsg %d", imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpd.c
361
imsg_free(&imsg);
usr.sbin/dvmrpd/dvmrpd.c
378
struct imsg imsg;
usr.sbin/dvmrpd/dvmrpd.c
397
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dvmrpd/dvmrpd.c
402
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpd.c
404
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/dvmrpd.c
406
memcpy(&mfc, imsg.data, sizeof(mfc));
usr.sbin/dvmrpd/dvmrpd.c
412
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/dvmrpd.c
414
memcpy(&mfc, imsg.data, sizeof(mfc));
usr.sbin/dvmrpd/dvmrpd.c
421
imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpd.c
424
imsg_free(&imsg);
usr.sbin/dvmrpd/dvmrpe.c
237
struct imsg imsg;
usr.sbin/dvmrpd/dvmrpe.c
260
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dvmrpd/dvmrpe.c
265
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpe.c
267
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/dvmrpd/dvmrpe.c
270
kif = imsg.data;
usr.sbin/dvmrpd/dvmrpe.c
293
"imsg %d", imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpe.c
296
imsg_free(&imsg);
usr.sbin/dvmrpd/dvmrpe.c
312
struct imsg imsg;
usr.sbin/dvmrpd/dvmrpe.c
335
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dvmrpd/dvmrpe.c
340
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpe.c
345
control_imsg_relay(&imsg);
usr.sbin/dvmrpd/dvmrpe.c
349
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/dvmrpd/dvmrpe.c
355
memcpy(rr, imsg.data, sizeof(*rr));
usr.sbin/dvmrpd/dvmrpe.c
358
if (imsg.hdr.peerid == 0) {
usr.sbin/dvmrpd/dvmrpe.c
370
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/dvmrpd/dvmrpe.c
375
if (imsg.hdr.peerid == 0) {
usr.sbin/dvmrpd/dvmrpe.c
388
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/dvmrpd/dvmrpe.c
392
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(p))
usr.sbin/dvmrpd/dvmrpe.c
395
memcpy(&p, imsg.data, sizeof(p));
usr.sbin/dvmrpd/dvmrpe.c
412
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/dvmrpd/dvmrpe.c
418
memcpy(rr, imsg.data, sizeof(*rr));
usr.sbin/dvmrpd/dvmrpe.c
429
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/dvmrpd/dvmrpe.c
435
memcpy(rr, imsg.data, sizeof(*rr));
usr.sbin/dvmrpd/dvmrpe.c
449
imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpe.c
452
imsg_free(&imsg);
usr.sbin/dvmrpd/rde.c
203
struct imsg imsg;
usr.sbin/dvmrpd/rde.c
225
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/dvmrpd/rde.c
230
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/rde.c
232
rt_dump(imsg.hdr.pid);
usr.sbin/dvmrpd/rde.c
234
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/dvmrpd/rde.c
237
mfc_dump(imsg.hdr.pid);
usr.sbin/dvmrpd/rde.c
239
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/dvmrpd/rde.c
242
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr))
usr.sbin/dvmrpd/rde.c
244
memcpy(&rr, imsg.data, sizeof(rr));
usr.sbin/dvmrpd/rde.c
247
if (imsg.hdr.peerid == 0)
usr.sbin/dvmrpd/rde.c
255
rt_snap(imsg.hdr.peerid);
usr.sbin/dvmrpd/rde.c
257
imsg.hdr.peerid, 0, NULL, 0);
usr.sbin/dvmrpd/rde.c
260
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
262
memcpy(&mfc, imsg.data, sizeof(mfc));
usr.sbin/dvmrpd/rde.c
276
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
278
memcpy(&mfc, imsg.data, sizeof(mfc));
usr.sbin/dvmrpd/rde.c
284
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
286
memcpy(&mfc, imsg.data, sizeof(mfc));
usr.sbin/dvmrpd/rde.c
297
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
299
memcpy(&mfc, imsg.data, sizeof(mfc));
usr.sbin/dvmrpd/rde.c
310
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(nm))
usr.sbin/dvmrpd/rde.c
313
memcpy(&nm, imsg.data, sizeof(nm));
usr.sbin/dvmrpd/rde.c
318
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(p))
usr.sbin/dvmrpd/rde.c
320
memcpy(&p, imsg.data, sizeof(p));
usr.sbin/dvmrpd/rde.c
326
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/dvmrpd/rde.c
331
imsg.hdr.type);
usr.sbin/dvmrpd/rde.c
334
imsg_free(&imsg);
usr.sbin/eigrpctl/eigrpctl.c
231
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpctl/eigrpctl.c
238
done = show_interface_msg(&imsg, res);
usr.sbin/eigrpctl/eigrpctl.c
241
done = show_interface_detail_msg(&imsg, res);
usr.sbin/eigrpctl/eigrpctl.c
244
done = show_nbr_msg(&imsg, res);
usr.sbin/eigrpctl/eigrpctl.c
248
done = show_topology_detail_msg(&imsg,
usr.sbin/eigrpctl/eigrpctl.c
251
done = show_topology_msg(&imsg, res);
usr.sbin/eigrpctl/eigrpctl.c
254
done = show_fib_msg(&imsg, res);
usr.sbin/eigrpctl/eigrpctl.c
257
done = show_fib_interface_msg(&imsg);
usr.sbin/eigrpctl/eigrpctl.c
260
done = show_stats_msg(&imsg, res);
usr.sbin/eigrpctl/eigrpctl.c
272
imsg_free(&imsg);
usr.sbin/eigrpctl/eigrpctl.c
299
show_interface_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
304
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
306
if (imsg->hdr.len < IMSG_HEADER_SIZE +
usr.sbin/eigrpctl/eigrpctl.c
309
iface = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
340
show_interface_detail_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
344
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
346
if (imsg->hdr.len < IMSG_HEADER_SIZE +
usr.sbin/eigrpctl/eigrpctl.c
349
iface = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
439
show_nbr_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
444
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
446
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_nbr))
usr.sbin/eigrpctl/eigrpctl.c
448
nbr = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
46
int show_interface_msg(struct imsg *, struct parse_result *);
usr.sbin/eigrpctl/eigrpctl.c
47
int show_interface_detail_msg(struct imsg *,
usr.sbin/eigrpctl/eigrpctl.c
493
show_topology_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
499
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
501
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_rt))
usr.sbin/eigrpctl/eigrpctl.c
503
rt = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
51
int show_nbr_msg(struct imsg *, struct parse_result *);
usr.sbin/eigrpctl/eigrpctl.c
52
int show_topology_msg(struct imsg *, struct parse_result *);
usr.sbin/eigrpctl/eigrpctl.c
53
int show_topology_detail_msg(struct imsg *,
usr.sbin/eigrpctl/eigrpctl.c
559
show_topology_detail_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
56
int show_fib_msg(struct imsg *, struct parse_result *);
usr.sbin/eigrpctl/eigrpctl.c
565
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
567
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_rt))
usr.sbin/eigrpctl/eigrpctl.c
569
rt = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
61
int show_fib_interface_msg(struct imsg *);
usr.sbin/eigrpctl/eigrpctl.c
62
int show_stats_msg(struct imsg *, struct parse_result *);
usr.sbin/eigrpctl/eigrpctl.c
668
show_fib_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
673
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
675
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/eigrpctl/eigrpctl.c
677
k = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
786
show_fib_interface_msg(struct imsg *imsg)
usr.sbin/eigrpctl/eigrpctl.c
791
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
793
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kif))
usr.sbin/eigrpctl/eigrpctl.c
795
k = imsg->data;
usr.sbin/eigrpctl/eigrpctl.c
81
struct imsg imsg;
usr.sbin/eigrpctl/eigrpctl.c
821
show_stats_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/eigrpctl/eigrpctl.c
825
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
827
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_stats))
usr.sbin/eigrpctl/eigrpctl.c
829
cs = imsg->data;
usr.sbin/eigrpd/control.c
217
struct imsg imsg;
usr.sbin/eigrpd/control.c
240
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/eigrpd/control.c
248
switch (imsg.hdr.type) {
usr.sbin/eigrpd/control.c
252
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/eigrpd/control.c
253
eigrpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/eigrpd/control.c
257
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/eigrpd/control.c
258
eigrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
259
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
262
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
266
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/eigrpd/control.c
272
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
276
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/eigrpd/control.c
277
eigrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
278
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
287
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
291
nbr_clear_ctl(imsg.data);
usr.sbin/eigrpd/control.c
294
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
299
eigrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
300
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
301
eigrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
302
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
304
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/eigrpd/control.c
309
imsg.hdr.type);
usr.sbin/eigrpd/control.c
312
imsg_free(&imsg);
usr.sbin/eigrpd/control.c
319
control_imsg_relay(struct imsg *imsg)
usr.sbin/eigrpd/control.c
323
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/eigrpd/control.c
326
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/eigrpd/control.c
327
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/eigrpd/control.h
33
int control_imsg_relay(struct imsg *);
usr.sbin/eigrpd/eigrpd.c
373
struct imsg imsg;
usr.sbin/eigrpd/eigrpd.c
394
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpd/eigrpd.c
399
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpd.c
413
kr_show_route(&imsg);
usr.sbin/eigrpd/eigrpd.c
416
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/eigrpd/eigrpd.c
417
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/eigrpd/eigrpd.c
418
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/eigrpd/eigrpd.c
419
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/eigrpd/eigrpd.c
424
if (imsg_get_data(&imsg, &verbose, sizeof(verbose)) ==
usr.sbin/eigrpd/eigrpd.c
432
imsg.hdr.type);
usr.sbin/eigrpd/eigrpd.c
435
imsg_free(&imsg);
usr.sbin/eigrpd/eigrpd.c
451
struct imsg imsg;
usr.sbin/eigrpd/eigrpd.c
472
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpd/eigrpd.c
477
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpd.c
479
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/eigrpd/eigrpd.c
482
if (kr_change(imsg.data))
usr.sbin/eigrpd/eigrpd.c
486
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/eigrpd/eigrpd.c
489
if (kr_delete(imsg.data))
usr.sbin/eigrpd/eigrpd.c
495
imsg.hdr.type);
usr.sbin/eigrpd/eigrpd.c
498
imsg_free(&imsg);
usr.sbin/eigrpd/eigrpd.h
463
void kr_show_route(struct imsg *);
usr.sbin/eigrpd/eigrpe.c
222
struct imsg imsg;
usr.sbin/eigrpd/eigrpe.c
246
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpd/eigrpe.c
251
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
253
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/eigrpe.c
256
kif = imsg.data;
usr.sbin/eigrpd/eigrpe.c
267
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/eigrpe.c
270
ka = imsg.data;
usr.sbin/eigrpd/eigrpe.c
279
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/eigrpe.c
282
ka = imsg.data;
usr.sbin/eigrpd/eigrpe.c
296
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/eigrpd/eigrpe.c
317
memcpy(nconf, imsg.data, sizeof(struct eigrpd_conf));
usr.sbin/eigrpd/eigrpe.c
325
memcpy(neigrp, imsg.data, sizeof(struct eigrp));
usr.sbin/eigrpd/eigrpe.c
334
niface = imsg.data;
usr.sbin/eigrpd/eigrpe.c
341
memcpy(niface, imsg.data, sizeof(struct iface));
usr.sbin/eigrpd/eigrpe.c
352
memcpy(nei, imsg.data, sizeof(struct eigrp_iface));
usr.sbin/eigrpd/eigrpe.c
374
control_imsg_relay(&imsg);
usr.sbin/eigrpd/eigrpe.c
378
imsg.hdr.type);
usr.sbin/eigrpd/eigrpe.c
381
imsg_free(&imsg);
usr.sbin/eigrpd/eigrpe.c
397
struct imsg imsg;
usr.sbin/eigrpd/eigrpe.c
419
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpd/eigrpe.c
424
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
428
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rinfo))
usr.sbin/eigrpd/eigrpe.c
430
memcpy(&rinfo, imsg.data, sizeof(rinfo));
usr.sbin/eigrpd/eigrpe.c
432
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
439
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
453
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rinfo))
usr.sbin/eigrpd/eigrpe.c
455
memcpy(&rinfo, imsg.data, sizeof(rinfo));
usr.sbin/eigrpd/eigrpe.c
457
ei = eigrp_if_lookup_id(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
464
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
477
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
484
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
505
ei = eigrp_if_lookup_id(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
512
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
524
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
536
control_imsg_relay(&imsg);
usr.sbin/eigrpd/eigrpe.c
540
imsg.hdr.type);
usr.sbin/eigrpd/eigrpe.c
543
imsg_free(&imsg);
usr.sbin/eigrpd/kroute.c
329
kr_show_route(struct imsg *imsg)
usr.sbin/eigrpd/kroute.c
337
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/eigrpd/kroute.c
341
memcpy(&flags, imsg->data, sizeof(flags));
usr.sbin/eigrpd/kroute.c
353
imsg->hdr.pid, &kr, sizeof(kr));
usr.sbin/eigrpd/kroute.c
356
main_imsg_compose_eigrpe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/eigrpd/rde.c
170
struct imsg imsg;
usr.sbin/eigrpd/rde.c
194
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpd/rde.c
199
switch (imsg.hdr.type) {
usr.sbin/eigrpd/rde.c
201
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/eigrpd/rde.c
204
memcpy(&new, imsg.data, sizeof(new));
usr.sbin/eigrpd/rde.c
206
if (rde_nbr_find(imsg.hdr.peerid))
usr.sbin/eigrpd/rde.c
209
rde_nbr_new(imsg.hdr.peerid, &new);
usr.sbin/eigrpd/rde.c
212
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/eigrpd/rde.c
221
rde_nbr_del(rde_nbr_find(imsg.hdr.peerid), 0);
usr.sbin/eigrpd/rde.c
224
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/eigrpd/rde.c
238
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/eigrpd/rde.c
245
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rinfo))
usr.sbin/eigrpd/rde.c
247
memcpy(&rinfo, imsg.data, sizeof(rinfo));
usr.sbin/eigrpd/rde.c
249
switch (imsg.hdr.type) {
usr.sbin/eigrpd/rde.c
268
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
274
rt_dump(imsg.data, imsg.hdr.pid);
usr.sbin/eigrpd/rde.c
275
rde_imsg_compose_eigrpe(IMSG_CTL_END, 0, imsg.hdr.pid,
usr.sbin/eigrpd/rde.c
279
if (imsg_get_data(&imsg, &verbose, sizeof(verbose)) ==
usr.sbin/eigrpd/rde.c
287
imsg.hdr.type);
usr.sbin/eigrpd/rde.c
290
imsg_free(&imsg);
usr.sbin/eigrpd/rde.c
308
struct imsg imsg;
usr.sbin/eigrpd/rde.c
332
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/eigrpd/rde.c
337
switch (imsg.hdr.type) {
usr.sbin/eigrpd/rde.c
339
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
342
kif = imsg.data;
usr.sbin/eigrpd/rde.c
346
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
349
rt_redist_set(imsg.data, 0);
usr.sbin/eigrpd/rde.c
352
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
355
rt_redist_set(imsg.data, 1);
usr.sbin/eigrpd/rde.c
363
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/eigrpd/rde.c
385
memcpy(nconf, imsg.data, sizeof(struct eigrpd_conf));
usr.sbin/eigrpd/rde.c
393
memcpy(neigrp, imsg.data, sizeof(struct eigrp));
usr.sbin/eigrpd/rde.c
402
niface = imsg.data;
usr.sbin/eigrpd/rde.c
409
memcpy(niface, imsg.data, sizeof(struct iface));
usr.sbin/eigrpd/rde.c
420
memcpy(nei, imsg.data, sizeof(struct eigrp_iface));
usr.sbin/eigrpd/rde.c
441
imsg.hdr.type);
usr.sbin/eigrpd/rde.c
444
imsg_free(&imsg);
usr.sbin/httpd/config.c
1026
config_getmedia(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
1032
uint8_t *p = imsg->data;
usr.sbin/httpd/config.c
1034
IMSG_SIZE_CHECK(imsg, &media);
usr.sbin/httpd/config.c
1082
config_getauth(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
1088
uint8_t *p = imsg->data;
usr.sbin/httpd/config.c
1090
IMSG_SIZE_CHECK(imsg, &auth);
usr.sbin/httpd/config.c
129
config_getreset(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
133
IMSG_SIZE_CHECK(imsg, &mode);
usr.sbin/httpd/config.c
134
memcpy(&mode, imsg->data, sizeof(mode));
usr.sbin/httpd/config.c
142
config_getcfg(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
146
if (IMSG_DATA_SIZE(imsg) != sizeof(cf))
usr.sbin/httpd/config.c
150
memcpy(&cf, imsg->data, sizeof(cf));
usr.sbin/httpd/config.c
359
config_getserver_fcgiparams(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
366
if (imsg_get_ibuf(imsg, &ibuf) == -1 ||
usr.sbin/httpd/config.c
37
struct imsg *);
usr.sbin/httpd/config.c
438
config_getserver_headers(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
445
if (imsg_get_ibuf(imsg, &ibuf) == -1 ||
usr.sbin/httpd/config.c
611
struct imsg *imsg)
usr.sbin/httpd/config.c
617
uint8_t *p = imsg->data;
usr.sbin/httpd/config.c
624
IMSG_SIZE_CHECK(imsg, srv_conf);
usr.sbin/httpd/config.c
631
if ((IMSG_DATA_SIZE(imsg) - s) < (size_t)srv_conf->return_uri_len) {
usr.sbin/httpd/config.c
796
config_getserver(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
803
uint8_t *p = imsg->data;
usr.sbin/httpd/config.c
807
IMSG_SIZE_CHECK(imsg, &srv_conf);
usr.sbin/httpd/config.c
814
fd = imsg_get_fd(imsg);
usr.sbin/httpd/config.c
816
if ((IMSG_DATA_SIZE(imsg) - s) < (size_t)srv_conf.return_uri_len) {
usr.sbin/httpd/config.c
831
return (config_getserver_config(env, srv, imsg));
usr.sbin/httpd/config.c
929
config_getserver_tls(struct httpd *env, struct imsg *imsg)
usr.sbin/httpd/config.c
933
uint8_t *p = imsg->data;
usr.sbin/httpd/config.c
936
IMSG_SIZE_CHECK(imsg, &tls_conf);
usr.sbin/httpd/config.c
941
if ((IMSG_DATA_SIZE(imsg) - sizeof(tls_conf)) < len) {
usr.sbin/httpd/httpd.c
403
parent_dispatch_server(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/httpd.c
408
switch (imsg->hdr.type) {
usr.sbin/httpd/httpd.c
420
parent_dispatch_logger(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/httpd.c
427
switch (imsg->hdr.type) {
usr.sbin/httpd/httpd.c
429
IMSG_SIZE_CHECK(imsg, &v);
usr.sbin/httpd/httpd.c
430
memcpy(&v, imsg->data, sizeof(v));
usr.sbin/httpd/httpd.c
434
if (IMSG_DATA_SIZE(imsg) > 0)
usr.sbin/httpd/httpd.c
435
str = get_string(imsg->data, IMSG_DATA_SIZE(imsg));
usr.sbin/httpd/httpd.c
449
if (logger_open_priv(imsg) == -1)
usr.sbin/httpd/httpd.c
58
struct imsg *);
usr.sbin/httpd/httpd.c
60
struct imsg *);
usr.sbin/httpd/httpd.h
167
#define IMSG_SIZE_CHECK(imsg, p) do { \
usr.sbin/httpd/httpd.h
168
if (IMSG_DATA_SIZE(imsg) < sizeof(*p)) \
usr.sbin/httpd/httpd.h
171
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
usr.sbin/httpd/httpd.h
241
struct imsg *);
usr.sbin/httpd/httpd.h
791
void proc_forward_imsg(struct privsep *, struct imsg *,
usr.sbin/httpd/httpd.h
807
int config_getreset(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
808
int config_getcfg(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
814
int config_getserver(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
815
int config_getserver_tls(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
816
int config_getserver_fcgiparams(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
817
int config_getserver_headers(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
819
int config_getmedia(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
821
int config_getauth(struct httpd *, struct imsg *);
usr.sbin/httpd/httpd.h
825
int logger_open_priv(struct imsg *);
usr.sbin/httpd/logger.c
138
logger_open_fd(struct imsg *imsg)
usr.sbin/httpd/logger.c
143
IMSG_SIZE_CHECK(imsg, &id);
usr.sbin/httpd/logger.c
144
memcpy(&id, imsg->data, sizeof(id));
usr.sbin/httpd/logger.c
148
log->log_fd = imsg_get_fd(imsg);
usr.sbin/httpd/logger.c
159
logger_open_priv(struct imsg *imsg)
usr.sbin/httpd/logger.c
168
IMSG_SIZE_CHECK(imsg, &id);
usr.sbin/httpd/logger.c
169
memcpy(&id, imsg->data, sizeof(id));
usr.sbin/httpd/logger.c
170
p = (char *)imsg->data + sizeof(id);
usr.sbin/httpd/logger.c
244
logger_log(struct imsg *imsg)
usr.sbin/httpd/logger.c
251
IMSG_SIZE_CHECK(imsg, &id);
usr.sbin/httpd/logger.c
252
memcpy(&id, imsg->data, sizeof(id));
usr.sbin/httpd/logger.c
257
if (imsg->hdr.type == IMSG_LOG_ACCESS)
usr.sbin/httpd/logger.c
268
logline = (char *)imsg->data + sizeof(id);
usr.sbin/httpd/logger.c
282
logger_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/logger.c
284
switch (imsg->hdr.type) {
usr.sbin/httpd/logger.c
286
config_getserver(httpd_env, imsg);
usr.sbin/httpd/logger.c
289
config_getcfg(httpd_env, imsg);
usr.sbin/httpd/logger.c
296
config_getreset(httpd_env, imsg);
usr.sbin/httpd/logger.c
299
return (logger_open_fd(imsg));
usr.sbin/httpd/logger.c
308
logger_dispatch_server(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/logger.c
310
switch (imsg->hdr.type) {
usr.sbin/httpd/logger.c
313
logger_log(imsg);
usr.sbin/httpd/logger.c
35
struct imsg *);
usr.sbin/httpd/logger.c
37
struct imsg *);
usr.sbin/httpd/logger.c
41
int logger_open_fd(struct imsg *);
usr.sbin/httpd/logger.c
45
int logger_log(struct imsg *);
usr.sbin/httpd/proc.c
50
int proc_dispatch_null(int, struct privsep_proc *, struct imsg *);
usr.sbin/httpd/proc.c
582
struct imsg imsg;
usr.sbin/httpd/proc.c
616
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/httpd/proc.c
624
imsg_get_type(&imsg), imsg_get_id(&imsg),
usr.sbin/httpd/proc.c
625
p->p_title, imsg_get_pid(&imsg));
usr.sbin/httpd/proc.c
631
if ((p->p_cb)(fd, p, &imsg) == 0) {
usr.sbin/httpd/proc.c
633
imsg_free(&imsg);
usr.sbin/httpd/proc.c
640
switch (imsg_get_type(&imsg)) {
usr.sbin/httpd/proc.c
642
if (imsg_get_data(&imsg, &ver, sizeof(ver)) == -1)
usr.sbin/httpd/proc.c
654
if (imsg_get_data(&imsg, &pf, sizeof(pf)) == -1)
usr.sbin/httpd/proc.c
657
proc_accept(ps, imsg_get_fd(&imsg), pf.pf_procid,
usr.sbin/httpd/proc.c
664
imsg_get_type(&imsg), imsg_get_id(&imsg),
usr.sbin/httpd/proc.c
665
p->p_title, imsg_get_pid(&imsg));
usr.sbin/httpd/proc.c
667
imsg_free(&imsg);
usr.sbin/httpd/proc.c
673
proc_dispatch_null(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/proc.c
784
proc_forward_imsg(struct privsep *ps, struct imsg *imsg,
usr.sbin/httpd/proc.c
791
if (imsg_forward(&ps->ps_ievs[id][n].ibuf, imsg) == -1)
usr.sbin/httpd/server.c
1359
server_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/server.c
1364
switch (imsg->hdr.type) {
usr.sbin/httpd/server.c
1366
if (config_getmedia(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1370
if (config_getauth(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1374
if (config_getserver(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1378
if (config_getserver_tls(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1382
if (config_getserver_fcgiparams(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1386
if (config_getserver_headers(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1390
if (config_getcfg(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1398
if (config_getreset(httpd_env, imsg) != 0)
usr.sbin/httpd/server.c
1402
IMSG_SIZE_CHECK(imsg, (&key));
usr.sbin/httpd/server.c
1403
memcpy(&key, imsg->data, sizeof(key));
usr.sbin/httpd/server.c
1423
server_dispatch_logger(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/httpd/server.c
1425
switch (imsg->hdr.type) {
usr.sbin/httpd/server.c
51
struct imsg *);
usr.sbin/httpd/server.c
53
struct imsg *);
usr.sbin/ikectl/ikectl.c
162
struct imsg imsg;
usr.sbin/ikectl/ikectl.c
353
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ikectl/ikectl.c
359
done = monitor(&imsg);
usr.sbin/ikectl/ikectl.c
362
done = show_stats(&imsg, quiet);
usr.sbin/ikectl/ikectl.c
366
done = show_string(&imsg);
usr.sbin/ikectl/ikectl.c
371
imsg_free(&imsg);
usr.sbin/ikectl/ikectl.c
392
monitor(struct imsg *imsg)
usr.sbin/ikectl/ikectl.c
400
imn = monitor_lookup(imsg->hdr.type);
usr.sbin/ikectl/ikectl.c
402
imsg->hdr.type, imsg->hdr.len, imsg->hdr.peerid, imsg->hdr.pid);
usr.sbin/ikectl/ikectl.c
407
(*imn->func)(imsg);
usr.sbin/ikectl/ikectl.c
413
show_string(struct imsg *imsg)
usr.sbin/ikectl/ikectl.c
417
switch (imsg->hdr.type) {
usr.sbin/ikectl/ikectl.c
424
if (IMSG_DATA_SIZE(imsg) > 0)
usr.sbin/ikectl/ikectl.c
425
printf("%s", (char *)imsg->data);
usr.sbin/ikectl/ikectl.c
44
void (*func)(struct imsg *);
usr.sbin/ikectl/ikectl.c
442
show_stats(struct imsg *imsg, int quiet)
usr.sbin/ikectl/ikectl.c
447
if (IMSG_DATA_SIZE(imsg) != sizeof(*stat))
usr.sbin/ikectl/ikectl.c
449
stat = imsg->data;
usr.sbin/ikectl/ikectl.c
48
int monitor(struct imsg *);
usr.sbin/ikectl/ikectl.c
50
int show_string(struct imsg *);
usr.sbin/ikectl/ikectl.c
51
int show_stats(struct imsg *, int);
usr.sbin/ldapctl/ldapctl.c
252
struct imsg imsg;
usr.sbin/ldapctl/ldapctl.c
368
if ((n = imsgbuf_get(&ibuf, &imsg)) == -1)
usr.sbin/ldapctl/ldapctl.c
372
switch (imsg.hdr.type) {
usr.sbin/ldapctl/ldapctl.c
374
show_stats(&imsg);
usr.sbin/ldapctl/ldapctl.c
377
show_nsstats(&imsg);
usr.sbin/ldapctl/ldapctl.c
385
imsg_free(&imsg);
usr.sbin/ldapctl/ldapctl.c
394
show_stats(struct imsg *imsg)
usr.sbin/ldapctl/ldapctl.c
398
if (imsg_get_data(imsg, &st, sizeof(st)) == -1)
usr.sbin/ldapctl/ldapctl.c
434
show_nsstats(struct imsg *imsg)
usr.sbin/ldapctl/ldapctl.c
438
if (imsg_get_data(imsg, &nss, sizeof(nss)) == -1)
usr.sbin/ldapctl/ldapctl.c
57
void show_stats(struct imsg *imsg);
usr.sbin/ldapctl/ldapctl.c
59
void show_nsstats(struct imsg *imsg);
usr.sbin/ldapd/control.c
228
control_imsgev(struct imsgev *iev, int code, struct imsg *imsg)
usr.sbin/ldapd/control.c
247
log_debug("%s: got imsg %d on fd %d", __func__, imsg->hdr.type, fd);
usr.sbin/ldapd/control.c
248
switch (imsg->hdr.type) {
usr.sbin/ldapd/control.c
256
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(verbose))
usr.sbin/ldapd/control.c
259
bcopy(imsg->data, &verbose, sizeof(verbose));
usr.sbin/ldapd/control.c
266
log_warnx("%s: unexpected imsg %d", __func__, imsg->hdr.type);
usr.sbin/ldapd/control.c
46
static void control_imsgev(struct imsgev *iev, int code, struct imsg *imsg);
usr.sbin/ldapd/imsgev.c
109
struct imsg imsg;
usr.sbin/ldapd/imsgev.c
150
if ((n = imsgbuf_get(ibuf, &imsg)) == -1) {
usr.sbin/ldapd/imsgev.c
156
iev->callback(iev, IMSGEV_IMSG, &imsg);
usr.sbin/ldapd/imsgev.c
157
imsg_free(&imsg);
usr.sbin/ldapd/imsgev.c
38
void (*callback)(struct imsgev *, int, struct imsg *),
usr.sbin/ldapd/imsgev.h
34
void (*callback)(struct imsgev *, int, struct imsg *);
usr.sbin/ldapd/imsgev.h
45
int, struct imsg *), void (*)(struct imsgev *));
usr.sbin/ldapd/ldapd.c
265
ldapd_imsgev(struct imsgev *iev, int code, struct imsg *imsg)
usr.sbin/ldapd/ldapd.c
270
__func__, imsg->hdr.type, iev->ibuf.fd);
usr.sbin/ldapd/ldapd.c
271
switch (imsg->hdr.type) {
usr.sbin/ldapd/ldapd.c
273
ldapd_auth_request(iev, imsg);
usr.sbin/ldapd/ldapd.c
276
ldapd_log_verbose(imsg);
usr.sbin/ldapd/ldapd.c
279
ldapd_open_request(iev, imsg);
usr.sbin/ldapd/ldapd.c
283
__func__, imsg->hdr.type);
usr.sbin/ldapd/ldapd.c
344
ldapd_auth_request(struct imsgev *iev, struct imsg *imsg)
usr.sbin/ldapd/ldapd.c
346
struct auth_req *areq = imsg->data;
usr.sbin/ldapd/ldapd.c
349
if (imsg->hdr.len != sizeof(*areq) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldapd.c
366
ldapd_log_verbose(struct imsg *imsg)
usr.sbin/ldapd/ldapd.c
370
if (imsg->hdr.len != sizeof(verbose) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldapd.c
373
bcopy(imsg->data, &verbose, sizeof(verbose));
usr.sbin/ldapd/ldapd.c
378
ldapd_open_request(struct imsgev *iev, struct imsg *imsg)
usr.sbin/ldapd/ldapd.c
380
struct open_req *oreq = imsg->data;
usr.sbin/ldapd/ldapd.c
383
if (imsg->hdr.len != sizeof(*oreq) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldapd.c
48
static void ldapd_imsgev(struct imsgev *iev, int code, struct imsg *imsg);
usr.sbin/ldapd/ldapd.c
50
static void ldapd_auth_request(struct imsgev *iev, struct imsg *imsg);
usr.sbin/ldapd/ldapd.c
51
static void ldapd_open_request(struct imsgev *iev, struct imsg *imsg);
usr.sbin/ldapd/ldapd.c
52
static void ldapd_log_verbose(struct imsg *imsg);
usr.sbin/ldapd/ldape.c
37
static void ldape_auth_result(struct imsg *imsg);
usr.sbin/ldapd/ldape.c
38
static void ldape_open_result(struct imsg *imsg);
usr.sbin/ldapd/ldape.c
40
struct imsg *imsg);
usr.sbin/ldapd/ldape.c
483
ldape_imsgev(struct imsgev *iev, int code, struct imsg *imsg)
usr.sbin/ldapd/ldape.c
488
__func__, imsg->hdr.type, iev->ibuf.fd);
usr.sbin/ldapd/ldape.c
489
switch (imsg->hdr.type) {
usr.sbin/ldapd/ldape.c
491
ldape_auth_result(imsg);
usr.sbin/ldapd/ldape.c
494
ldape_open_result(imsg);
usr.sbin/ldapd/ldape.c
498
__func__, imsg->hdr.type);
usr.sbin/ldapd/ldape.c
531
ldape_auth_result(struct imsg *imsg)
usr.sbin/ldapd/ldape.c
534
struct auth_res *ares = imsg->data;
usr.sbin/ldapd/ldape.c
546
ldape_open_result(struct imsg *imsg)
usr.sbin/ldapd/ldape.c
549
struct open_req *oreq = imsg->data;
usr.sbin/ldapd/ldape.c
552
if (imsg->hdr.len != sizeof(*oreq) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldape.c
558
fd = imsg_get_fd(imsg);
usr.sbin/ldpctl/ldpctl.c
220
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpctl/ldpctl.c
227
done = show_interface_msg(&imsg, res);
usr.sbin/ldpctl/ldpctl.c
230
done = show_discovery_msg(&imsg, res);
usr.sbin/ldpctl/ldpctl.c
233
done = show_nbr_msg(&imsg, res);
usr.sbin/ldpctl/ldpctl.c
236
done = show_lib_msg(&imsg, res);
usr.sbin/ldpctl/ldpctl.c
239
done = show_fib_msg(&imsg, res);
usr.sbin/ldpctl/ldpctl.c
242
done = show_fib_interface_msg(&imsg);
usr.sbin/ldpctl/ldpctl.c
245
done = show_l2vpn_pw_msg(&imsg);
usr.sbin/ldpctl/ldpctl.c
248
done = show_l2vpn_binding_msg(&imsg);
usr.sbin/ldpctl/ldpctl.c
260
imsg_free(&imsg);
usr.sbin/ldpctl/ldpctl.c
328
show_interface_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/ldpctl/ldpctl.c
333
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
335
iface = imsg->data;
usr.sbin/ldpctl/ldpctl.c
362
show_discovery_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/ldpctl/ldpctl.c
367
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
369
adj = imsg->data;
usr.sbin/ldpctl/ldpctl.c
400
show_lib_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/ldpctl/ldpctl.c
405
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
407
rt = imsg->data;
usr.sbin/ldpctl/ldpctl.c
436
show_nbr_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/ldpctl/ldpctl.c
441
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
443
nbr = imsg->data;
usr.sbin/ldpctl/ldpctl.c
47
int show_interface_msg(struct imsg *, struct parse_result *);
usr.sbin/ldpctl/ldpctl.c
477
show_fib_msg(struct imsg *imsg, struct parse_result *res)
usr.sbin/ldpctl/ldpctl.c
48
int show_discovery_msg(struct imsg *, struct parse_result *);
usr.sbin/ldpctl/ldpctl.c
483
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
485
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ldpctl/ldpctl.c
487
k = imsg->data;
usr.sbin/ldpctl/ldpctl.c
50
int show_lib_msg(struct imsg *, struct parse_result *);
usr.sbin/ldpctl/ldpctl.c
51
int show_nbr_msg(struct imsg *, struct parse_result *);
usr.sbin/ldpctl/ldpctl.c
53
int show_fib_msg(struct imsg *, struct parse_result *);
usr.sbin/ldpctl/ldpctl.c
549
show_fib_interface_msg(struct imsg *imsg)
usr.sbin/ldpctl/ldpctl.c
55
int show_fib_interface_msg(struct imsg *);
usr.sbin/ldpctl/ldpctl.c
554
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
556
k = imsg->data;
usr.sbin/ldpctl/ldpctl.c
56
int show_l2vpn_pw_msg(struct imsg *);
usr.sbin/ldpctl/ldpctl.c
57
int show_l2vpn_binding_msg(struct imsg *);
usr.sbin/ldpctl/ldpctl.c
582
show_l2vpn_pw_msg(struct imsg *imsg)
usr.sbin/ldpctl/ldpctl.c
586
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
588
pw = imsg->data;
usr.sbin/ldpctl/ldpctl.c
605
show_l2vpn_binding_msg(struct imsg *imsg)
usr.sbin/ldpctl/ldpctl.c
609
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
611
pw = imsg->data;
usr.sbin/ldpctl/ldpctl.c
77
struct imsg imsg;
usr.sbin/ldpd/control.c
201
struct imsg imsg;
usr.sbin/ldpd/control.c
224
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/ldpd/control.c
232
switch (imsg.hdr.type) {
usr.sbin/ldpd/control.c
236
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ldpd/control.c
237
ldpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ldpd/control.c
242
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ldpd/control.c
243
ldpe_imsg_compose_parent(imsg.hdr.type,
usr.sbin/ldpd/control.c
244
imsg.hdr.pid, imsg.data,
usr.sbin/ldpd/control.c
245
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
248
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/ldpd/control.c
250
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/ldpd/control.c
262
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ldpd/control.c
263
ldpe_imsg_compose_lde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ldpd/control.c
264
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
270
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/control.c
274
nbr_clear_ctl(imsg.data);
usr.sbin/ldpd/control.c
277
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/control.c
282
ldpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ldpd/control.c
283
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
284
ldpe_imsg_compose_lde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ldpd/control.c
285
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
287
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ldpd/control.c
292
imsg.hdr.type);
usr.sbin/ldpd/control.c
295
imsg_free(&imsg);
usr.sbin/ldpd/control.c
302
control_imsg_relay(struct imsg *imsg)
usr.sbin/ldpd/control.c
306
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ldpd/control.c
309
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ldpd/control.c
310
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ldpd/control.h
33
int control_imsg_relay(struct imsg *);
usr.sbin/ldpd/kroute.c
448
kr_show_route(struct imsg *imsg)
usr.sbin/ldpd/kroute.c
456
switch (imsg->hdr.type) {
usr.sbin/ldpd/kroute.c
458
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ldpd/kroute.c
462
memcpy(&flags, imsg->data, sizeof(flags));
usr.sbin/ldpd/kroute.c
471
imsg->hdr.pid, &kn->r,
usr.sbin/ldpd/kroute.c
476
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ldpd/kroute.c
480
memcpy(&kr, imsg->data, sizeof(kr));
usr.sbin/ldpd/kroute.c
487
main_imsg_compose_ldpe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ldpd/kroute.c
494
main_imsg_compose_ldpe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
194
struct imsg imsg;
usr.sbin/ldpd/lde.c
217
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpd/lde.c
222
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
224
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
238
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(map))
usr.sbin/ldpd/lde.c
240
memcpy(&map, imsg.data, sizeof(map));
usr.sbin/ldpd/lde.c
242
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
249
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
268
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lde_addr))
usr.sbin/ldpd/lde.c
270
memcpy(&lde_addr, imsg.data, sizeof(lde_addr));
usr.sbin/ldpd/lde.c
272
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
285
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lde_addr))
usr.sbin/ldpd/lde.c
287
memcpy(&lde_addr, imsg.data, sizeof(lde_addr));
usr.sbin/ldpd/lde.c
289
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
302
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(nm))
usr.sbin/ldpd/lde.c
304
memcpy(&nm, imsg.data, sizeof(nm));
usr.sbin/ldpd/lde.c
306
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
329
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/lde.c
333
if (lde_nbr_find(imsg.hdr.peerid))
usr.sbin/ldpd/lde.c
336
lde_nbr_new(imsg.hdr.peerid, imsg.data);
usr.sbin/ldpd/lde.c
339
lde_nbr_del(lde_nbr_find(imsg.hdr.peerid));
usr.sbin/ldpd/lde.c
342
rt_dump(imsg.hdr.pid);
usr.sbin/ldpd/lde.c
345
imsg.hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
348
l2vpn_pw_ctl(imsg.hdr.pid);
usr.sbin/ldpd/lde.c
351
imsg.hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
354
l2vpn_binding_ctl(imsg.hdr.pid);
usr.sbin/ldpd/lde.c
357
imsg.hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
361
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ldpd/lde.c
366
imsg.hdr.type);
usr.sbin/ldpd/lde.c
369
imsg_free(&imsg);
usr.sbin/ldpd/lde.c
390
struct imsg imsg;
usr.sbin/ldpd/lde.c
413
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpd/lde.c
418
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
421
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ldpd/lde.c
425
memcpy(&kr, imsg.data, sizeof(kr));
usr.sbin/ldpd/lde.c
442
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
459
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/ldpd/lde.c
479
memcpy(nconf, imsg.data, sizeof(struct ldpd_conf));
usr.sbin/ldpd/lde.c
490
memcpy(niface, imsg.data, sizeof(struct iface));
usr.sbin/ldpd/lde.c
503
memcpy(ntnbr, imsg.data, sizeof(struct tnbr));
usr.sbin/ldpd/lde.c
510
memcpy(nnbrp, imsg.data, sizeof(struct nbr_params));
usr.sbin/ldpd/lde.c
517
memcpy(nl2vpn, imsg.data, sizeof(struct l2vpn));
usr.sbin/ldpd/lde.c
527
memcpy(nlif, imsg.data, sizeof(struct l2vpn_if));
usr.sbin/ldpd/lde.c
535
memcpy(npw, imsg.data, sizeof(struct l2vpn_pw));
usr.sbin/ldpd/lde.c
547
memcpy(auth, imsg.data, sizeof(*auth));
usr.sbin/ldpd/lde.c
558
imsg.hdr.type);
usr.sbin/ldpd/lde.c
561
imsg_free(&imsg);
usr.sbin/ldpd/ldpd.c
380
struct imsg imsg;
usr.sbin/ldpd/ldpd.c
400
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpd/ldpd.c
405
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpd.c
407
af = imsg.hdr.pid;
usr.sbin/ldpd/ldpd.c
424
kr_show_route(&imsg);
usr.sbin/ldpd/ldpd.c
427
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/ldpd/ldpd.c
428
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/ldpd/ldpd.c
429
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/ldpd/ldpd.c
430
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/ldpd/ldpd.c
436
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ldpd/ldpd.c
441
imsg.hdr.type);
usr.sbin/ldpd/ldpd.c
444
imsg_free(&imsg);
usr.sbin/ldpd/ldpd.c
460
struct imsg imsg;
usr.sbin/ldpd/ldpd.c
479
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpd/ldpd.c
484
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpd.c
486
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
489
if (kr_change(imsg.data))
usr.sbin/ldpd/ldpd.c
493
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
496
if (kr_delete(imsg.data))
usr.sbin/ldpd/ldpd.c
500
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
503
if (kmpw_set(imsg.data))
usr.sbin/ldpd/ldpd.c
508
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
511
if (kmpw_unset(imsg.data))
usr.sbin/ldpd/ldpd.c
517
imsg.hdr.type);
usr.sbin/ldpd/ldpd.c
520
imsg_free(&imsg);
usr.sbin/ldpd/ldpd.h
562
void kr_show_route(struct imsg *);
usr.sbin/ldpd/ldpe.c
222
struct imsg imsg;
usr.sbin/ldpd/ldpe.c
251
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpd/ldpe.c
256
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
258
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
261
kif = imsg.data;
usr.sbin/ldpd/ldpe.c
284
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
288
if_addr_add(imsg.data);
usr.sbin/ldpd/ldpe.c
291
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
295
if_addr_del(imsg.data);
usr.sbin/ldpd/ldpe.c
303
if ((fd = imsg_get_fd(&imsg)) == -1) {
usr.sbin/ldpd/ldpe.c
320
af = imsg.hdr.peerid;
usr.sbin/ldpd/ldpe.c
341
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
344
socket_type = imsg.data;
usr.sbin/ldpd/ldpe.c
348
disc_socket = imsg_get_fd(&imsg);
usr.sbin/ldpd/ldpe.c
351
edisc_socket = imsg_get_fd(&imsg);
usr.sbin/ldpd/ldpe.c
354
session_socket = imsg_get_fd(&imsg);
usr.sbin/ldpd/ldpe.c
359
af = imsg.hdr.peerid;
usr.sbin/ldpd/ldpe.c
390
memcpy(nconf, imsg.data, sizeof(struct ldpd_conf));
usr.sbin/ldpd/ldpe.c
401
memcpy(niface, imsg.data, sizeof(struct iface));
usr.sbin/ldpd/ldpe.c
414
memcpy(ntnbr, imsg.data, sizeof(struct tnbr));
usr.sbin/ldpd/ldpe.c
421
memcpy(nnbrp, imsg.data, sizeof(struct nbr_params));
usr.sbin/ldpd/ldpe.c
428
memcpy(nl2vpn, imsg.data, sizeof(struct l2vpn));
usr.sbin/ldpd/ldpe.c
438
memcpy(nlif, imsg.data, sizeof(struct l2vpn_if));
usr.sbin/ldpd/ldpe.c
446
memcpy(npw, imsg.data, sizeof(struct l2vpn_pw));
usr.sbin/ldpd/ldpe.c
458
memcpy(auth, imsg.data, sizeof(*auth));
usr.sbin/ldpd/ldpe.c
473
control_imsg_relay(&imsg);
usr.sbin/ldpd/ldpe.c
477
imsg.hdr.type);
usr.sbin/ldpd/ldpe.c
480
imsg_free(&imsg);
usr.sbin/ldpd/ldpe.c
496
struct imsg imsg;
usr.sbin/ldpd/ldpe.c
518
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ldpd/ldpe.c
523
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
528
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(map))
usr.sbin/ldpd/ldpe.c
530
memcpy(&map, imsg.data, sizeof(map));
usr.sbin/ldpd/ldpe.c
532
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ldpd/ldpe.c
541
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
560
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ldpd/ldpe.c
569
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
589
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(nm))
usr.sbin/ldpd/ldpe.c
591
memcpy(&nm, imsg.data, sizeof(nm));
usr.sbin/ldpd/ldpe.c
593
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ldpd/ldpe.c
608
control_imsg_relay(&imsg);
usr.sbin/ldpd/ldpe.c
612
imsg.hdr.type);
usr.sbin/ldpd/ldpe.c
615
imsg_free(&imsg);
usr.sbin/lpd/control.c
211
control_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/control.c
213
if (imsg == NULL) {
usr.sbin/lpd/control.c
220
log_imsg(proc, imsg);
usr.sbin/lpd/control.c
222
switch (imsg->hdr.type) {
usr.sbin/lpd/control.c
234
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/control.c
239
control_dispatch_client(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/control.c
241
if (imsg == NULL) {
usr.sbin/lpd/control.c
247
log_imsg(proc, imsg);
usr.sbin/lpd/control.c
249
switch (imsg->hdr.type) {
usr.sbin/lpd/control.c
252
imsg->hdr.type);
usr.sbin/lpd/control.c
49
static void control_dispatch_priv(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/control.c
50
static void control_dispatch_client(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/engine.c
105
log_imsg(proc, imsg);
usr.sbin/lpd/engine.c
107
switch (imsg->hdr.type) {
usr.sbin/lpd/engine.c
111
if ((fd = imsg_get_fd(imsg)) == -1)
usr.sbin/lpd/engine.c
135
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/engine.c
140
engine_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/engine.c
142
if (imsg == NULL) {
usr.sbin/lpd/engine.c
149
log_imsg(proc, imsg);
usr.sbin/lpd/engine.c
151
switch (imsg->hdr.type) {
usr.sbin/lpd/engine.c
154
resolver_dispatch_request(proc, imsg);
usr.sbin/lpd/engine.c
167
lpr_dispatch_frontend(proc, imsg);
usr.sbin/lpd/engine.c
172
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/engine.c
32
static void engine_dispatch_priv(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/engine.c
33
static void engine_dispatch_frontend(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/engine.c
93
engine_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/engine.c
98
if (imsg == NULL) {
usr.sbin/lpd/engine_lpr.c
170
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/engine_lpr.c
73
lpr_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg)
usr.sbin/lpd/engine_lpr.c
83
connid = imsg->hdr.peerid;
usr.sbin/lpd/engine_lpr.c
85
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend.c
248
frontend_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/frontend.c
253
if (imsg == NULL) {
usr.sbin/lpd/frontend.c
260
log_imsg(proc, imsg);
usr.sbin/lpd/frontend.c
262
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend.c
264
if ((fd = imsg_get_fd(imsg)) == -1)
usr.sbin/lpd/frontend.c
280
if ((fd = imsg_get_fd(imsg)) == -1)
usr.sbin/lpd/frontend.c
300
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/frontend.c
305
frontend_dispatch_engine(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/frontend.c
307
if (imsg == NULL) {
usr.sbin/lpd/frontend.c
314
log_imsg(proc, imsg);
usr.sbin/lpd/frontend.c
316
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend.c
320
resolver_dispatch_result(proc, imsg);
usr.sbin/lpd/frontend.c
329
lpr_dispatch_engine(proc, imsg);
usr.sbin/lpd/frontend.c
334
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/frontend.c
39
static void frontend_dispatch_priv(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/frontend.c
40
static void frontend_dispatch_engine(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/frontend_lpr.c
139
lpr_dispatch_engine(struct imsgproc *proc, struct imsg *imsg)
usr.sbin/lpd/frontend_lpr.c
146
key.id = imsg->hdr.peerid;
usr.sbin/lpd/frontend_lpr.c
155
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend_lpr.c
175
lpr_on_recvjob_file(conn, ack, sz, cf, imsg_get_fd(imsg));
usr.sbin/lpd/frontend_lpr.c
183
lpr_on_request(conn, imsg_get_fd(imsg), hostname, cmd);
usr.sbin/lpd/frontend_lpr.c
188
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/logmsg.c
144
log_imsg(struct imsgproc *proc, struct imsg *imsg)
usr.sbin/lpd/logmsg.c
146
if (imsg == NULL)
usr.sbin/lpd/logmsg.c
152
log_fmt_imsgtype(imsg->hdr.type),
usr.sbin/lpd/logmsg.c
153
imsg->hdr.len);
usr.sbin/lpd/lpd.c
352
priv_dispatch_control(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/lpd.c
354
if (imsg == NULL)
usr.sbin/lpd/lpd.c
358
log_imsg(proc, imsg);
usr.sbin/lpd/lpd.c
360
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
363
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
368
priv_dispatch_engine(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/lpd.c
372
if (imsg == NULL)
usr.sbin/lpd/lpd.c
376
log_imsg(proc, imsg);
usr.sbin/lpd/lpd.c
378
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
386
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
391
priv_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/lpd.c
393
if (imsg == NULL)
usr.sbin/lpd/lpd.c
397
log_imsg(proc, imsg);
usr.sbin/lpd/lpd.c
399
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
402
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
407
priv_dispatch_printer(struct imsgproc *proc, struct imsg *imsg, void *arg)
usr.sbin/lpd/lpd.c
409
if (imsg == NULL) {
usr.sbin/lpd/lpd.c
417
log_imsg(proc, imsg);
usr.sbin/lpd/lpd.c
419
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
422
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
45
static void priv_dispatch_control(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/lpd.c
46
static void priv_dispatch_engine(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/lpd.c
47
static void priv_dispatch_frontend(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/lpd.c
48
static void priv_dispatch_printer(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/lpd.h
122
void log_imsg(struct imsgproc *, struct imsg *);
usr.sbin/lpd/lpd.h
127
void lpr_dispatch_frontend(struct imsgproc *, struct imsg *);
usr.sbin/lpd/lpd.h
132
void lpr_dispatch_engine(struct imsgproc *, struct imsg *);
usr.sbin/lpd/lpd.h
147
void resolver_dispatch_request(struct imsgproc *, struct imsg *);
usr.sbin/lpd/lpd.h
148
void resolver_dispatch_result(struct imsgproc *, struct imsg *);
usr.sbin/lpd/proc.c
183
void(*cb)(struct imsgproc *, struct imsg *, void *), void *arg)
usr.sbin/lpd/proc.c
261
proc_callback(struct imsgproc *p, struct imsg *imsg)
usr.sbin/lpd/proc.c
263
if (imsg != NULL) {
usr.sbin/lpd/proc.c
264
p->m_in.pos = imsg->data;
usr.sbin/lpd/proc.c
265
p->m_in.end = p->m_in.pos + (imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/lpd/proc.c
272
p->cb(p, imsg, p->arg);
usr.sbin/lpd/proc.c
279
struct imsg imsg;
usr.sbin/lpd/proc.c
310
if ((n = imsgbuf_get(&p->imsgbuf, &imsg)) == -1) {
usr.sbin/lpd/proc.c
318
proc_callback(p, &imsg);
usr.sbin/lpd/proc.c
319
imsg_free(&imsg);
usr.sbin/lpd/proc.c
39
void (*cb)(struct imsgproc *, struct imsg *, void *);
usr.sbin/lpd/proc.c
62
static void proc_callback(struct imsgproc *, struct imsg *);
usr.sbin/lpd/proc.h
34
void(*)(struct imsgproc *, struct imsg *, void *), void *);
usr.sbin/lpd/resolver.c
130
resolver_dispatch_request(struct imsgproc *proc, struct imsg *imsg)
usr.sbin/lpd/resolver.c
141
reqid = imsg->hdr.peerid;
usr.sbin/lpd/resolver.c
143
switch (imsg->hdr.type) {
usr.sbin/lpd/resolver.c
215
fatalx("%s: %s", __func__, log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/resolver.c
220
resolver_dispatch_result(struct imsgproc *proc, struct imsg *imsg)
usr.sbin/lpd/resolver.c
228
key.id = imsg->hdr.peerid;
usr.sbin/lpd/resolver.c
231
fatalx("%s: unknown request %08x", __func__, imsg->hdr.peerid);
usr.sbin/lpd/resolver.c
233
switch (imsg->hdr.type) {
usr.sbin/npppctl/npppctl.c
65
static struct imsg ctl_imsg;
usr.sbin/npppd/npppd/control.c
252
struct imsg imsg;
usr.sbin/npppd/npppd/control.c
280
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/npppd/npppd/control.c
289
switch (imsg.hdr.type) {
usr.sbin/npppd/npppd/control.c
293
imsg_free(&imsg);
usr.sbin/npppd/npppd/control.c
299
switch (imsg.hdr.type) {
usr.sbin/npppd/npppd/control.c
308
if (imsg.hdr.type == IMSG_CTL_WHO)
usr.sbin/npppd/npppd/control.c
310
else if (imsg.hdr.type == IMSG_CTL_MONITOR)
usr.sbin/npppd/npppd/control.c
324
req = (struct npppd_disconnect_request *)imsg.data;
usr.sbin/npppd/npppd/control.c
337
imsg_free(&imsg);
usr.sbin/npppd/npppd/control.c
345
control_imsg_forward(struct imsg *imsg)
usr.sbin/npppd/npppd/control.c
351
imsg_compose(&c->iev.ibuf, imsg->hdr.type, 0,
usr.sbin/npppd/npppd/control.c
352
imsg->hdr.pid, -1, imsg->data,
usr.sbin/npppd/npppd/control.c
353
imsg->hdr.len - IMSG_HEADER_SIZE);
usr.sbin/npppd/npppd/control.c
51
void control_imsg_forward (struct imsg *);
usr.sbin/npppd/npppd/privsep.c
145
int imsg_read_and_get(struct imsgbuf *, struct imsg *);
usr.sbin/npppd/npppd/privsep.c
350
struct imsg imsg;
usr.sbin/npppd/npppd/privsep.c
365
if ((n = imsg_read_and_get(&privsep_ibuf, &imsg)) == -1)
usr.sbin/npppd/npppd/privsep.c
367
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r)) {
usr.sbin/npppd/npppd/privsep.c
371
r = imsg.data;
usr.sbin/npppd/npppd/privsep.c
401
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
406
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
415
struct imsg imsg;
usr.sbin/npppd/npppd/privsep.c
424
if (imsg_read_and_get(&privsep_ibuf, &imsg) == -1)
usr.sbin/npppd/npppd/privsep.c
427
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
430
r = imsg.data;
usr.sbin/npppd/npppd/privsep.c
437
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
474
struct imsg imsg;
usr.sbin/npppd/npppd/privsep.c
484
if (imsg_read_and_get(&privsep_ibuf, &imsg) == -1)
usr.sbin/npppd/npppd/privsep.c
486
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
489
r = imsg.data;
usr.sbin/npppd/npppd/privsep.c
495
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
519
struct imsg imsg;
usr.sbin/npppd/npppd/privsep.c
522
if (imsg_read_and_get(&privsep_ibuf, &imsg) == -1)
usr.sbin/npppd/npppd/privsep.c
524
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
527
r = imsg.data;
usr.sbin/npppd/npppd/privsep.c
532
retval = imsg_get_fd(&imsg);
usr.sbin/npppd/npppd/privsep.c
534
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
543
struct imsg imsg;
usr.sbin/npppd/npppd/privsep.c
546
if (imsg_read_and_get(&privsep_ibuf, &imsg) == -1) {
usr.sbin/npppd/npppd/privsep.c
550
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
553
r = imsg.data;
usr.sbin/npppd/npppd/privsep.c
558
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
584
struct imsg imsg;
usr.sbin/npppd/npppd/privsep.c
587
if (imsg_read_and_get(ibuf, &imsg) == -1)
usr.sbin/npppd/npppd/privsep.c
590
switch (imsg.hdr.type) {
usr.sbin/npppd/npppd/privsep.c
593
struct PRIVSEP_OPEN_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
596
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
614
struct PRIVSEP_SOCKET_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
617
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
634
struct PRIVSEP_UNLINK_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
637
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
652
struct PRIVSEP_BIND_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
656
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a) ||
usr.sbin/npppd/npppd/privsep.c
657
(fd = imsg_get_fd(&imsg)) < 0)
usr.sbin/npppd/npppd/privsep.c
674
struct PRIVSEP_GET_USER_INFO_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
685
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a)) {
usr.sbin/npppd/npppd/privsep.c
751
struct PRIVSEP_SENDTO_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
755
if (imsg.hdr.len < IMSG_HEADER_SIZE + sizeof(*a) ||
usr.sbin/npppd/npppd/privsep.c
756
imsg.hdr.len < IMSG_HEADER_SIZE +
usr.sbin/npppd/npppd/privsep.c
760
else if ((fd = imsg_get_fd(&imsg)) < 0)
usr.sbin/npppd/npppd/privsep.c
785
struct PRIVSEP_GET_IF_ADDR_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
790
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
818
struct PRIVSEP_SET_IF_ADDR_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
822
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
864
struct PRIVSEP_DEL_IF_ADDR_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
867
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
892
struct PRIVSEP_GET_IF_FLAGS_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
898
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
925
struct PRIVSEP_SET_IF_FLAGS_ARG *a = imsg.data;
usr.sbin/npppd/npppd/privsep.c
928
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
952
imsg_free(&imsg);
usr.sbin/npppd/npppd/privsep.c
957
imsg_read_and_get(struct imsgbuf *ibuf, struct imsg *imsg)
usr.sbin/npppd/npppd/privsep.c
964
if ((n = imsgbuf_get(ibuf, imsg)) < 0)
usr.sbin/ntpd/constraint.c
290
imsgbuf_read_one(struct imsgbuf *imsgbuf, struct imsg *imsg)
usr.sbin/ntpd/constraint.c
293
switch (imsgbuf_get(imsgbuf, imsg)) {
usr.sbin/ntpd/constraint.c
317
struct imsg imsg;
usr.sbin/ntpd/constraint.c
321
switch (imsgbuf_read_one(&cstr->ibuf, &imsg)) {
usr.sbin/ntpd/constraint.c
327
if (imsg.hdr.type != IMSG_CONSTRAINT_QUERY)
usr.sbin/ntpd/constraint.c
334
mlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ntpd/constraint.c
338
memcpy(am, imsg.data, sizeof(*am));
usr.sbin/ntpd/constraint.c
350
cstr->id = imsg.hdr.peerid;
usr.sbin/ntpd/constraint.c
354
dptr = imsg.data;
usr.sbin/ntpd/constraint.c
356
imsg_free(&imsg);
usr.sbin/ntpd/constraint.c
629
struct imsg imsg;
usr.sbin/ntpd/constraint.c
649
if ((n = imsgbuf_get(&cstr->ibuf, &imsg)) == -1) {
usr.sbin/ntpd/constraint.c
656
switch (imsg.hdr.type) {
usr.sbin/ntpd/constraint.c
658
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(tv))
usr.sbin/ntpd/constraint.c
665
imsg_compose(ibuf, imsg.hdr.type,
usr.sbin/ntpd/constraint.c
666
cstr->id, 0, -1, imsg.data, sizeof(tv));
usr.sbin/ntpd/constraint.c
671
imsg_free(&imsg);
usr.sbin/ntpd/control.c
199
struct imsg imsg;
usr.sbin/ntpd/control.c
228
if ((n = imsgbuf_get(&c->ibuf, &imsg)) == -1) {
usr.sbin/ntpd/control.c
235
switch (imsg.hdr.type) {
usr.sbin/ntpd/control.c
294
imsg_free(&imsg);
usr.sbin/ntpd/ntp.c
479
struct imsg imsg;
usr.sbin/ntpd/ntp.c
486
if ((n = imsgbuf_get(ibuf_main, &imsg)) == -1)
usr.sbin/ntpd/ntp.c
491
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp.c
493
if (imsg_get_data(&imsg, &synced, sizeof(synced)) == -1)
usr.sbin/ntpd/ntp.c
507
constraint_msg_result(imsg.hdr.peerid,
usr.sbin/ntpd/ntp.c
508
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ntpd/ntp.c
511
constraint_msg_close(imsg.hdr.peerid,
usr.sbin/ntpd/ntp.c
512
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ntpd/ntp.c
517
imsg_free(&imsg);
usr.sbin/ntpd/ntp.c
547
struct imsg imsg;
usr.sbin/ntpd/ntp.c
560
if ((n = imsgbuf_get(ibuf_dns, &imsg)) == -1)
usr.sbin/ntpd/ntp.c
565
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp.c
568
if (peer->id == imsg.hdr.peerid)
usr.sbin/ntpd/ntp.c
597
dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ntpd/ntp.c
606
p = (u_char *)imsg.data;
usr.sbin/ntpd/ntp.c
663
constraint_msg_dns(imsg.hdr.peerid,
usr.sbin/ntpd/ntp.c
664
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ntpd/ntp.c
667
if (imsg_get_data(&imsg, &probe, sizeof(probe)) == -1)
usr.sbin/ntpd/ntp.c
675
imsg_free(&imsg);
usr.sbin/ntpd/ntp_dns.c
142
struct imsg imsg;
usr.sbin/ntpd/ntp_dns.c
154
if ((n = imsgbuf_get(ibuf_dns, &imsg)) == -1)
usr.sbin/ntpd/ntp_dns.c
159
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp_dns.c
162
if (imsg.hdr.type == IMSG_HOST_DNS)
usr.sbin/ntpd/ntp_dns.c
166
name = imsg.data;
usr.sbin/ntpd/ntp_dns.c
167
if (imsg.hdr.len < 1 + IMSG_HEADER_SIZE)
usr.sbin/ntpd/ntp_dns.c
169
len = imsg.hdr.len - 1 - IMSG_HEADER_SIZE;
usr.sbin/ntpd/ntp_dns.c
176
buf = imsg_create(ibuf_dns, imsg.hdr.type,
usr.sbin/ntpd/ntp_dns.c
177
imsg.hdr.peerid, 0,
usr.sbin/ntpd/ntp_dns.c
209
imsg_free(&imsg);
usr.sbin/ntpd/ntpd.c
393
struct imsg imsg;
usr.sbin/ntpd/ntpd.c
401
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ntpd/ntpd.c
406
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntpd.c
408
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
410
memcpy(&d, imsg.data, sizeof(d));
usr.sbin/ntpd/ntpd.c
418
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
420
memcpy(&d, imsg.data, sizeof(d));
usr.sbin/ntpd/ntpd.c
424
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
430
memcpy(&d, imsg.data, sizeof(d));
usr.sbin/ntpd/ntpd.c
440
priv_constraint_msg(imsg.hdr.peerid,
usr.sbin/ntpd/ntpd.c
441
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE,
usr.sbin/ntpd/ntpd.c
445
priv_constraint_kill(imsg.hdr.peerid);
usr.sbin/ntpd/ntpd.c
450
imsg_free(&imsg);
usr.sbin/ntpd/ntpd.c
57
void show_status_msg(struct imsg *);
usr.sbin/ntpd/ntpd.c
58
void show_peer_msg(struct imsg *, int);
usr.sbin/ntpd/ntpd.c
59
void show_sensor_msg(struct imsg *, int);
usr.sbin/ntpd/ntpd.c
615
struct imsg imsg;
usr.sbin/ntpd/ntpd.c
715
if ((n = imsgbuf_get(ibuf_ctl, &imsg)) == -1)
usr.sbin/ntpd/ntpd.c
722
show_status_msg(&imsg);
usr.sbin/ntpd/ntpd.c
726
show_peer_msg(&imsg, 0);
usr.sbin/ntpd/ntpd.c
727
if (imsg.hdr.type ==
usr.sbin/ntpd/ntpd.c
732
show_sensor_msg(&imsg, 0);
usr.sbin/ntpd/ntpd.c
733
if (imsg.hdr.type ==
usr.sbin/ntpd/ntpd.c
738
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntpd.c
740
show_status_msg(&imsg);
usr.sbin/ntpd/ntpd.c
743
show_peer_msg(&imsg, 1);
usr.sbin/ntpd/ntpd.c
746
show_sensor_msg(&imsg, 1);
usr.sbin/ntpd/ntpd.c
763
imsg_free(&imsg);
usr.sbin/ntpd/ntpd.c
787
show_status_msg(struct imsg *imsg)
usr.sbin/ntpd/ntpd.c
793
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(struct ctl_show_status))
usr.sbin/ntpd/ntpd.c
796
cstatus = (struct ctl_show_status *)imsg->data;
usr.sbin/ntpd/ntpd.c
837
show_peer_msg(struct imsg *imsg, int calledfromshowall)
usr.sbin/ntpd/ntpd.c
844
if (imsg->hdr.type == IMSG_CTL_SHOW_PEERS_END) {
usr.sbin/ntpd/ntpd.c
845
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(cnt))
usr.sbin/ntpd/ntpd.c
847
memcpy(&cnt, imsg->data, sizeof(cnt));
usr.sbin/ntpd/ntpd.c
853
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(struct ctl_show_peer))
usr.sbin/ntpd/ntpd.c
856
cpeer = (struct ctl_show_peer *)imsg->data;
usr.sbin/ntpd/ntpd.c
888
show_sensor_msg(struct imsg *imsg, int calledfromshowall)
usr.sbin/ntpd/ntpd.c
894
if (imsg->hdr.type == IMSG_CTL_SHOW_SENSORS_END) {
usr.sbin/ntpd/ntpd.c
895
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(cnt))
usr.sbin/ntpd/ntpd.c
897
memcpy(&cnt, imsg->data, sizeof(cnt));
usr.sbin/ntpd/ntpd.c
903
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(struct ctl_show_sensor))
usr.sbin/ntpd/ntpd.c
906
csensor = (struct ctl_show_sensor *)imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
1011
show_nbr_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
1016
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1018
nbr = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
1053
show_nbr_detail_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
1057
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1059
nbr = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
1090
show_rib_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
1095
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1097
rt = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
1187
show_rib_detail_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
1193
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1195
rt = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
1278
show_fib_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
1283
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1285
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ospf6ctl/ospf6ctl.c
1287
k = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
264
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6ctl/ospf6ctl.c
271
done = show_summary_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
274
done = show_interface_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
277
done = show_interface_detail_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
280
done = show_nbr_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
283
done = show_nbr_detail_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
288
done = show_database_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
297
done = show_db_msg_detail(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
300
done = show_rib_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
303
done = show_rib_detail_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
306
done = show_fib_msg(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
318
imsg_free(&imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
328
show_summary_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
333
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
335
sum = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
346
sumarea = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
384
show_interface_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
389
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
391
iface = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
414
show_interface_detail_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
418
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
420
iface = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
43
int show_summary_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
45
int show_interface_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
46
int show_interface_detail_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
53
int show_database_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
60
int show_db_msg_detail(struct imsg *imsg);
usr.sbin/ospf6ctl/ospf6ctl.c
61
int show_nbr_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
614
show_database_msg(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
623
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
626
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
63
int show_nbr_detail_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
639
area = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
64
int show_rib_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
644
iface = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
67
int show_rib_detail_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
69
int show_fib_msg(struct imsg *);
usr.sbin/ospf6ctl/ospf6ctl.c
770
show_db_msg_detail(struct imsg *imsg)
usr.sbin/ospf6ctl/ospf6ctl.c
789
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
791
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
828
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
859
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
882
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
91
struct imsg imsg;
usr.sbin/ospf6ctl/ospf6ctl.c
936
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
970
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
980
lsa = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
992
area = imsg->data;
usr.sbin/ospf6ctl/ospf6ctl.c
997
iface = imsg->data;
usr.sbin/ospf6d/control.c
249
struct imsg imsg;
usr.sbin/ospf6d/control.c
272
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/ospf6d/control.c
280
switch (imsg.hdr.type) {
usr.sbin/ospf6d/control.c
283
ospfe_fib_update(imsg.hdr.type);
usr.sbin/ospf6d/control.c
287
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospf6d/control.c
288
ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ospf6d/control.c
292
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospf6d/control.c
293
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
294
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
297
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/ospf6d/control.c
299
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/ospf6d/control.c
316
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospf6d/control.c
317
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
318
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
324
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/control.c
329
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
330
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
331
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
332
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
334
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ospf6d/control.c
339
"error handling imsg %d", imsg.hdr.type);
usr.sbin/ospf6d/control.c
342
imsg_free(&imsg);
usr.sbin/ospf6d/control.c
349
control_imsg_relay(struct imsg *imsg)
usr.sbin/ospf6d/control.c
353
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ospf6d/control.c
356
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ospf6d/control.c
357
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ospf6d/control.h
36
int control_imsg_relay(struct imsg *);
usr.sbin/ospf6d/kroute.c
469
kr_show_route(struct imsg *imsg)
usr.sbin/ospf6d/kroute.c
476
switch (imsg->hdr.type) {
usr.sbin/ospf6d/kroute.c
478
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ospf6d/kroute.c
482
memcpy(&flags, imsg->data, sizeof(flags));
usr.sbin/ospf6d/kroute.c
488
imsg->hdr.pid,
usr.sbin/ospf6d/kroute.c
494
if (imsg->hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/kroute.c
499
memcpy(&addr, imsg->data, sizeof(addr));
usr.sbin/ospf6d/kroute.c
502
main_imsg_compose_ospfe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ospf6d/kroute.c
510
main_imsg_compose_ospfe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ospf6d/ospf6d.c
340
struct imsg imsg;
usr.sbin/ospf6d/ospf6d.c
360
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6d/ospf6d.c
365
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospf6d.c
383
kr_show_route(&imsg);
usr.sbin/ospf6d/ospf6d.c
386
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(dmsg))
usr.sbin/ospf6d/ospf6d.c
388
memcpy(&dmsg, imsg.data, sizeof(dmsg));
usr.sbin/ospf6d/ospf6d.c
393
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ospf6d/ospf6d.c
398
imsg.hdr.type);
usr.sbin/ospf6d/ospf6d.c
401
imsg_free(&imsg);
usr.sbin/ospf6d/ospf6d.c
417
struct imsg imsg;
usr.sbin/ospf6d/ospf6d.c
436
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6d/ospf6d.c
441
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospf6d.c
443
count = (imsg.hdr.len - IMSG_HEADER_SIZE) /
usr.sbin/ospf6d/ospf6d.c
445
if (kr_change(imsg.data, count))
usr.sbin/ospf6d/ospf6d.c
450
if (kr_delete(imsg.data))
usr.sbin/ospf6d/ospf6d.c
456
imsg.hdr.type);
usr.sbin/ospf6d/ospf6d.c
459
imsg_free(&imsg);
usr.sbin/ospf6d/ospf6d.h
551
void kr_show_route(struct imsg *);
usr.sbin/ospf6d/ospfe.c
258
struct imsg imsg;
usr.sbin/ospf6d/ospfe.c
279
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6d/ospfe.c
284
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospfe.c
286
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/ospfe.c
289
ifp = imsg.data;
usr.sbin/ospf6d/ospfe.c
334
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/ospfe.c
337
ifc = imsg.data;
usr.sbin/ospf6d/ospfe.c
354
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/ospfe.c
357
ifc = imsg.data;
usr.sbin/ospf6d/ospfe.c
381
memcpy(noeconf, imsg.data, sizeof(struct ospfd_conf));
usr.sbin/ospf6d/ospfe.c
389
memcpy(narea, imsg.data, sizeof(struct area));
usr.sbin/ospf6d/ospfe.c
411
control_imsg_relay(&imsg);
usr.sbin/ospf6d/ospfe.c
414
if ((fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/ospf6d/ospfe.c
424
imsg.hdr.type);
usr.sbin/ospf6d/ospfe.c
427
imsg_free(&imsg);
usr.sbin/ospf6d/ospfe.c
451
struct imsg imsg;
usr.sbin/ospf6d/ospfe.c
472
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6d/ospfe.c
477
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospfe.c
479
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
485
memcpy(lhp, imsg.data, sizeof(*lhp));
usr.sbin/ospf6d/ospfe.c
489
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
502
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
510
memcpy(lhp, imsg.data, sizeof(*lhp));
usr.sbin/ospf6d/ospfe.c
514
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
526
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
530
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/ospfe.c
534
memcpy(&lsa_hdr, imsg.data, sizeof(lsa_hdr));
usr.sbin/ospf6d/ospfe.c
536
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospf6d/ospfe.c
549
&lsa_hdr, imsg.data);
usr.sbin/ospf6d/ospfe.c
560
memcpy(&lsa_link, (char *)imsg.data +
usr.sbin/ospf6d/ospfe.c
569
&lsa_hdr, imsg.data);
usr.sbin/ospf6d/ospfe.c
578
&lsa_hdr, imsg.data);
usr.sbin/ospf6d/ospfe.c
618
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/ospfe.c
623
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
630
if (imsg.hdr.type == IMSG_LS_SNAP &&
usr.sbin/ospf6d/ospfe.c
634
memcpy(&age, imsg.data, sizeof(age));
usr.sbin/ospf6d/ospfe.c
635
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospf6d/ospfe.c
638
ls_retrans_list_add(nbr, imsg.data, 0, 0);
usr.sbin/ospf6d/ospfe.c
640
ls_retrans_list_add(nbr, imsg.data, 0, 1);
usr.sbin/ospf6d/ospfe.c
652
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
659
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lsa_hdr))
usr.sbin/ospf6d/ospfe.c
661
memcpy(&lsa_hdr, imsg.data, sizeof(lsa_hdr));
usr.sbin/ospf6d/ospfe.c
672
send_direct_ack(nbr->iface, nbr->addr, imsg.data,
usr.sbin/ospf6d/ospfe.c
673
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/ospfe.c
677
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
688
memcpy(&ar, imsg.data, sizeof(ar));
usr.sbin/ospf6d/ospfe.c
698
memcpy(&ar, imsg.data, sizeof(ar));
usr.sbin/ospf6d/ospfe.c
722
control_imsg_relay(&imsg);
usr.sbin/ospf6d/ospfe.c
726
imsg.hdr.type);
usr.sbin/ospf6d/ospfe.c
729
imsg_free(&imsg);
usr.sbin/ospf6d/rde.c
265
struct imsg imsg;
usr.sbin/ospf6d/rde.c
298
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6d/rde.c
303
switch (imsg.hdr.type) {
usr.sbin/ospf6d/rde.c
305
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rn))
usr.sbin/ospf6d/rde.c
307
memcpy(&rn, imsg.data, sizeof(rn));
usr.sbin/ospf6d/rde.c
309
if (rde_nbr_new(imsg.hdr.peerid, &rn) == NULL)
usr.sbin/ospf6d/rde.c
314
rde_nbr_del(rde_nbr_find(imsg.hdr.peerid));
usr.sbin/ospf6d/rde.c
317
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospf6d/rde.c
319
memcpy(&state, imsg.data, sizeof(state));
usr.sbin/ospf6d/rde.c
321
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
338
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospf6d/rde.c
342
if (area->id.s_addr == imsg.hdr.peerid)
usr.sbin/ospf6d/rde.c
347
memcpy(&state, imsg.data, sizeof(state));
usr.sbin/ospf6d/rde.c
351
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
357
imsg_compose_event(iev_ospfe, IMSG_DB_END, imsg.hdr.peerid,
usr.sbin/ospf6d/rde.c
361
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
365
buf = imsg.data;
usr.sbin/ospf6d/rde.c
366
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/rde.c
385
imsg.hdr.peerid, 0, -1, &lsa_hdr,
usr.sbin/ospf6d/rde.c
392
"packet", imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
395
imsg.hdr.peerid, 0, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
398
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
402
buf = imsg.data;
usr.sbin/ospf6d/rde.c
403
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/rde.c
412
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospf6d/rde.c
417
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospf6d/rde.c
423
"packet", imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
426
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
430
lsa = malloc(imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/rde.c
433
memcpy(lsa, imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/rde.c
436
imsg.hdr.len - IMSG_HEADER_SIZE)) {
usr.sbin/ospf6d/rde.c
472
imsg.hdr.peerid, 0, -1, lsa,
usr.sbin/ospf6d/rde.c
494
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospf6d/rde.c
514
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospf6d/rde.c
519
imsg.hdr.peerid, 0, -1, &lsa->hdr,
usr.sbin/ospf6d/rde.c
525
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
529
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
532
memcpy(&lsa_hdr, imsg.data, sizeof(lsa_hdr));
usr.sbin/ospf6d/rde.c
559
if (imsg.hdr.len != IMSG_HEADER_SIZE &&
usr.sbin/ospf6d/rde.c
560
imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(aid)) {
usr.sbin/ospf6d/rde.c
564
if (imsg.hdr.len == IMSG_HEADER_SIZE) {
usr.sbin/ospf6d/rde.c
566
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospf6d/rde.c
567
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
569
lsa_dump(&asext_tree, imsg.hdr.type,
usr.sbin/ospf6d/rde.c
570
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
572
memcpy(&aid, imsg.data, sizeof(aid));
usr.sbin/ospf6d/rde.c
574
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospf6d/rde.c
575
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
578
imsg.hdr.type,
usr.sbin/ospf6d/rde.c
579
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
583
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
588
0, imsg.hdr.pid, -1, area, sizeof(*area));
usr.sbin/ospf6d/rde.c
590
rt_dump(area->id, imsg.hdr.pid, RIB_RTR);
usr.sbin/ospf6d/rde.c
591
rt_dump(area->id, imsg.hdr.pid, RIB_NET);
usr.sbin/ospf6d/rde.c
594
rt_dump(aid, imsg.hdr.pid, RIB_EXT);
usr.sbin/ospf6d/rde.c
597
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
600
rde_send_summary(imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
602
rde_send_summary_area(area, imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
604
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
607
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
611
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
614
memcpy(&nbr->iface->state, imsg.data, sizeof(int));
usr.sbin/ospf6d/rde.c
621
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ospf6d/rde.c
626
imsg.hdr.type);
usr.sbin/ospf6d/rde.c
629
imsg_free(&imsg);
usr.sbin/ospf6d/rde.c
648
struct imsg imsg;
usr.sbin/ospf6d/rde.c
670
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospf6d/rde.c
675
switch (imsg.hdr.type) {
usr.sbin/ospf6d/rde.c
677
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ospf6d/rde.c
682
memcpy(&kr, imsg.data, sizeof(kr));
usr.sbin/ospf6d/rde.c
686
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ospf6d/rde.c
691
memcpy(&kr, imsg.data, sizeof(kr));
usr.sbin/ospf6d/rde.c
695
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
699
ifp = imsg.data;
usr.sbin/ospf6d/rde.c
738
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
741
ifc = imsg.data;
usr.sbin/ospf6d/rde.c
759
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
762
ifc = imsg.data;
usr.sbin/ospf6d/rde.c
787
memcpy(nconf, imsg.data, sizeof(struct ospfd_conf));
usr.sbin/ospf6d/rde.c
795
memcpy(narea, imsg.data, sizeof(struct area));
usr.sbin/ospf6d/rde.c
809
imsg.hdr.type);
usr.sbin/ospf6d/rde.c
812
imsg_free(&imsg);
usr.sbin/ospfctl/ospfctl.c
231
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfctl/ospfctl.c
236
done = show(&imsg, res);
usr.sbin/ospfctl/ospfctl.c
237
imsg_free(&imsg);
usr.sbin/ospfctl/ospfctl.c
251
show(struct imsg *imsg, struct parse_result *res)
usr.sbin/ospfctl/ospfctl.c
266
switch (imsg->hdr.type) {
usr.sbin/ospfctl/ospfctl.c
268
sum = imsg->data;
usr.sbin/ospfctl/ospfctl.c
272
sumarea = imsg->data;
usr.sbin/ospfctl/ospfctl.c
276
ctliface = imsg->data;
usr.sbin/ospfctl/ospfctl.c
283
nbr = imsg->data;
usr.sbin/ospfctl/ospfctl.c
290
rt = imsg->data;
usr.sbin/ospfctl/ospfctl.c
297
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ospfctl/ospfctl.c
299
k = imsg->data;
usr.sbin/ospfctl/ospfctl.c
303
kif = imsg->data;
usr.sbin/ospfctl/ospfctl.c
312
lsa = imsg->data;
usr.sbin/ospfctl/ospfctl.c
318
lsa_hdr = imsg->data;
usr.sbin/ospfctl/ospfctl.c
323
if (imsg_get_data(imsg, &area_id, sizeof(area_id)) == -1)
usr.sbin/ospfctl/ospfctl.c
328
if (imsg_get_data(imsg, ifname, sizeof(ifname)) == -1)
usr.sbin/ospfctl/ospfctl.c
335
warnx("unknown imsg %d received", imsg->hdr.type);
usr.sbin/ospfctl/ospfctl.c
44
int show(struct imsg *, struct parse_result *);
usr.sbin/ospfctl/ospfctl.c
64
struct imsg imsg;
usr.sbin/ospfd/control.c
249
struct imsg imsg;
usr.sbin/ospfd/control.c
272
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/ospfd/control.c
280
switch (imsg.hdr.type) {
usr.sbin/ospfd/control.c
283
ospfe_fib_update(imsg.hdr.type);
usr.sbin/ospfd/control.c
287
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospfd/control.c
288
ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ospfd/control.c
293
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospfd/control.c
294
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospfd/control.c
295
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
298
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/ospfd/control.c
300
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/ospfd/control.c
316
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospfd/control.c
317
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospfd/control.c
318
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
324
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/control.c
329
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospfd/control.c
330
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
331
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospfd/control.c
332
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
334
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ospfd/control.c
339
"error handling imsg %d", imsg.hdr.type);
usr.sbin/ospfd/control.c
342
imsg_free(&imsg);
usr.sbin/ospfd/control.c
349
control_imsg_relay(struct imsg *imsg)
usr.sbin/ospfd/control.c
353
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ospfd/control.c
356
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ospfd/control.c
357
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ospfd/control.h
36
int control_imsg_relay(struct imsg *);
usr.sbin/ospfd/kroute.c
467
kr_show_route(struct imsg *imsg)
usr.sbin/ospfd/kroute.c
474
switch (imsg->hdr.type) {
usr.sbin/ospfd/kroute.c
476
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ospfd/kroute.c
480
memcpy(&flags, imsg->data, sizeof(flags));
usr.sbin/ospfd/kroute.c
486
imsg->hdr.pid,
usr.sbin/ospfd/kroute.c
492
if (imsg->hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/kroute.c
497
memcpy(&addr, imsg->data, sizeof(addr));
usr.sbin/ospfd/kroute.c
501
main_imsg_compose_ospfe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ospfd/kroute.c
509
main_imsg_compose_ospfe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ospfd/ospfd.c
359
struct imsg imsg;
usr.sbin/ospfd/ospfd.c
381
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfd/ospfd.c
386
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfd.c
404
kr_show_route(&imsg);
usr.sbin/ospfd/ospfd.c
407
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/ospfd/ospfd.c
408
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/ospfd/ospfd.c
409
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/ospfd/ospfd.c
410
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/ospfd/ospfd.c
415
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(dmsg))
usr.sbin/ospfd/ospfd.c
417
memcpy(&dmsg, imsg.data, sizeof(dmsg));
usr.sbin/ospfd/ospfd.c
422
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ospfd/ospfd.c
427
imsg.hdr.type);
usr.sbin/ospfd/ospfd.c
430
imsg_free(&imsg);
usr.sbin/ospfd/ospfd.c
446
struct imsg imsg;
usr.sbin/ospfd/ospfd.c
467
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfd/ospfd.c
472
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfd.c
474
count = (imsg.hdr.len - IMSG_HEADER_SIZE) /
usr.sbin/ospfd/ospfd.c
476
if (kr_change(imsg.data, count))
usr.sbin/ospfd/ospfd.c
481
if (kr_delete(imsg.data))
usr.sbin/ospfd/ospfd.c
487
imsg.hdr.type);
usr.sbin/ospfd/ospfd.c
490
imsg_free(&imsg);
usr.sbin/ospfd/ospfd.h
591
void kr_show_route(struct imsg *);
usr.sbin/ospfd/ospfe.c
268
struct imsg imsg;
usr.sbin/ospfd/ospfe.c
293
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfd/ospfe.c
298
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfe.c
300
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/ospfe.c
303
kif = imsg.data;
usr.sbin/ospfd/ospfe.c
356
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/ospfe.c
359
ifc = imsg.data;
usr.sbin/ospfd/ospfe.c
385
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/ospfe.c
388
ifc = imsg.data;
usr.sbin/ospfd/ospfe.c
408
memcpy(noeconf, imsg.data, sizeof(struct ospfd_conf));
usr.sbin/ospfd/ospfe.c
416
memcpy(narea, imsg.data, sizeof(struct area));
usr.sbin/ospfd/ospfe.c
428
memcpy(niface, imsg.data, sizeof(struct iface));
usr.sbin/ospfd/ospfe.c
439
if (imsg_get_data(&imsg, md.key, sizeof(md.key)) == -1)
usr.sbin/ospfd/ospfe.c
443
md.keyid = imsg_get_id(&imsg);
usr.sbin/ospfd/ospfe.c
462
control_imsg_relay(&imsg);
usr.sbin/ospfd/ospfe.c
465
if ((fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/ospfd/ospfe.c
475
imsg.hdr.type);
usr.sbin/ospfd/ospfe.c
478
imsg_free(&imsg);
usr.sbin/ospfd/ospfe.c
501
struct imsg imsg;
usr.sbin/ospfd/ospfe.c
522
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfd/ospfe.c
527
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfe.c
529
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
544
memcpy(lhp, imsg.data, sizeof(*lhp));
usr.sbin/ospfd/ospfe.c
548
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
565
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
576
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
584
memcpy(lhp, imsg.data, sizeof(*lhp));
usr.sbin/ospfd/ospfe.c
588
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
600
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
604
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/ospfe.c
608
memcpy(&lsa_hdr, imsg.data, sizeof(lsa_hdr));
usr.sbin/ospfd/ospfe.c
610
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospfd/ospfe.c
623
&lsa_hdr, imsg.data);
usr.sbin/ospfd/ospfe.c
631
&lsa_hdr, imsg.data);
usr.sbin/ospfd/ospfe.c
640
&lsa_hdr, imsg.data);
usr.sbin/ospfd/ospfe.c
680
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/ospfe.c
685
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
692
if (imsg.hdr.type == IMSG_LS_SNAP &&
usr.sbin/ospfd/ospfe.c
696
memcpy(&age, imsg.data, sizeof(age));
usr.sbin/ospfd/ospfe.c
697
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospfd/ospfe.c
700
ls_retrans_list_add(nbr, imsg.data, 0, 0);
usr.sbin/ospfd/ospfe.c
702
ls_retrans_list_add(nbr, imsg.data, 0, 1);
usr.sbin/ospfd/ospfe.c
714
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
721
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lsa_hdr))
usr.sbin/ospfd/ospfe.c
723
memcpy(&lsa_hdr, imsg.data, sizeof(lsa_hdr));
usr.sbin/ospfd/ospfe.c
734
send_direct_ack(nbr->iface, nbr->addr, imsg.data,
usr.sbin/ospfd/ospfe.c
735
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/ospfe.c
739
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
750
memcpy(&ar, imsg.data, sizeof(ar));
usr.sbin/ospfd/ospfe.c
760
memcpy(&ar, imsg.data, sizeof(ar));
usr.sbin/ospfd/ospfe.c
783
control_imsg_relay(&imsg);
usr.sbin/ospfd/ospfe.c
787
imsg.hdr.type);
usr.sbin/ospfd/ospfe.c
790
imsg_free(&imsg);
usr.sbin/ospfd/rde.c
252
struct imsg imsg;
usr.sbin/ospfd/rde.c
288
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfd/rde.c
293
switch (imsg.hdr.type) {
usr.sbin/ospfd/rde.c
295
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rn))
usr.sbin/ospfd/rde.c
297
memcpy(&rn, imsg.data, sizeof(rn));
usr.sbin/ospfd/rde.c
299
if (rde_nbr_new(imsg.hdr.peerid, &rn) == NULL)
usr.sbin/ospfd/rde.c
304
rde_nbr_del(rde_nbr_find(imsg.hdr.peerid));
usr.sbin/ospfd/rde.c
307
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(addr))
usr.sbin/ospfd/rde.c
309
memcpy(&addr, imsg.data, sizeof(addr));
usr.sbin/ospfd/rde.c
311
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
318
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospfd/rde.c
320
memcpy(&state, imsg.data, sizeof(state));
usr.sbin/ospfd/rde.c
322
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
331
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(u_int8_t))
usr.sbin/ospfd/rde.c
333
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
336
nbr->capa_options = *(u_int8_t *)imsg.data;
usr.sbin/ospfd/rde.c
339
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospfd/rde.c
343
if (area->id.s_addr == imsg.hdr.peerid)
usr.sbin/ospfd/rde.c
348
memcpy(&state, imsg.data, sizeof(state));
usr.sbin/ospfd/rde.c
352
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
358
imsg_compose_event(iev_ospfe, IMSG_DB_END, imsg.hdr.peerid,
usr.sbin/ospfd/rde.c
362
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
366
buf = imsg.data;
usr.sbin/ospfd/rde.c
368
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/rde.c
392
imsg.hdr.peerid, 0, -1, &lsa_hdr,
usr.sbin/ospfd/rde.c
399
"packet", imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
403
imsg.hdr.peerid, 0, -1, NULL, 0);
usr.sbin/ospfd/rde.c
406
imsg.hdr.peerid, 0, -1, NULL, 0);
usr.sbin/ospfd/rde.c
409
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
413
buf = imsg.data;
usr.sbin/ospfd/rde.c
414
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/rde.c
425
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospfd/rde.c
430
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospfd/rde.c
436
"packet", imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
439
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
443
lsa = malloc(imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/rde.c
446
memcpy(lsa, imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/rde.c
449
imsg.hdr.len - IMSG_HEADER_SIZE)) {
usr.sbin/ospfd/rde.c
485
imsg.hdr.peerid, 0, -1, lsa,
usr.sbin/ospfd/rde.c
507
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospfd/rde.c
527
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospfd/rde.c
532
imsg.hdr.peerid, 0, -1, &lsa->hdr,
usr.sbin/ospfd/rde.c
538
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
542
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/rde.c
545
memcpy(&lsa_hdr, imsg.data, sizeof(lsa_hdr));
usr.sbin/ospfd/rde.c
571
if (imsg.hdr.len != IMSG_HEADER_SIZE &&
usr.sbin/ospfd/rde.c
572
imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(aid)) {
usr.sbin/ospfd/rde.c
576
if (imsg.hdr.len == IMSG_HEADER_SIZE) {
usr.sbin/ospfd/rde.c
578
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospfd/rde.c
579
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
581
lsa_dump(&asext_tree, imsg.hdr.type,
usr.sbin/ospfd/rde.c
582
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
584
memcpy(&aid, imsg.data, sizeof(aid));
usr.sbin/ospfd/rde.c
586
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospfd/rde.c
587
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
590
imsg.hdr.type,
usr.sbin/ospfd/rde.c
591
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
595
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospfd/rde.c
600
0, imsg.hdr.pid, -1,
usr.sbin/ospfd/rde.c
603
rt_dump(area->id, imsg.hdr.pid, RIB_RTR);
usr.sbin/ospfd/rde.c
604
rt_dump(area->id, imsg.hdr.pid, RIB_NET);
usr.sbin/ospfd/rde.c
607
rt_dump(aid, imsg.hdr.pid, RIB_EXT);
usr.sbin/ospfd/rde.c
610
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospfd/rde.c
613
rde_send_summary(imsg.hdr.pid);
usr.sbin/ospfd/rde.c
615
rde_send_summary_area(area, imsg.hdr.pid);
usr.sbin/ospfd/rde.c
617
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospfd/rde.c
621
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ospfd/rde.c
626
imsg.hdr.type);
usr.sbin/ospfd/rde.c
629
imsg_free(&imsg);
usr.sbin/ospfd/rde.c
645
struct imsg imsg;
usr.sbin/ospfd/rde.c
670
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ospfd/rde.c
675
switch (imsg.hdr.type) {
usr.sbin/ospfd/rde.c
677
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(rr)) {
usr.sbin/ospfd/rde.c
682
memcpy(&rr, imsg.data, sizeof(rr));
usr.sbin/ospfd/rde.c
686
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(rr)) {
usr.sbin/ospfd/rde.c
691
memcpy(&rr, imsg.data, sizeof(rr));
usr.sbin/ospfd/rde.c
698
memcpy(nconf, imsg.data, sizeof(struct ospfd_conf));
usr.sbin/ospfd/rde.c
706
memcpy(narea, imsg.data, sizeof(struct area));
usr.sbin/ospfd/rde.c
718
memcpy(nred, imsg.data, sizeof(struct redistribute));
usr.sbin/ospfd/rde.c
725
memcpy(niface, imsg.data, sizeof(struct iface));
usr.sbin/ospfd/rde.c
742
imsg.hdr.type);
usr.sbin/ospfd/rde.c
745
imsg_free(&imsg);
usr.sbin/ractl/ractl.c
137
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ractl/ractl.c
146
imsg_free(&imsg);
usr.sbin/ractl/ractl.c
63
struct imsg imsg;
usr.sbin/rad/control.c
228
struct imsg imsg;
usr.sbin/rad/control.c
250
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/rad/control.c
257
switch (imsg.hdr.type) {
usr.sbin/rad/control.c
259
frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
usr.sbin/rad/control.c
262
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
usr.sbin/rad/control.c
266
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/rad/control.c
267
imsg.data, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/control.c
268
frontend_imsg_compose_engine(imsg.hdr.type,
usr.sbin/rad/control.c
269
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/control.c
271
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/rad/control.c
276
imsg.hdr.type);
usr.sbin/rad/control.c
279
imsg_free(&imsg);
usr.sbin/rad/control.c
286
control_imsg_relay(struct imsg *imsg)
usr.sbin/rad/control.c
290
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/rad/control.c
293
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/rad/control.c
294
-1, imsg->data, IMSG_DATA_SIZE(*imsg)));
usr.sbin/rad/control.h
23
int control_imsg_relay(struct imsg *);
usr.sbin/rad/engine.c
190
struct imsg imsg;
usr.sbin/rad/engine.c
213
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/rad/engine.c
218
switch (imsg.hdr.type) {
usr.sbin/rad/engine.c
220
if (IMSG_DATA_SIZE(imsg) != sizeof(ra_rs))
usr.sbin/rad/engine.c
222
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
223
memcpy(&ra_rs, imsg.data, sizeof(ra_rs));
usr.sbin/rad/engine.c
227
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
usr.sbin/rad/engine.c
229
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
230
memcpy(&if_index, imsg.data, sizeof(if_index));
usr.sbin/rad/engine.c
234
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
usr.sbin/rad/engine.c
236
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
237
memcpy(&if_index, imsg.data, sizeof(if_index));
usr.sbin/rad/engine.c
241
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
usr.sbin/rad/engine.c
243
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
244
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/rad/engine.c
249
imsg.hdr.type);
usr.sbin/rad/engine.c
252
imsg_free(&imsg);
usr.sbin/rad/engine.c
269
struct imsg imsg;
usr.sbin/rad/engine.c
296
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/rad/engine.c
301
switch (imsg.hdr.type) {
usr.sbin/rad/engine.c
311
if ((fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/rad/engine.c
333
if (IMSG_DATA_SIZE(imsg) != sizeof(struct rad_conf))
usr.sbin/rad/engine.c
335
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
338
memcpy(nconf, imsg.data, sizeof(struct rad_conf));
usr.sbin/rad/engine.c
346
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/engine.c
349
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
353
memcpy(ra_iface_conf, imsg.data,
usr.sbin/rad/engine.c
369
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/engine.c
373
IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
377
memcpy(ra_iface_conf->autoprefix, imsg.data,
usr.sbin/rad/engine.c
381
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/engine.c
385
IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
389
memcpy(ra_prefix_conf, imsg.data, sizeof(struct
usr.sbin/rad/engine.c
395
if(IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/engine.c
398
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
402
memcpy(ra_rdnss_conf, imsg.data, sizeof(struct
usr.sbin/rad/engine.c
408
if(IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/engine.c
411
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
415
memcpy(ra_dnssl_conf, imsg.data, sizeof(struct
usr.sbin/rad/engine.c
425
if(IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/engine.c
428
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/engine.c
432
memcpy(pref64, imsg.data, sizeof(struct ra_pref64_conf));
usr.sbin/rad/engine.c
445
imsg.hdr.type);
usr.sbin/rad/engine.c
448
imsg_free(&imsg);
usr.sbin/rad/frontend.c
315
struct imsg imsg;
usr.sbin/rad/frontend.c
340
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/rad/frontend.c
345
switch (imsg.hdr.type) {
usr.sbin/rad/frontend.c
354
if ((fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/rad/frontend.c
376
if (IMSG_DATA_SIZE(imsg) != sizeof(struct rad_conf))
usr.sbin/rad/frontend.c
378
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
382
memcpy(nconf, imsg.data, sizeof(struct rad_conf));
usr.sbin/rad/frontend.c
390
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/frontend.c
393
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
397
memcpy(ra_iface_conf, imsg.data, sizeof(struct
usr.sbin/rad/frontend.c
413
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/frontend.c
417
IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
421
memcpy(ra_iface_conf->autoprefix, imsg.data,
usr.sbin/rad/frontend.c
425
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/frontend.c
429
IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
433
memcpy(ra_prefix_conf, imsg.data,
usr.sbin/rad/frontend.c
439
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/frontend.c
442
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
446
memcpy(ra_rdnss_conf, imsg.data, sizeof(struct
usr.sbin/rad/frontend.c
452
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/frontend.c
455
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
459
memcpy(ra_dnssl_conf, imsg.data, sizeof(struct
usr.sbin/rad/frontend.c
469
if (IMSG_DATA_SIZE(imsg) != sizeof(struct
usr.sbin/rad/frontend.c
472
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
476
memcpy(pref64, imsg.data, sizeof(struct ra_pref64_conf));
usr.sbin/rad/frontend.c
489
if ((icmp6sock = imsg_get_fd(&imsg)) == -1)
usr.sbin/rad/frontend.c
493
if (IMSG_DATA_SIZE(imsg) != sizeof(rdomain))
usr.sbin/rad/frontend.c
495
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
496
memcpy(&rdomain, imsg.data, sizeof(rdomain));
usr.sbin/rad/frontend.c
503
if ((routesock = imsg_get_fd(&imsg)) == -1)
usr.sbin/rad/frontend.c
514
if ((fd = imsg_get_fd(&imsg)) == -1)
usr.sbin/rad/frontend.c
523
imsg.hdr.type);
usr.sbin/rad/frontend.c
526
imsg_free(&imsg);
usr.sbin/rad/frontend.c
542
struct imsg imsg;
usr.sbin/rad/frontend.c
564
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/rad/frontend.c
569
switch (imsg.hdr.type) {
usr.sbin/rad/frontend.c
571
if (IMSG_DATA_SIZE(imsg) != sizeof(send_ra))
usr.sbin/rad/frontend.c
573
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
574
memcpy(&send_ra, imsg.data, sizeof(send_ra));
usr.sbin/rad/frontend.c
580
if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
usr.sbin/rad/frontend.c
582
__func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/frontend.c
583
memcpy(&if_index, imsg.data, sizeof(if_index));
usr.sbin/rad/frontend.c
592
imsg.hdr.type);
usr.sbin/rad/frontend.c
595
imsg_free(&imsg);
usr.sbin/rad/rad.c
380
struct imsg imsg;
usr.sbin/rad/rad.c
402
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/rad/rad.c
407
switch (imsg.hdr.type) {
usr.sbin/rad/rad.c
410
if (IMSG_DATA_SIZE(imsg) != sizeof(rdomain))
usr.sbin/rad/rad.c
412
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/rad.c
413
memcpy(&rdomain, imsg.data, sizeof(rdomain));
usr.sbin/rad/rad.c
423
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
usr.sbin/rad/rad.c
425
"%lu", __func__, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/rad.c
426
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/rad/rad.c
431
imsg.hdr.type);
usr.sbin/rad/rad.c
434
imsg_free(&imsg);
usr.sbin/rad/rad.c
450
struct imsg imsg;
usr.sbin/rad/rad.c
471
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/rad/rad.c
476
switch (imsg.hdr.type) {
usr.sbin/rad/rad.c
479
imsg.hdr.type);
usr.sbin/rad/rad.c
482
imsg_free(&imsg);
usr.sbin/rad/rad.h
38
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
usr.sbin/radiusctl/radiusctl.c
101
struct imsg imsg;
usr.sbin/radiusctl/radiusctl.c
194
if ((n = imsgbuf_get(&ibuf, &imsg)) <= 0) {
usr.sbin/radiusctl/radiusctl.c
205
done = ipcp_handle_imsg(res, &imsg, cnt++);
usr.sbin/radiusctl/radiusctl.c
210
imsg_free(&imsg);
usr.sbin/radiusctl/radiusctl.c
58
static int ipcp_handle_imsg(struct parse_result *, struct imsg *,
usr.sbin/radiusctl/radiusctl.c
626
ipcp_handle_imsg(struct parse_result *res, struct imsg *imsg, int cnt)
usr.sbin/radiusctl/radiusctl.c
633
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusctl/radiusctl.c
634
switch (imsg->hdr.type) {
usr.sbin/radiusctl/radiusctl.c
636
if (datalen > 0 && *((char *)imsg->data + datalen - 1) == '\0')
usr.sbin/radiusctl/radiusctl.c
637
fprintf(stderr, "OK: %s\n", (char *)imsg->data);
usr.sbin/radiusctl/radiusctl.c
643
if (datalen > 0 && *((char *)imsg->data + datalen - 1) == '\0')
usr.sbin/radiusctl/radiusctl.c
644
fprintf(stderr, "error: %s\n", (char *)imsg->data);
usr.sbin/radiusctl/radiusctl.c
652
dump = imsg->data;
usr.sbin/radiusctl/radiusctl.c
671
dump = imsg->data;
usr.sbin/radiusctl/radiusctl.c
686
dump = imsg->data;
usr.sbin/radiusctl/radiusctl.c
688
((char *)imsg->data + offsetof(
usr.sbin/radiusd/control.c
250
struct imsg imsg;
usr.sbin/radiusd/control.c
274
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/radiusd/control.c
281
datalen = imsg_get_len(&imsg);
usr.sbin/radiusd/control.c
282
switch (imsg.hdr.type) {
usr.sbin/radiusd/control.c
284
if (imsg.hdr.type >= IMSG_RADIUSD_MODULE_MIN) {
usr.sbin/radiusd/control.c
288
imsg.hdr.type);
usr.sbin/radiusd/control.c
292
memcpy(modulename, imsg.data,
usr.sbin/radiusd/control.c
295
modulename, imsg.hdr.type, c->id, -1, -1,
usr.sbin/radiusd/control.c
296
(caddr_t)imsg.data +
usr.sbin/radiusd/control.c
309
"error handling imsg %d", imsg.hdr.type);
usr.sbin/radiusd/control.c
312
imsg_free(&imsg);
usr.sbin/radiusd/control.c
318
control_imsg_relay(struct imsg *imsg)
usr.sbin/radiusd/control.c
322
if ((c = control_connbyid(imsg->hdr.peerid)) == NULL)
usr.sbin/radiusd/control.c
325
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/radiusd/control.c
326
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/radiusd/control.h
41
int control_imsg_relay(struct imsg *);
usr.sbin/radiusd/radiusd.c
1155
struct imsg imsg;
usr.sbin/radiusd/radiusd.c
1208
imsgbuf_get(&module->ibuf, &imsg) <= 0) {
usr.sbin/radiusd/radiusd.c
1213
if (imsg.hdr.type != IMSG_RADIUSD_MODULE_LOAD) {
usr.sbin/radiusd/radiusd.c
1214
imsg_free(&imsg);
usr.sbin/radiusd/radiusd.c
1216
name, imsg.hdr.type);
usr.sbin/radiusd/radiusd.c
1221
((struct radiusd_module_load_arg *)imsg.data)->cap;
usr.sbin/radiusd/radiusd.c
1225
imsg_free(&imsg);
usr.sbin/radiusd/radiusd.c
1243
struct imsg imsg;
usr.sbin/radiusd/radiusd.c
1251
imsgbuf_get(&module->ibuf, &imsg) <= 0) {
usr.sbin/radiusd/radiusd.c
1257
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd.c
1258
if (imsg.hdr.type != IMSG_OK) {
usr.sbin/radiusd/radiusd.c
1259
if (imsg.hdr.type == IMSG_NG) {
usr.sbin/radiusd/radiusd.c
1262
module->name, (char *)imsg.data);
usr.sbin/radiusd/radiusd.c
1269
imsg.hdr.type);
usr.sbin/radiusd/radiusd.c
1384
struct imsg imsg;
usr.sbin/radiusd/radiusd.c
1395
if ((n = imsgbuf_get(&module->ibuf, &imsg)) == -1) {
usr.sbin/radiusd/radiusd.c
1402
radiusd_module_imsg(module, &imsg);
usr.sbin/radiusd/radiusd.c
1403
imsg_free(&imsg);
usr.sbin/radiusd/radiusd.c
1410
radiusd_module_imsg(struct radiusd_module *module, struct imsg *imsg)
usr.sbin/radiusd/radiusd.c
1416
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd.c
1417
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd.c
1420
module->secret = strdup(imsg->data);
usr.sbin/radiusd/radiusd.c
1432
msgtypestr = (imsg->hdr.type == IMSG_RADIUSD_MODULE_USERPASS_OK)
usr.sbin/radiusd/radiusd.c
1435
q_id = *(u_int *)imsg->data;
usr.sbin/radiusd/radiusd.c
1437
msg = (char *)(((u_int *)imsg->data) + 1);
usr.sbin/radiusd/radiusd.c
1447
(imsg->hdr.type == IMSG_RADIUSD_MODULE_USERPASS_OK)
usr.sbin/radiusd/radiusd.c
1470
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd.c
1491
q_id = ((struct radiusd_module_radpkt_arg *)imsg->data)->q_id;
usr.sbin/radiusd/radiusd.c
1498
if ((ans = radiusd_module_recv_radpkt(module, imsg,
usr.sbin/radiusd/radiusd.c
1499
imsg->hdr.type, typestr)) != NULL) {
usr.sbin/radiusd/radiusd.c
1511
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd.c
1574
q_id = *((u_int *)imsg->data);
usr.sbin/radiusd/radiusd.c
1585
control_conn_bind(imsg->hdr.peerid, module->name);
usr.sbin/radiusd/radiusd.c
1588
if (imsg->hdr.peerid != 0)
usr.sbin/radiusd/radiusd.c
1589
control_imsg_relay(imsg);
usr.sbin/radiusd/radiusd.c
1592
imsg->hdr.type, module->name));
usr.sbin/radiusd/radiusd.c
1597
radiusd_module_recv_radpkt(struct radiusd_module *module, struct imsg *imsg,
usr.sbin/radiusd/radiusd.c
1603
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd.c
1604
ans = (struct radiusd_module_radpkt_arg *)imsg->data;
usr.sbin/radiusd/radiusd.c
1651
struct imsg imsg;
usr.sbin/radiusd/radiusd.c
1702
if ((n = imsgbuf_get(&module->ibuf, &imsg)) > 0)
usr.sbin/radiusd/radiusd.c
1710
if (imsg.hdr.type == IMSG_NG) {
usr.sbin/radiusd/radiusd.c
1712
module->name, (char *)imsg.data);
usr.sbin/radiusd/radiusd.c
1714
} else if (imsg.hdr.type != IMSG_OK) {
usr.sbin/radiusd/radiusd.c
1715
imsg_free(&imsg);
usr.sbin/radiusd/radiusd.c
1717
"unknown imsg type=%d", module->name, imsg.hdr.type);
usr.sbin/radiusd/radiusd.c
1720
imsg_free(&imsg);
usr.sbin/radiusd/radiusd.c
80
struct imsg *);
usr.sbin/radiusd/radiusd.c
84
struct imsg *, uint32_t, const char *);
usr.sbin/radiusd/radiusd_bsdauth.c
125
if ((n = imsgbuf_get(&ibuf, &imsg)) == -1)
usr.sbin/radiusd/radiusd_bsdauth.c
129
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_bsdauth.c
130
switch (imsg.hdr.type) {
usr.sbin/radiusd/radiusd_bsdauth.c
143
args = (struct auth_usercheck_args *)imsg.data;
usr.sbin/radiusd/radiusd_bsdauth.c
184
args = (struct auth_groupcheck_args *)imsg.data;
usr.sbin/radiusd/radiusd_bsdauth.c
228
imsg_free(&imsg);
usr.sbin/radiusd/radiusd_bsdauth.c
341
struct imsg imsg;
usr.sbin/radiusd/radiusd_bsdauth.c
343
memset(&imsg, 0, sizeof(imsg));
usr.sbin/radiusd/radiusd_bsdauth.c
360
if (imsgbuf_get(&module->ibuf, &imsg) <= 0)
usr.sbin/radiusd/radiusd_bsdauth.c
363
if (imsg.hdr.type != IMSG_BSDAUTH_OK) {
usr.sbin/radiusd/radiusd_bsdauth.c
386
if (imsgbuf_get(&module->ibuf, &imsg) <= 0)
usr.sbin/radiusd/radiusd_bsdauth.c
389
if (imsg.hdr.type == IMSG_BSDAUTH_OK)
usr.sbin/radiusd/radiusd_bsdauth.c
396
imsg_free(&imsg);
usr.sbin/radiusd/radiusd_bsdauth.c
400
imsg_free(&imsg);
usr.sbin/radiusd/radiusd_bsdauth.c
85
struct imsg imsg;
usr.sbin/radiusd/radiusd_file.c
101
struct imsg imsg;
usr.sbin/radiusd/radiusd_file.c
135
imsgbuf_get(&ibuf, &imsg) <= 0)
usr.sbin/radiusd/radiusd_file.c
137
if (imsg.hdr.type != IMSG_RADIUSD_FILE_PARAMS)
usr.sbin/radiusd/radiusd_file.c
139
imsg.hdr.type);
usr.sbin/radiusd/radiusd_file.c
140
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_file.c
144
paramsp = imsg.data;
usr.sbin/radiusd/radiusd_file.c
166
if ((n = imsgbuf_get(&ibuf, &imsg)) == -1)
usr.sbin/radiusd/radiusd_file.c
170
parent_dispatch_main(&params, &ibuf, &imsg);
usr.sbin/radiusd/radiusd_file.c
171
imsg_free(&imsg);
usr.sbin/radiusd/radiusd_file.c
187
struct imsg *imsg)
usr.sbin/radiusd/radiusd_file.c
195
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_file.c
196
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd_file.c
199
*((char *)imsg->data + datalen - 1) != '\0') {
usr.sbin/radiusd/radiusd_file.c
204
username = imsg->data;
usr.sbin/radiusd/radiusd_file.c
350
struct imsg imsg;
usr.sbin/radiusd/radiusd_file.c
353
memset(&imsg, 0, sizeof(imsg));
usr.sbin/radiusd/radiusd_file.c
369
if (imsgbuf_get(&self->ibuf, &imsg) <= 0) {
usr.sbin/radiusd/radiusd_file.c
374
datalen = imsg_get_len(&imsg);
usr.sbin/radiusd/radiusd_file.c
375
if (imsg.hdr.type == IMSG_RADIUSD_FILE_USERINFO) {
usr.sbin/radiusd/radiusd_file.c
382
ent = imsg.data;
usr.sbin/radiusd/radiusd_file.c
397
imsg_free(&imsg);
usr.sbin/radiusd/radiusd_file.c
71
struct imsgbuf *, struct imsg *);
usr.sbin/radiusd/radiusd_ipcp.c
169
static void ipcp_dispatch_control(void *, struct imsg *);
usr.sbin/radiusd/radiusd_ipcp.c
570
ipcp_dispatch_control(void *ctx, struct imsg *imsg)
usr.sbin/radiusd/radiusd_ipcp.c
584
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_ipcp.c
585
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd_ipcp.c
588
if (ctrl->peerid == imsg->hdr.peerid) {
usr.sbin/radiusd/radiusd_ipcp.c
602
ctrl->peerid = imsg->hdr.peerid;
usr.sbin/radiusd/radiusd_ipcp.c
605
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/radiusd/radiusd_ipcp.c
606
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_IPCP_MONITOR)
usr.sbin/radiusd/radiusd_ipcp.c
628
imsg->hdr.peerid, 0, -1,
usr.sbin/radiusd/radiusd_ipcp.c
636
imsg->hdr.peerid, 0, -1, dump, offsetof(
usr.sbin/radiusd/radiusd_ipcp.c
645
(imsg->hdr.type ==
usr.sbin/radiusd/radiusd_ipcp.c
651
seq = *(unsigned *)imsg->data;
usr.sbin/radiusd/radiusd_ipcp.c
663
(imsg->hdr.type ==
usr.sbin/radiusd/radiusd_ipcp.c
667
imsg->hdr.peerid, 0, -1, cause, strlen(cause) + 1);
usr.sbin/radiusd/radiusd_ipcp.c
668
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_IPCP_DELETE) {
usr.sbin/radiusd/radiusd_ipcp.c
672
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/radiusd/radiusd_ipcp.c
686
client->peerid = imsg->hdr.peerid;
usr.sbin/radiusd/radiusd_module.c
360
struct imsg imsg;
usr.sbin/radiusd/radiusd_module.c
369
if ((n = imsgbuf_get(&base->ibuf, &imsg)) == -1) {
usr.sbin/radiusd/radiusd_module.c
376
module_imsg_handler(base, &imsg);
usr.sbin/radiusd/radiusd_module.c
377
imsg_free(&imsg);
usr.sbin/radiusd/radiusd_module.c
385
module_imsg_handler(struct module_base *base, struct imsg *imsg)
usr.sbin/radiusd/radiusd_module.c
389
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_module.c
390
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd_module.c
399
arg = (struct radiusd_module_set_arg *)imsg->data;
usr.sbin/radiusd/radiusd_module.c
413
((caddr_t)imsg->data + off);
usr.sbin/radiusd/radiusd_module.c
464
userpass = (struct radiusd_module_userpass_arg *)imsg->data;
usr.sbin/radiusd/radiusd_module.c
482
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_ACCSREQ) {
usr.sbin/radiusd/radiusd_module.c
489
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_NEXTRES) {
usr.sbin/radiusd/radiusd_module.c
496
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_ACCTREQ) {
usr.sbin/radiusd/radiusd_module.c
503
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_REQDECO) {
usr.sbin/radiusd/radiusd_module.c
516
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_RESDECO0_REQ)
usr.sbin/radiusd/radiusd_module.c
528
accessreq = (struct radiusd_module_radpkt_arg *)imsg->data;
usr.sbin/radiusd/radiusd_module.c
561
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_ACCSREQ)
usr.sbin/radiusd/radiusd_module.c
564
else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_NEXTRES)
usr.sbin/radiusd/radiusd_module.c
567
else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_REQDECO)
usr.sbin/radiusd/radiusd_module.c
57
static void (*module_dispatch_control) (void *, struct imsg *) = NULL;
usr.sbin/radiusd/radiusd_module.c
570
else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_RESDECO0_REQ) {
usr.sbin/radiusd/radiusd_module.c
586
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_RESDECO) {
usr.sbin/radiusd/radiusd_module.c
602
if (imsg->hdr.type >= IMSG_RADIUSD_MODULE_MIN) {
usr.sbin/radiusd/radiusd_module.c
608
imsg->hdr.peerid, 0, -1, msg, sizeof(msg));
usr.sbin/radiusd/radiusd_module.c
610
module_dispatch_control(base->ctx, imsg);
usr.sbin/radiusd/radiusd_module.c
84
static int module_imsg_handler(struct module_base *, struct imsg *);
usr.sbin/radiusd/radiusd_module.h
23
struct imsg;
usr.sbin/radiusd/radiusd_module.h
53
void (*dispatch_control)(void *ctx, struct imsg *);
usr.sbin/relayctl/relayctl.c
101
struct imsg imsg;
usr.sbin/relayctl/relayctl.c
235
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/relayctl/relayctl.c
245
done = show_summary_msg(&imsg, res->action);
usr.sbin/relayctl/relayctl.c
248
done = show_session_msg(&imsg);
usr.sbin/relayctl/relayctl.c
258
done = show_command_output(&imsg);
usr.sbin/relayctl/relayctl.c
267
done = monitor(&imsg);
usr.sbin/relayctl/relayctl.c
270
imsg_free(&imsg);
usr.sbin/relayctl/relayctl.c
291
monitor_host_status(struct imsg *imsg)
usr.sbin/relayctl/relayctl.c
295
if (imsg_get_data(imsg, &cs, sizeof(cs)) == -1)
usr.sbin/relayctl/relayctl.c
313
monitor_id(struct imsg *imsg)
usr.sbin/relayctl/relayctl.c
317
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayctl/relayctl.c
325
monitor(struct imsg *imsg)
usr.sbin/relayctl/relayctl.c
333
imn = monitor_lookup(imsg_get_type(imsg));
usr.sbin/relayctl/relayctl.c
335
imsg_get_type(imsg), imsg_get_len(imsg), imsg_get_id(imsg),
usr.sbin/relayctl/relayctl.c
336
imsg_get_pid(imsg));
usr.sbin/relayctl/relayctl.c
341
(*imn->func)(imsg);
usr.sbin/relayctl/relayctl.c
347
show_summary_msg(struct imsg *imsg, int type)
usr.sbin/relayctl/relayctl.c
358
switch (imsg_get_type(imsg)) {
usr.sbin/relayctl/relayctl.c
362
if (imsg_get_data(imsg, &rdr, sizeof(rdr)) == -1)
usr.sbin/relayctl/relayctl.c
372
if (imsg_get_data(imsg, &table, sizeof(table)) == -1)
usr.sbin/relayctl/relayctl.c
382
if (imsg_get_data(imsg, &host, sizeof(host)) == -1)
usr.sbin/relayctl/relayctl.c
407
if (imsg_get_data(imsg, &rlay, sizeof(rlay)) == -1)
usr.sbin/relayctl/relayctl.c
417
if (imsg_get_data(imsg, &stats[0], sizeof(stats[0])) == -1)
usr.sbin/relayctl/relayctl.c
425
if (imsg_get_data(imsg, stats, sizeof(stats)) == -1)
usr.sbin/relayctl/relayctl.c
432
if (imsg_get_data(imsg, &rt, sizeof(rt)) == -1)
usr.sbin/relayctl/relayctl.c
449
if (imsg_get_data(imsg, &nr, sizeof(nr)) == -1)
usr.sbin/relayctl/relayctl.c
45
int show_summary_msg(struct imsg *, int);
usr.sbin/relayctl/relayctl.c
458
errx(1, "wrong message in summary: %u", imsg_get_type(imsg));
usr.sbin/relayctl/relayctl.c
46
int show_session_msg(struct imsg *);
usr.sbin/relayctl/relayctl.c
465
show_session_msg(struct imsg *imsg)
usr.sbin/relayctl/relayctl.c
47
int show_command_output(struct imsg *);
usr.sbin/relayctl/relayctl.c
471
switch (imsg_get_type(imsg)) {
usr.sbin/relayctl/relayctl.c
473
if (imsg_get_data(imsg, &con, sizeof(con)) == -1)
usr.sbin/relayctl/relayctl.c
479
imsg_get_id(imsg), con.se_id,
usr.sbin/relayctl/relayctl.c
496
errx(1, "wrong message in session: %u", imsg_get_type(imsg));
usr.sbin/relayctl/relayctl.c
503
show_command_output(struct imsg *imsg)
usr.sbin/relayctl/relayctl.c
505
switch (imsg_get_type(imsg)) {
usr.sbin/relayctl/relayctl.c
514
errx(1, "wrong message in command: %u", imsg_get_type(imsg));
usr.sbin/relayctl/relayctl.c
57
void (*func)(struct imsg *);
usr.sbin/relayctl/relayctl.c
61
void monitor_host_status(struct imsg *);
usr.sbin/relayctl/relayctl.c
62
void monitor_id(struct imsg *);
usr.sbin/relayctl/relayctl.c
63
int monitor(struct imsg *);
usr.sbin/relayd/agentx_control.c
463
agentx_getsock(struct imsg *imsg)
usr.sbin/relayd/agentx_control.c
468
fd = imsg_get_fd(imsg);
usr.sbin/relayd/ca.c
194
ca_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/ca.c
196
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/ca.c
198
if (config_getrelay(env, imsg) != 0)
usr.sbin/relayd/ca.c
202
if (config_getrelayfd(env, imsg) != 0)
usr.sbin/relayd/ca.c
206
if (config_getcfg(env, imsg) != 0)
usr.sbin/relayd/ca.c
213
if (config_getreset(env, imsg) != 0)
usr.sbin/relayd/ca.c
224
ca_dispatch_relay(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/ca.c
236
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/ca.c
239
if (imsg_get_ibuf(imsg, &ibuf) == -1) {
usr.sbin/relayd/ca.c
262
cko.cko_proc, imsg_get_type(imsg), -1, -1, iov,
usr.sbin/relayd/ca.c
277
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/ca.c
302
imsg_get_type(imsg), -1, -1, iov, c) == -1)
usr.sbin/relayd/ca.c
310
if (imsg_get_ibuf(imsg, &ibuf) == -1) {
usr.sbin/relayd/ca.c
333
cko.cko_proc, imsg_get_type(imsg), -1, -1, iov,
usr.sbin/relayd/ca.c
359
imsg_get_type(imsg), -1, -1, iov, c) == -1)
usr.sbin/relayd/ca.c
393
struct imsg imsg;
usr.sbin/relayd/ca.c
42
int ca_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/ca.c
43
int ca_dispatch_relay(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/ca.c
455
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/relayd/ca.c
460
if (imsg_get_ibuf(&imsg, &ibuf) == -1) {
usr.sbin/relayd/ca.c
462
imsg_free(&imsg);
usr.sbin/relayd/ca.c
468
imsg_free(&imsg);
usr.sbin/relayd/ca.c
481
imsg_free(&imsg);
usr.sbin/relayd/ca.c
485
if (imsg_get_type(&imsg) != cmd)
usr.sbin/relayd/ca.c
500
imsg_free(&imsg);
usr.sbin/relayd/ca.c
578
struct imsg imsg;
usr.sbin/relayd/ca.c
645
if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1)
usr.sbin/relayd/ca.c
650
if (imsg_get_ibuf(&imsg, &ibuf) == -1) {
usr.sbin/relayd/ca.c
652
imsg_free(&imsg);
usr.sbin/relayd/ca.c
658
imsg_free(&imsg);
usr.sbin/relayd/ca.c
671
imsg_free(&imsg);
usr.sbin/relayd/ca.c
675
if (imsg_get_type(&imsg) != IMSG_CA_ECDSA_SIGN)
usr.sbin/relayd/ca.c
689
imsg_free(&imsg);
usr.sbin/relayd/config.c
1058
config_getrelay(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
1065
if (imsg_get_ibuf(imsg, &ibuf) == -1) {
usr.sbin/relayd/config.c
1079
rlay->rl_s = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
1123
config_getrelaytable(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
1130
if (imsg_get_data(imsg, &crt, sizeof(crt)) == -1) {
usr.sbin/relayd/config.c
1166
config_getrelayfd(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
1172
if (imsg_get_data(imsg, &crfd, sizeof(crfd)) == -1) {
usr.sbin/relayd/config.c
1197
cert->cert_fd = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
1200
cert->cert_key_fd = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
1203
cert->cert_ocsp_fd = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
1206
rlay->rl_tls_ca_fd = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
1209
rlay->rl_tls_cacert_fd = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
1212
rlay->rl_tls_client_ca_fd = imsg_get_fd(imsg);
usr.sbin/relayd/config.c
248
config_getreset(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
251
if (imsg_get_data(imsg, &mode, sizeof(mode)) == -1) {
usr.sbin/relayd/config.c
262
config_getcfg(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
270
if (imsg_get_data(imsg, &env->sc_conf,
usr.sbin/relayd/config.c
342
config_gettable(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
348
if (imsg_get_ibuf(imsg, &ibuf) == -1) {
usr.sbin/relayd/config.c
390
config_gethost(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
398
if (imsg_get_data(imsg, &host->conf, sizeof(host->conf)) == -1) {
usr.sbin/relayd/config.c
462
config_getrdr(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
469
if (imsg_get_data(imsg, &rdr->conf, sizeof(rdr->conf)) == -1) {
usr.sbin/relayd/config.c
498
config_getvirt(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
506
if (imsg_get_data(imsg, virt, sizeof(*virt)) == -1) {
usr.sbin/relayd/config.c
555
config_getrt(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
562
if (imsg_get_data(imsg, &rt->rt_conf, sizeof(rt->rt_conf)) == -1) {
usr.sbin/relayd/config.c
587
config_getroute(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
595
if (imsg_get_data(imsg, &nr->nr_conf, sizeof(nr->nr_conf)) == -1) {
usr.sbin/relayd/config.c
712
config_getproto(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
718
if (imsg_get_ibuf(imsg, &ibuf) == -1) {
usr.sbin/relayd/config.c
757
config_getrule(struct relayd *env, struct imsg *imsg)
usr.sbin/relayd/config.c
765
if (imsg_get_ibuf(imsg, &ibuf) == -1) {
usr.sbin/relayd/control.c
228
struct imsg imsg;
usr.sbin/relayd/control.c
259
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/relayd/control.c
269
__func__, imsg_get_type(&imsg));
usr.sbin/relayd/control.c
270
imsg_free(&imsg);
usr.sbin/relayd/control.c
275
switch (imsg_get_type(&imsg)) {
usr.sbin/relayd/control.c
283
if (imsg_get_data(&imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/control.c
290
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
296
if (imsg_get_data(&imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/control.c
303
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
309
if (imsg_get_data(&imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/control.c
316
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
322
if (imsg_get_data(&imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/control.c
329
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
335
if (imsg_get_data(&imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/control.c
342
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
348
if (imsg_get_data(&imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/control.c
355
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
362
proc_forward_imsg(env->sc_ps, &imsg, PROC_PARENT);
usr.sbin/relayd/control.c
382
if (imsg_get_data(&imsg, &verb, sizeof(verb)) == -1)
usr.sbin/relayd/control.c
385
proc_forward_imsg(env->sc_ps, &imsg, PROC_PARENT);
usr.sbin/relayd/control.c
386
proc_forward_imsg(env->sc_ps, &imsg, PROC_HCE);
usr.sbin/relayd/control.c
387
proc_forward_imsg(env->sc_ps, &imsg, PROC_RELAY);
usr.sbin/relayd/control.c
389
control_imsg_forward(&imsg);
usr.sbin/relayd/control.c
394
__func__, imsg_get_type(&imsg));
usr.sbin/relayd/control.c
397
imsg_free(&imsg);
usr.sbin/relayd/control.c
419
control_imsg_forward(struct imsg *imsg)
usr.sbin/relayd/control.c
425
if (imsg_forward(&c->iev.ibuf, imsg) == -1)
usr.sbin/relayd/hce.c
286
hce_dispatch_pfe(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/hce.c
292
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/hce.c
294
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/hce.c
305
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/hce.c
314
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/hce.c
323
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/hce.c
345
hce_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/hce.c
349
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/hce.c
351
if (imsg_get_data(imsg, &scr, sizeof(scr)) == -1)
usr.sbin/relayd/hce.c
356
if (config_gettable(env, imsg) != 0)
usr.sbin/relayd/hce.c
360
if (config_gethost(env, imsg) != 0)
usr.sbin/relayd/hce.c
364
if (config_getcfg(env, imsg) != 0)
usr.sbin/relayd/hce.c
371
if (config_getreset(env, imsg) != 0)
usr.sbin/relayd/hce.c
38
int hce_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/hce.c
382
hce_dispatch_relay(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/hce.c
384
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/hce.c
39
int hce_dispatch_pfe(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/hce.c
40
int hce_dispatch_relay(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/pfe.c
121
pfe_dispatch_hce(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/pfe.c
127
control_imsg_forward(imsg);
usr.sbin/relayd/pfe.c
129
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/pfe.c
131
if (imsg_get_data(imsg, &st, sizeof(st)) == -1)
usr.sbin/relayd/pfe.c
200
pfe_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/pfe.c
202
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/pfe.c
204
if (config_gettable(env, imsg) != 0)
usr.sbin/relayd/pfe.c
208
if (config_gethost(env, imsg) != 0)
usr.sbin/relayd/pfe.c
212
if (config_getrdr(env, imsg) != 0)
usr.sbin/relayd/pfe.c
216
if (config_getvirt(env, imsg) != 0)
usr.sbin/relayd/pfe.c
220
if (config_getrt(env, imsg) != 0)
usr.sbin/relayd/pfe.c
224
if (config_getroute(env, imsg) != 0)
usr.sbin/relayd/pfe.c
228
if (config_getproto(env, imsg) != 0)
usr.sbin/relayd/pfe.c
232
if (config_getrelay(env, imsg) != 0)
usr.sbin/relayd/pfe.c
236
if (config_getrelaytable(env, imsg) != 0)
usr.sbin/relayd/pfe.c
240
if (config_getcfg(env, imsg) != 0)
usr.sbin/relayd/pfe.c
250
if (config_getreset(env, imsg) != 0)
usr.sbin/relayd/pfe.c
254
agentx_getsock(imsg);
usr.sbin/relayd/pfe.c
264
pfe_dispatch_relay(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/pfe.c
274
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/pfe.c
276
if (imsg_get_data(imsg, &cnl, sizeof(cnl)) == -1)
usr.sbin/relayd/pfe.c
286
if (imsg_get_data(imsg, &crs, sizeof(crs)) == -1)
usr.sbin/relayd/pfe.c
297
if (imsg_get_data(imsg, &con, sizeof(con)) == -1)
usr.sbin/relayd/pfe.c
309
if (imsg_get_data(imsg, &cid, sizeof(cid)) == -1)
usr.sbin/relayd/pfe.c
328
if (imsg_get_data(imsg, s, sizeof(*s)) == -1)
usr.sbin/relayd/pfe.c
345
if (imsg_get_data(imsg, &sid, sizeof(sid)) == -1)
usr.sbin/relayd/pfe.c
45
int pfe_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/pfe.c
46
int pfe_dispatch_hce(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/pfe.c
47
int pfe_dispatch_relay(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/proc.c
50
int proc_dispatch_null(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/proc.c
595
struct imsg imsg;
usr.sbin/relayd/proc.c
629
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/relayd/proc.c
637
imsg_get_type(&imsg), imsg_get_id(&imsg),
usr.sbin/relayd/proc.c
638
p->p_title, imsg_get_pid(&imsg));
usr.sbin/relayd/proc.c
644
if ((p->p_cb)(fd, p, &imsg) == 0) {
usr.sbin/relayd/proc.c
646
imsg_free(&imsg);
usr.sbin/relayd/proc.c
653
switch (imsg_get_type(&imsg)) {
usr.sbin/relayd/proc.c
655
if (imsg_get_data(&imsg, &ver, sizeof(ver)) == -1)
usr.sbin/relayd/proc.c
667
if (imsg_get_data(&imsg, &pf, sizeof(pf)) == -1)
usr.sbin/relayd/proc.c
670
proc_accept(ps, imsg_get_fd(&imsg), pf.pf_procid,
usr.sbin/relayd/proc.c
677
imsg_get_type(&imsg), imsg_get_id(&imsg),
usr.sbin/relayd/proc.c
678
p->p_title, imsg_get_pid(&imsg));
usr.sbin/relayd/proc.c
680
imsg_free(&imsg);
usr.sbin/relayd/proc.c
686
proc_dispatch_null(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/proc.c
797
proc_forward_imsg(struct privsep *ps, struct imsg *imsg,
usr.sbin/relayd/proc.c
804
if (imsg_forward(&ps->ps_ievs[id][n].ibuf, imsg) == -1)
usr.sbin/relayd/relay.c
1859
relay_dispatch_pfe(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relay.c
1871
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relay.c
1873
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/relay.c
1886
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/relay.c
1894
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/relay.c
1904
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/relay.c
1914
if (imsg_get_data(imsg, &st, sizeof(st)) == -1)
usr.sbin/relayd/relay.c
1946
if (imsg_get_data(imsg, &cnl, sizeof(cnl)) == -1)
usr.sbin/relayd/relay.c
1961
if (imsg_get_data(imsg, &cid, sizeof(cid)) == -1)
usr.sbin/relayd/relay.c
1983
relay_dispatch_ca(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relay.c
1985
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relay.c
1992
imsg_get_type(imsg) == IMSG_CA_PRIVENC ? "enc" : "dec");
usr.sbin/relayd/relay.c
2000
relay_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relay.c
2007
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relay.c
2009
if (imsg_get_data(imsg, &id, sizeof(id)) == -1)
usr.sbin/relayd/relay.c
2018
con->se_bnds = imsg_get_fd(imsg);
usr.sbin/relayd/relay.c
2026
if (config_gettable(env, imsg) != 0)
usr.sbin/relayd/relay.c
2030
if (config_gethost(env, imsg) != 0)
usr.sbin/relayd/relay.c
2034
if (config_getproto(env, imsg) != 0)
usr.sbin/relayd/relay.c
2038
if (config_getrule(env, imsg) != 0)
usr.sbin/relayd/relay.c
2042
if (config_getrelay(env, imsg) != 0)
usr.sbin/relayd/relay.c
2046
if (config_getrelaytable(env, imsg) != 0)
usr.sbin/relayd/relay.c
2050
if (config_getrelayfd(env, imsg) != 0)
usr.sbin/relayd/relay.c
2054
if (config_getcfg(env, imsg) != 0)
usr.sbin/relayd/relay.c
2061
if (config_getreset(env, imsg) != 0)
usr.sbin/relayd/relay.c
2065
if (imsg_get_data(imsg, &env->sc_ticket,
usr.sbin/relayd/relay.c
2084
relay_dispatch_hce(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relay.c
2086
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relay.c
51
struct imsg *);
usr.sbin/relayd/relay.c
53
struct imsg *);
usr.sbin/relayd/relay.c
55
struct imsg *);
usr.sbin/relayd/relay.c
57
struct imsg *);
usr.sbin/relayd/relayd.c
399
parent_dispatch_pfe(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relayd.c
410
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relayd.c
412
if (imsg_get_data(imsg, &demote, sizeof(demote)) == -1) {
usr.sbin/relayd/relayd.c
421
if (imsg_get_data(imsg, &crt, sizeof(crt)) == -1) {
usr.sbin/relayd/relayd.c
432
if (imsg_get_data(imsg, &v, sizeof(v)) == -1) {
usr.sbin/relayd/relayd.c
439
if (imsg_get_ibuf(imsg, &ibuf) != -1 &&
usr.sbin/relayd/relayd.c
466
parent_dispatch_hce(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relayd.c
472
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relayd.c
474
if (imsg_get_data(imsg, &scr, sizeof(scr)) == -1) {
usr.sbin/relayd/relayd.c
494
parent_dispatch_relay(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relayd.c
501
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relayd.c
503
if (imsg_get_data(imsg, &bnd, sizeof(bnd)) == -1) {
usr.sbin/relayd/relayd.c
535
parent_dispatch_ca(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/relayd/relayd.c
540
switch (imsg_get_type(imsg)) {
usr.sbin/relayd/relayd.c
62
int parent_dispatch_pfe(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/relayd.c
63
int parent_dispatch_hce(int, struct privsep_proc *, struct imsg *);
usr.sbin/relayd/relayd.c
65
struct imsg *);
usr.sbin/relayd/relayd.c
67
struct imsg *);
usr.sbin/relayd/relayd.h
1058
struct imsg *);
usr.sbin/relayd/relayd.h
1150
void control_imsg_forward(struct imsg *);
usr.sbin/relayd/relayd.h
1393
void agentx_getsock(struct imsg *);
usr.sbin/relayd/relayd.h
1426
void proc_forward_imsg(struct privsep *, struct imsg *,
usr.sbin/relayd/relayd.h
1441
int config_getreset(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1442
int config_getcfg(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1444
int config_gettable(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1445
int config_gethost(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1447
int config_getrdr(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1448
int config_getvirt(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1450
int config_getrt(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1451
int config_getroute(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1453
int config_getproto(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1455
int config_getrule(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1457
int config_getrelay(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1458
int config_getrelaytable(struct relayd *, struct imsg *);
usr.sbin/relayd/relayd.h
1459
int config_getrelayfd(struct relayd *, struct imsg *);
usr.sbin/ripctl/ripctl.c
201
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripctl/ripctl.c
208
done = show_interface_msg(&imsg);
usr.sbin/ripctl/ripctl.c
211
done = show_nbr_msg(&imsg);
usr.sbin/ripctl/ripctl.c
214
done = show_rib_msg(&imsg);
usr.sbin/ripctl/ripctl.c
217
done = show_fib_msg(&imsg);
usr.sbin/ripctl/ripctl.c
220
done = show_fib_interface_msg(&imsg);
usr.sbin/ripctl/ripctl.c
231
imsg_free(&imsg);
usr.sbin/ripctl/ripctl.c
310
show_interface_msg(struct imsg *imsg)
usr.sbin/ripctl/ripctl.c
315
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
317
iface = imsg->data;
usr.sbin/ripctl/ripctl.c
340
show_rib_msg(struct imsg *imsg)
usr.sbin/ripctl/ripctl.c
345
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
347
rt = imsg->data;
usr.sbin/ripctl/ripctl.c
369
show_nbr_msg(struct imsg *imsg)
usr.sbin/ripctl/ripctl.c
374
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
376
nbr = imsg->data;
usr.sbin/ripctl/ripctl.c
405
show_fib_msg(struct imsg *imsg)
usr.sbin/ripctl/ripctl.c
410
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
412
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ripctl/ripctl.c
414
k = imsg->data;
usr.sbin/ripctl/ripctl.c
44
int show_interface_msg(struct imsg *);
usr.sbin/ripctl/ripctl.c
46
int show_rib_msg(struct imsg *);
usr.sbin/ripctl/ripctl.c
462
show_fib_interface_msg(struct imsg *imsg)
usr.sbin/ripctl/ripctl.c
467
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
469
k = imsg->data;
usr.sbin/ripctl/ripctl.c
47
int show_nbr_msg(struct imsg *);
usr.sbin/ripctl/ripctl.c
49
int show_fib_msg(struct imsg *);
usr.sbin/ripctl/ripctl.c
51
int show_fib_interface_msg(struct imsg *);
usr.sbin/ripctl/ripctl.c
72
struct imsg imsg;
usr.sbin/ripd/control.c
216
struct imsg imsg;
usr.sbin/ripd/control.c
239
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/ripd/control.c
247
switch (imsg.hdr.type) {
usr.sbin/ripd/control.c
249
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(ifidx))
usr.sbin/ripd/control.c
252
memcpy(&ifidx, imsg.data, sizeof(ifidx));
usr.sbin/ripd/control.c
259
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ripd/control.c
260
ripe_imsg_compose_rde(imsg.hdr.type, 0,
usr.sbin/ripd/control.c
261
imsg.hdr.pid, imsg.data, imsg.hdr.len -
usr.sbin/ripd/control.c
270
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ripd/control.c
271
ripe_imsg_compose_parent(imsg.hdr.type,
usr.sbin/ripd/control.c
272
imsg.hdr.pid, imsg.data,
usr.sbin/ripd/control.c
273
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ripd/control.c
278
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ripd/control.c
279
ripe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ripd/control.c
282
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ripd/control.c
287
ripe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ripd/control.c
288
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ripd/control.c
289
ripe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ripd/control.c
290
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ripd/control.c
292
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ripd/control.c
297
"error handling imsg %d", imsg.hdr.type);
usr.sbin/ripd/control.c
300
imsg_free(&imsg);
usr.sbin/ripd/control.c
307
control_imsg_relay(struct imsg *imsg)
usr.sbin/ripd/control.c
311
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ripd/control.c
314
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ripd/control.c
315
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ripd/control.h
35
int control_imsg_relay(struct imsg *);
usr.sbin/ripd/kroute.c
282
kr_show_route(struct imsg *imsg)
usr.sbin/ripd/kroute.c
288
switch (imsg->hdr.type) {
usr.sbin/ripd/kroute.c
290
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ripd/kroute.c
294
memcpy(&flags, imsg->data, sizeof(flags));
usr.sbin/ripd/kroute.c
298
imsg->hdr.pid, &kr->r, sizeof(kr->r));
usr.sbin/ripd/kroute.c
302
if (imsg->hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ripd/kroute.c
307
memcpy(&addr, imsg->data, sizeof(addr));
usr.sbin/ripd/kroute.c
311
main_imsg_compose_ripe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ripd/kroute.c
319
main_imsg_compose_ripe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ripd/rde.c
197
struct imsg imsg;
usr.sbin/ripd/rde.c
216
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripd/rde.c
221
switch (imsg.hdr.type) {
usr.sbin/ripd/rde.c
223
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr))
usr.sbin/ripd/rde.c
226
memcpy(&rr, imsg.data, sizeof(rr));
usr.sbin/ripd/rde.c
245
rt_snap(imsg.hdr.peerid);
usr.sbin/ripd/rde.c
247
imsg.hdr.peerid, 0, NULL, 0);
usr.sbin/ripd/rde.c
250
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr))
usr.sbin/ripd/rde.c
253
memcpy(&rr, imsg.data, sizeof(rr));
usr.sbin/ripd/rde.c
257
imsg.hdr.peerid, 0, &rr, sizeof(rr));
usr.sbin/ripd/rde.c
262
imsg.hdr.peerid, 0, NULL, 0);
usr.sbin/ripd/rde.c
265
rt_dump(imsg.hdr.pid);
usr.sbin/ripd/rde.c
268
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ripd/rde.c
273
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ripd/rde.c
278
imsg.hdr.type);
usr.sbin/ripd/rde.c
281
imsg_free(&imsg);
usr.sbin/ripd/rde.c
295
struct imsg imsg;
usr.sbin/ripd/rde.c
318
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripd/rde.c
323
switch (imsg.hdr.type) {
usr.sbin/ripd/rde.c
325
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(kr)) {
usr.sbin/ripd/rde.c
330
memcpy(&kr, imsg.data, sizeof(kr));
usr.sbin/ripd/rde.c
336
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(kr)) {
usr.sbin/ripd/rde.c
340
memcpy(&kr, imsg.data, sizeof(kr));
usr.sbin/ripd/rde.c
348
imsg.hdr.type);
usr.sbin/ripd/rde.c
351
imsg_free(&imsg);
usr.sbin/ripd/ripd.c
313
struct imsg imsg;
usr.sbin/ripd/ripd.c
333
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripd/ripd.c
338
switch (imsg.hdr.type) {
usr.sbin/ripd/ripd.c
350
kr_show_route(&imsg);
usr.sbin/ripd/ripd.c
353
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/ripd/ripd.c
354
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/ripd/ripd.c
355
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/ripd/ripd.c
356
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/ripd/ripd.c
361
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(dmsg))
usr.sbin/ripd/ripd.c
363
memcpy(&dmsg, imsg.data, sizeof(dmsg));
usr.sbin/ripd/ripd.c
368
memcpy(&verbose, imsg.data, sizeof(verbose));
usr.sbin/ripd/ripd.c
373
imsg.hdr.type);
usr.sbin/ripd/ripd.c
376
imsg_free(&imsg);
usr.sbin/ripd/ripd.c
392
struct imsg imsg;
usr.sbin/ripd/ripd.c
411
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripd/ripd.c
416
switch (imsg.hdr.type) {
usr.sbin/ripd/ripd.c
418
if (kr_change(imsg.data))
usr.sbin/ripd/ripd.c
423
if (kr_delete(imsg.data))
usr.sbin/ripd/ripd.c
429
imsg.hdr.type);
usr.sbin/ripd/ripd.c
432
imsg_free(&imsg);
usr.sbin/ripd/ripd.h
319
void kr_show_route(struct imsg *);
usr.sbin/ripd/ripe.c
227
struct imsg imsg;
usr.sbin/ripd/ripe.c
250
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripd/ripe.c
255
switch (imsg.hdr.type) {
usr.sbin/ripd/ripe.c
257
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ripd/ripe.c
260
kif = imsg.data;
usr.sbin/ripd/ripe.c
285
control_imsg_relay(&imsg);
usr.sbin/ripd/ripe.c
289
imsg.hdr.type);
usr.sbin/ripd/ripe.c
292
imsg_free(&imsg);
usr.sbin/ripd/ripe.c
307
struct imsg imsg;
usr.sbin/ripd/ripe.c
330
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/ripd/ripe.c
335
switch (imsg.hdr.type) {
usr.sbin/ripd/ripe.c
337
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/ripd/ripe.c
343
memcpy(rr, imsg.data, sizeof(*rr));
usr.sbin/ripd/ripe.c
345
if (imsg.hdr.peerid != 0) {
usr.sbin/ripd/ripe.c
346
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) ==
usr.sbin/ripd/ripe.c
349
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
362
if (imsg.hdr.peerid != 0) {
usr.sbin/ripd/ripe.c
363
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) ==
usr.sbin/ripd/ripe.c
366
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
378
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/ripd/ripe.c
384
memcpy(rr, imsg.data, sizeof(*rr));
usr.sbin/ripd/ripe.c
386
if (imsg.hdr.peerid == 0) {
usr.sbin/ripd/ripe.c
393
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) == NULL) {
usr.sbin/ripd/ripe.c
395
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
403
if (imsg.hdr.peerid == 0) {
usr.sbin/ripd/ripe.c
412
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) == NULL) {
usr.sbin/ripd/ripe.c
414
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
421
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(struct
usr.sbin/ripd/ripe.c
425
rr = imsg.data;
usr.sbin/ripd/ripe.c
435
control_imsg_relay(&imsg);
usr.sbin/ripd/ripe.c
439
imsg.hdr.type);
usr.sbin/ripd/ripe.c
442
imsg_free(&imsg);
usr.sbin/slaacctl/slaacctl.c
150
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/slaacctl/slaacctl.c
157
done = show_interface_msg(&imsg);
usr.sbin/slaacctl/slaacctl.c
163
imsg_free(&imsg);
usr.sbin/slaacctl/slaacctl.c
173
show_interface_msg(struct imsg *imsg)
usr.sbin/slaacctl/slaacctl.c
190
switch (imsg->hdr.type) {
usr.sbin/slaacctl/slaacctl.c
192
cei = imsg->data;
usr.sbin/slaacctl/slaacctl.c
211
cei_ra = imsg->data;
usr.sbin/slaacctl/slaacctl.c
237
cei_ra_prefix = imsg->data;
usr.sbin/slaacctl/slaacctl.c
254
cei_ra_rdns = imsg->data;
usr.sbin/slaacctl/slaacctl.c
263
cei_addr_proposal = imsg->data;
usr.sbin/slaacctl/slaacctl.c
304
cei_dfr_proposal = imsg->data;
usr.sbin/slaacctl/slaacctl.c
336
cei_rdns_proposal = imsg->data;
usr.sbin/slaacctl/slaacctl.c
50
int show_interface_msg(struct imsg *);
usr.sbin/slaacctl/slaacctl.c
69
struct imsg imsg;
usr.sbin/smtpd/ca.c
131
ca_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/ca.c
146
if (imsg == NULL)
usr.sbin/smtpd/ca.c
149
switch (imsg->hdr.type) {
usr.sbin/smtpd/ca.c
160
m_msg(&m, imsg);
usr.sbin/smtpd/ca.c
167
m_msg(&m, imsg);
usr.sbin/smtpd/ca.c
175
m_msg(&m, imsg);
usr.sbin/smtpd/ca.c
190
switch (imsg->hdr.type) {
usr.sbin/smtpd/ca.c
201
m_create(p, imsg->hdr.type, 0, 0, -1);
usr.sbin/smtpd/ca.c
213
m_msg(&m, imsg);
usr.sbin/smtpd/ca.c
228
m_create(p, imsg->hdr.type, 0, 0, -1);
usr.sbin/smtpd/ca.c
239
fatalx("ca_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/ca.c
256
struct imsg imsg;
usr.sbin/smtpd/ca.c
289
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/smtpd/ca.c
294
log_imsg(PROC_DISPATCHER, PROC_CA, &imsg);
usr.sbin/smtpd/ca.c
296
switch (imsg.hdr.type) {
usr.sbin/smtpd/ca.c
302
dispatcher_imsg(p_ca, &imsg);
usr.sbin/smtpd/ca.c
303
imsg_free(&imsg);
usr.sbin/smtpd/ca.c
307
m_msg(&m, &imsg);
usr.sbin/smtpd/ca.c
320
imsg_free(&imsg);
usr.sbin/smtpd/ca.c
365
struct imsg imsg;
usr.sbin/smtpd/ca.c
396
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/smtpd/ca.c
401
log_imsg(PROC_DISPATCHER, PROC_CA, &imsg);
usr.sbin/smtpd/ca.c
403
switch (imsg.hdr.type) {
usr.sbin/smtpd/ca.c
408
dispatcher_imsg(p_ca, &imsg);
usr.sbin/smtpd/ca.c
409
imsg_free(&imsg);
usr.sbin/smtpd/ca.c
413
m_msg(&m, &imsg);
usr.sbin/smtpd/ca.c
425
imsg_free(&imsg);
usr.sbin/smtpd/control.c
102
imsg->hdr.peerid = 0;
usr.sbin/smtpd/control.c
103
m_forward(&c->mproc, imsg);
usr.sbin/smtpd/control.c
107
c = tree_get(&ctl_conns, imsg->hdr.peerid);
usr.sbin/smtpd/control.c
110
m_compose(&c->mproc, IMSG_CTL_OK, 0, 0, imsg_get_fd(imsg),
usr.sbin/smtpd/control.c
115
m_msg(&m, imsg);
usr.sbin/smtpd/control.c
128
m_msg(&m, imsg);
usr.sbin/smtpd/control.c
141
m_msg(&m, imsg);
usr.sbin/smtpd/control.c
154
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/control.c
412
control_dispatch_ext(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/control.c
426
if (imsg == NULL) {
usr.sbin/smtpd/control.c
431
if (imsg->hdr.peerid != IMSG_VERSION) {
usr.sbin/smtpd/control.c
436
switch (imsg->hdr.type) {
usr.sbin/smtpd/control.c
457
kvp = imsg->data;
usr.sbin/smtpd/control.c
471
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
474
memcpy(&v, imsg->data, sizeof(v));
usr.sbin/smtpd/control.c
486
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
489
memcpy(&v, imsg->data, sizeof(v));
usr.sbin/smtpd/control.c
502
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
505
memcpy(&v, imsg->data, sizeof(v));
usr.sbin/smtpd/control.c
51
static void control_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/control.c
518
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
521
memcpy(&v, imsg->data, sizeof(v));
usr.sbin/smtpd/control.c
533
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
536
memcpy(&v, imsg->data, sizeof(v));
usr.sbin/smtpd/control.c
548
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
549
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/control.c
56
static void control_dispatch_ext(struct mproc *, struct imsg *);
usr.sbin/smtpd/control.c
598
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
599
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/control.c
640
m_forward(p_dispatcher, imsg);
usr.sbin/smtpd/control.c
648
m_forward(p_dispatcher, imsg);
usr.sbin/smtpd/control.c
656
imsg->data, imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/control.c
663
imsg->data, imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/control.c
674
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
675
m_forward(p_dispatcher, imsg);
usr.sbin/smtpd/control.c
691
if (imsg->hdr.len - IMSG_HEADER_SIZE <= sizeof(ss))
usr.sbin/smtpd/control.c
693
memmove(&ss, imsg->data, sizeof(ss));
usr.sbin/smtpd/control.c
694
m_create(p_dispatcher, imsg->hdr.type, c->id, 0, -1);
usr.sbin/smtpd/control.c
696
m_add_string(p_dispatcher, (char *)imsg->data + sizeof(ss));
usr.sbin/smtpd/control.c
704
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
705
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/control.c
712
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
713
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/control.c
72
control_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/control.c
721
len = strlen(imsg->data);
usr.sbin/smtpd/control.c
725
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
726
m_forward(p_lka, imsg);
usr.sbin/smtpd/control.c
733
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof evpid)
usr.sbin/smtpd/control.c
736
memmove(&evpid, imsg->data, sizeof evpid);
usr.sbin/smtpd/control.c
737
m_create(p_queue, imsg->hdr.type, c->id, 0, -1);
usr.sbin/smtpd/control.c
746
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof msgid)
usr.sbin/smtpd/control.c
749
memmove(&msgid, imsg->data, sizeof msgid);
usr.sbin/smtpd/control.c
750
m_create(p_queue, imsg->hdr.type, c->id, 0, -1);
usr.sbin/smtpd/control.c
758
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/control.c
81
if (imsg == NULL) {
usr.sbin/smtpd/control.c
87
switch (imsg->hdr.type) {
usr.sbin/smtpd/control.c
99
c = tree_get(&ctl_conns, imsg->hdr.peerid);
usr.sbin/smtpd/dispatcher.c
105
mta_imsg(p, imsg);
usr.sbin/smtpd/dispatcher.c
114
mda_imsg(p, imsg);
usr.sbin/smtpd/dispatcher.c
120
fatalx("session_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/dispatcher.c
26
void mda_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/dispatcher.c
27
void mta_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/dispatcher.c
28
void smtp_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/dispatcher.c
33
dispatcher_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/dispatcher.c
38
if (imsg == NULL)
usr.sbin/smtpd/dispatcher.c
41
switch (imsg->hdr.type) {
usr.sbin/smtpd/dispatcher.c
47
resolver_dispatch_result(p, imsg);
usr.sbin/smtpd/dispatcher.c
56
m_msg(&m, imsg);
usr.sbin/smtpd/dispatcher.c
62
m_msg(&m, imsg);
usr.sbin/smtpd/dispatcher.c
84
smtp_imsg(p, imsg);
usr.sbin/smtpd/dns.c
101
dns_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/dns.c
112
s->type = imsg->hdr.type;
usr.sbin/smtpd/dns.c
115
m_msg(&m, imsg);
usr.sbin/smtpd/enqueue.c
801
struct imsg imsg;
usr.sbin/smtpd/enqueue.c
816
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/smtpd/enqueue.c
821
switch (imsg.hdr.type) {
usr.sbin/smtpd/enqueue.c
830
fd = imsg_get_fd(&imsg);
usr.sbin/smtpd/enqueue.c
831
imsg_free(&imsg);
usr.sbin/smtpd/lka.c
103
dns_imsg(p, imsg);
usr.sbin/smtpd/lka.c
107
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
123
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
131
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
149
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
175
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
192
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
207
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
238
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
256
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
312
lka_session_forward_reply(imsg->data, imsg_get_fd(imsg));
usr.sbin/smtpd/lka.c
316
imsg->hdr.type = IMSG_SMTP_AUTHENTICATE;
usr.sbin/smtpd/lka.c
317
m_forward(p_dispatcher, imsg);
usr.sbin/smtpd/lka.c
321
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
328
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
33
static void lka_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/lka.c
336
table = table_find(env, imsg->data);
usr.sbin/smtpd/lka.c
339
"\"%s\"", (char *)imsg->data);
usr.sbin/smtpd/lka.c
345
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/lka.c
349
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
359
lka_proc_forked(procname, tag, subsystems, imsg_get_fd(imsg));
usr.sbin/smtpd/lka.c
363
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
367
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/lka.c
373
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
387
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
398
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
408
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
420
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
431
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
443
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
454
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
465
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
478
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
48
lka_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/lka.c
491
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
503
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
515
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
527
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
538
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
549
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
560
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
574
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
584
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
594
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
603
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
611
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
619
m_msg(&m, imsg);
usr.sbin/smtpd/lka.c
628
fatalx("lka_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/lka.c
89
if (imsg == NULL)
usr.sbin/smtpd/lka.c
92
switch (imsg->hdr.type) {
usr.sbin/smtpd/lka.c
97
resolver_dispatch_request(p, imsg);
usr.sbin/smtpd/mda.c
103
mda_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/mda.c
121
switch (imsg->hdr.type) {
usr.sbin/smtpd/mda.c
123
m_msg(&m, imsg);
usr.sbin/smtpd/mda.c
152
m_msg(&m, imsg);
usr.sbin/smtpd/mda.c
192
m_msg(&m, imsg);
usr.sbin/smtpd/mda.c
199
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/mda.c
281
m_msg(&m, imsg);
usr.sbin/smtpd/mda.c
287
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/mda.c
307
m_msg(&m, imsg);
usr.sbin/smtpd/mda.c
320
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/mda.c
373
fatalx("mda_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/mproc.c
136
struct imsg imsg;
usr.sbin/smtpd/mproc.c
181
if ((n = imsgbuf_get(&p->imsgbuf, &imsg)) == -1) {
usr.sbin/smtpd/mproc.c
197
p->handler(p, &imsg);
usr.sbin/smtpd/mproc.c
199
imsg_free(&imsg);
usr.sbin/smtpd/mproc.c
206
m_forward(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/mproc.c
208
imsg_compose(&p->imsgbuf, imsg->hdr.type, imsg->hdr.peerid,
usr.sbin/smtpd/mproc.c
209
imsg->hdr.pid, imsg_get_fd(imsg), imsg->data,
usr.sbin/smtpd/mproc.c
210
imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/mproc.c
212
if (imsg->hdr.type != IMSG_STAT_DECREMENT &&
usr.sbin/smtpd/mproc.c
213
imsg->hdr.type != IMSG_STAT_INCREMENT)
usr.sbin/smtpd/mproc.c
217
imsg->hdr.len - sizeof(imsg->hdr),
usr.sbin/smtpd/mproc.c
218
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/mproc.c
341
static struct imsg * current;
usr.sbin/smtpd/mproc.c
356
m_msg(struct msg *m, struct imsg *imsg)
usr.sbin/smtpd/mproc.c
358
current = imsg;
usr.sbin/smtpd/mproc.c
359
m->pos = imsg->data;
usr.sbin/smtpd/mproc.c
360
m->end = m->pos + (imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/mta.c
173
mta_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/mta.c
197
switch (imsg->hdr.type) {
usr.sbin/smtpd/mta.c
199
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
206
mta_session_imsg(p, imsg);
usr.sbin/smtpd/mta.c
210
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
219
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
232
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
245
mta_session_imsg(p, imsg);
usr.sbin/smtpd/mta.c
249
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
270
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
293
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
311
u64 = *((uint64_t *)imsg->data);
usr.sbin/smtpd/mta.c
351
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/mta.c
354
m_compose(p, IMSG_CTL_MTA_SHOW_HOSTS, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
361
mta_relay_show(relay, p, imsg->hdr.peerid, t);
usr.sbin/smtpd/mta.c
362
m_compose(p, IMSG_CTL_MTA_SHOW_RELAYS, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
382
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/mta.c
385
m_compose(p, IMSG_CTL_MTA_SHOW_ROUTES, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
398
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/mta.c
402
imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
407
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
420
m_compose(p, IMSG_CTL_OK, imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/mta.c
424
m_msg(&m, imsg);
usr.sbin/smtpd/mta.c
437
m_compose(p, IMSG_CTL_OK, imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/mta.c
446
imsg->hdr.peerid, 0, -1, buf, strlen(buf) + 1);
usr.sbin/smtpd/mta.c
448
m_compose(p, IMSG_CTL_MTA_SHOW_BLOCK, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
453
fatalx("mta_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/mta_session.c
266
mta_session_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/mta_session.c
275
switch (imsg->hdr.type) {
usr.sbin/smtpd/mta_session.c
278
m_msg(&m, imsg);
usr.sbin/smtpd/mta_session.c
282
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/mta_session.c
325
m_msg(&m, imsg);
usr.sbin/smtpd/mta_session.c
348
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/queue.c
115
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
129
bounce_fd(imsg_get_fd(imsg));
usr.sbin/smtpd/queue.c
133
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
162
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
172
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
189
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
211
CHECK_IMSG_DATA_SIZE(imsg, sizeof *req_bounce);
usr.sbin/smtpd/queue.c
212
req_bounce = imsg->data;
usr.sbin/smtpd/queue.c
230
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
248
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
255
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
273
if (imsg->hdr.len == sizeof imsg->hdr) {
usr.sbin/smtpd/queue.c
274
m_forward(p_control, imsg);
usr.sbin/smtpd/queue.c
278
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
302
imsg->hdr.peerid, 0, -1);
usr.sbin/smtpd/queue.c
311
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
316
m_create(p, imsg->hdr.type, 0, 0, fd);
usr.sbin/smtpd/queue.c
32
static void queue_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/queue.c
323
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
325
if (imsg->hdr.type == IMSG_MTA_DELIVERY_OK)
usr.sbin/smtpd/queue.c
336
if (imsg->hdr.type == IMSG_MDA_DELIVERY_OK)
usr.sbin/smtpd/queue.c
338
else if (imsg->hdr.type == IMSG_MTA_DELIVERY_OK &&
usr.sbin/smtpd/queue.c
352
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
378
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
404
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
41
queue_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/queue.c
428
imsg->hdr.type = IMSG_QUEUE_HOLDQ_HOLD;
usr.sbin/smtpd/queue.c
429
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/queue.c
433
imsg->hdr.type = IMSG_QUEUE_ENVELOPE_SCHEDULE;
usr.sbin/smtpd/queue.c
434
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/queue.c
439
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
444
if (imsg->hdr.type == IMSG_MTA_HOLDQ_RELEASE)
usr.sbin/smtpd/queue.c
457
m_forward(p_scheduler, imsg);
usr.sbin/smtpd/queue.c
461
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
468
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
475
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
482
m_compose(p_control, imsg->hdr.type,
usr.sbin/smtpd/queue.c
483
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/queue.c
498
m_compose(p_control, imsg->hdr.type, imsg->hdr.peerid,
usr.sbin/smtpd/queue.c
503
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
509
wi->peerid = imsg->hdr.peerid;
usr.sbin/smtpd/queue.c
517
fatalx("queue_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/queue.c
56
if (imsg == NULL)
usr.sbin/smtpd/queue.c
61
switch (imsg->hdr.type) {
usr.sbin/smtpd/queue.c
63
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
81
m_msg(&m, imsg);
usr.sbin/smtpd/queue.c
94
m_msg(&m, imsg);
usr.sbin/smtpd/queue_proc.c
173
return (imsg_get_fd(&imsg));
usr.sbin/smtpd/queue_proc.c
27
static struct imsg imsg;
usr.sbin/smtpd/queue_proc.c
42
if ((n = imsgbuf_get(&ibuf, &imsg)) == -1) {
usr.sbin/smtpd/queue_proc.c
47
rlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/smtpd/queue_proc.c
48
rdata = imsg.data;
usr.sbin/smtpd/queue_proc.c
50
if (imsg.hdr.type != PROC_QUEUE_OK) {
usr.sbin/smtpd/queue_proc.c
91
imsg_free(&imsg);
usr.sbin/smtpd/resolver.c
150
resolver_dispatch_request(struct mproc *proc, struct imsg *imsg)
usr.sbin/smtpd/resolver.c
162
reqid = imsg->hdr.peerid;
usr.sbin/smtpd/resolver.c
163
m_msg(&m, imsg);
usr.sbin/smtpd/resolver.c
165
switch (imsg->hdr.type) {
usr.sbin/smtpd/resolver.c
268
fatalx("%s: %s", __func__, imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/resolver.c
300
resolver_dispatch_result(struct mproc *proc, struct imsg *imsg)
usr.sbin/smtpd/resolver.c
311
key.id = imsg->hdr.peerid;
usr.sbin/smtpd/resolver.c
314
fatalx("%s: unknown request %08x", __func__, imsg->hdr.peerid);
usr.sbin/smtpd/resolver.c
316
m_msg(&m, imsg);
usr.sbin/smtpd/resolver.c
318
switch (imsg->hdr.type) {
usr.sbin/smtpd/scheduler.c
105
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
123
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
134
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
154
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
166
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
180
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
211
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
225
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
239
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
253
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
288
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
295
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
30
static void scheduler_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/scheduler.c
302
msgid = *(uint32_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
304
m_compose(p, IMSG_CTL_LIST_MESSAGES, imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/scheduler.c
309
id = *(uint64_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
313
imsg->hdr.peerid, 0, -1);
usr.sbin/smtpd/scheduler.c
320
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/scheduler.c
324
id = *(uint64_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
333
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
338
id = *(uint64_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
344
id = *(uint64_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
353
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
358
id = *(uint64_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
367
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
372
id = *(uint64_t *)(imsg->data);
usr.sbin/smtpd/scheduler.c
381
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
387
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/scheduler.c
46
scheduler_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/scheduler.c
59
if (imsg == NULL)
usr.sbin/smtpd/scheduler.c
62
switch (imsg->hdr.type) {
usr.sbin/smtpd/scheduler.c
65
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
76
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler.c
88
m_msg(&m, imsg);
usr.sbin/smtpd/scheduler_proc.c
26
static struct imsg imsg;
usr.sbin/smtpd/scheduler_proc.c
41
if ((n = imsgbuf_get(&ibuf, &imsg)) == -1) {
usr.sbin/smtpd/scheduler_proc.c
46
rlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/smtpd/scheduler_proc.c
47
rdata = imsg.data;
usr.sbin/smtpd/scheduler_proc.c
49
if (imsg.hdr.type != PROC_SCHEDULER_OK) {
usr.sbin/smtpd/scheduler_proc.c
90
imsg_free(&imsg);
usr.sbin/smtpd/smtp.c
104
fatalx("smtp_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/smtp.c
61
smtp_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/smtp.c
63
switch (imsg->hdr.type) {
usr.sbin/smtpd/smtp.c
70
smtp_session_imsg(p, imsg);
usr.sbin/smtpd/smtp.c
78
smtp_session_imsg(p, imsg);
usr.sbin/smtpd/smtp.c
83
imsg->data, imsg->hdr.len - sizeof imsg->hdr);
usr.sbin/smtpd/smtp.c
87
m_compose(p, IMSG_CTL_SMTP_SESSION, imsg->hdr.peerid, 0,
usr.sbin/smtpd/smtp_session.c
1049
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/smtp_session.c
692
smtp_session_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/smtp_session.c
707
switch (imsg->hdr.type) {
usr.sbin/smtpd/smtp_session.c
710
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
733
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
763
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
776
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
797
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
802
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/smtp_session.c
824
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
829
fd = imsg_get_fd(imsg);
usr.sbin/smtpd/smtp_session.c
847
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
863
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
896
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
940
m_msg(&m, imsg);
usr.sbin/smtpd/smtp_session.c
982
m_msg(&m, imsg);
usr.sbin/smtpd/smtpctl.c
183
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/smtpd/smtpctl.c
186
if (imsg.hdr.type == IMSG_CTL_FAIL &&
usr.sbin/smtpd/smtpctl.c
187
imsg.hdr.peerid != 0 &&
usr.sbin/smtpd/smtpctl.c
188
imsg.hdr.peerid != IMSG_VERSION)
usr.sbin/smtpd/smtpctl.c
190
if (type != -1 && type != (int)imsg.hdr.type)
usr.sbin/smtpd/smtpctl.c
192
rdata = imsg.data;
usr.sbin/smtpd/smtpctl.c
193
rlen = imsg.hdr.len - sizeof(imsg.hdr);
usr.sbin/smtpd/smtpctl.c
282
imsg_free(&imsg);
usr.sbin/smtpd/smtpctl.c
291
switch (imsg.hdr.type) {
usr.sbin/smtpd/smtpctl.c
305
errx(1, "wrong message in response: %u", imsg.hdr.type);
usr.sbin/smtpd/smtpctl.c
71
struct imsg imsg;
usr.sbin/smtpd/smtpd.c
1008
imsg_wait(struct imsgbuf *ibuf, struct imsg *imsg, int timeout)
usr.sbin/smtpd/smtpd.c
1017
if ((n = imsgbuf_get(ibuf, imsg)) == -1)
usr.sbin/smtpd/smtpd.c
118
void (*imsg_callback)(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.c
144
parent_imsg(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/smtpd.c
158
if (imsg == NULL)
usr.sbin/smtpd/smtpd.c
161
switch (imsg->hdr.type) {
usr.sbin/smtpd/smtpd.c
163
CHECK_IMSG_DATA_SIZE(imsg, sizeof *fwreq);
usr.sbin/smtpd/smtpd.c
164
fwreq = imsg->data;
usr.sbin/smtpd/smtpd.c
1839
imsg_dispatch(struct mproc *p, struct imsg *imsg)
usr.sbin/smtpd/smtpd.c
1844
if (imsg == NULL) {
usr.sbin/smtpd/smtpd.c
1845
imsg_callback(p, imsg);
usr.sbin/smtpd/smtpd.c
1849
log_imsg(smtpd_process, p->proc, imsg);
usr.sbin/smtpd/smtpd.c
185
m_msg(&m, imsg);
usr.sbin/smtpd/smtpd.c
1854
msg = imsg->hdr.type;
usr.sbin/smtpd/smtpd.c
1855
imsg_callback(p, imsg);
usr.sbin/smtpd/smtpd.c
1865
(int)imsg->hdr.len,
usr.sbin/smtpd/smtpd.c
203
m_msg(&m, imsg);
usr.sbin/smtpd/smtpd.c
214
m_msg(&m, imsg);
usr.sbin/smtpd/smtpd.c
241
m_msg(&m, imsg);
usr.sbin/smtpd/smtpd.c
248
m_msg(&m, imsg);
usr.sbin/smtpd/smtpd.c
255
m_msg(&m, imsg);
usr.sbin/smtpd/smtpd.c
270
imsg_to_str(imsg->hdr.type), proc_title(p->proc));
usr.sbin/smtpd/smtpd.c
49
static void parent_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.c
67
static int imsg_wait(struct imsgbuf *, struct imsg *, int);
usr.sbin/smtpd/smtpd.c
887
struct imsg imsg;
usr.sbin/smtpd/smtpd.c
894
if (imsg_wait(&p->imsgbuf, &imsg, 10000) == -1)
usr.sbin/smtpd/smtpd.c
897
if (imsg.hdr.type != IMSG_SETUP_DONE)
usr.sbin/smtpd/smtpd.c
902
imsg_free(&imsg);
usr.sbin/smtpd/smtpd.c
909
struct imsg imsg;
usr.sbin/smtpd/smtpd.c
926
if (imsg_wait(ibuf, &imsg, 10000) == -1)
usr.sbin/smtpd/smtpd.c
929
switch (imsg.hdr.type) {
usr.sbin/smtpd/smtpd.c
931
env->sc_queue_key = strdup(imsg.data);
usr.sbin/smtpd/smtpd.c
934
setup_peer(imsg.hdr.peerid, imsg.hdr.pid,
usr.sbin/smtpd/smtpd.c
935
imsg_get_fd(&imsg));
usr.sbin/smtpd/smtpd.c
941
fatal("bad imsg %d", imsg.hdr.type);
usr.sbin/smtpd/smtpd.c
943
imsg_free(&imsg);
usr.sbin/smtpd/smtpd.h
1015
extern void (*imsg_callback)(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1274
void ca_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1314
void dns_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1415
void mda_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1453
void m_forward(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1473
void m_msg(struct msg *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1496
void mta_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1511
void mta_session_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1578
void dispatcher_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1588
void resolver_dispatch_request(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1589
void resolver_dispatch_result(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1595
void smtp_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1603
void smtp_session_imsg(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1607
void imsg_dispatch(struct mproc *, struct imsg *);
usr.sbin/smtpd/smtpd.h
1725
void log_imsg(int, int, struct imsg *);
usr.sbin/smtpd/smtpd.h
40
#define CHECK_IMSG_DATA_SIZE(imsg, expected_sz) do { \
usr.sbin/smtpd/smtpd.h
41
if ((imsg)->hdr.len - IMSG_HEADER_SIZE != (expected_sz)) \
usr.sbin/smtpd/smtpd.h
43
(imsg)->hdr.type, \
usr.sbin/smtpd/smtpd.h
44
(expected_sz), (imsg)->hdr.len - IMSG_HEADER_SIZE); \
usr.sbin/smtpd/smtpd.h
978
void (*handler)(struct mproc *, struct imsg *);
usr.sbin/smtpd/util.c
1070
log_imsg(int to, int from, struct imsg *imsg)
usr.sbin/smtpd/util.c
1073
if (to == PROC_CONTROL && imsg->hdr.type == IMSG_STAT_SET)
usr.sbin/smtpd/util.c
1079
imsg_to_str(imsg->hdr.type),
usr.sbin/smtpd/util.c
1080
imsg->hdr.len - IMSG_HEADER_SIZE);
usr.sbin/snmpd/proc.c
52
int proc_dispatch_null(int, struct privsep_proc *, struct imsg *);
usr.sbin/snmpd/proc.c
603
struct imsg imsg;
usr.sbin/snmpd/proc.c
637
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/snmpd/proc.c
645
imsg_get_type(&imsg), imsg_get_id(&imsg),
usr.sbin/snmpd/proc.c
646
p->p_title, imsg_get_pid(&imsg));
usr.sbin/snmpd/proc.c
652
if ((p->p_cb)(fd, p, &imsg) == 0) {
usr.sbin/snmpd/proc.c
654
imsg_free(&imsg);
usr.sbin/snmpd/proc.c
661
switch (imsg_get_type(&imsg)) {
usr.sbin/snmpd/proc.c
663
if (imsg_get_data(&imsg, &ver, sizeof(ver)) == -1)
usr.sbin/snmpd/proc.c
675
if (imsg_get_data(&imsg, &pf, sizeof(pf)) == -1)
usr.sbin/snmpd/proc.c
678
proc_accept(ps, imsg_get_fd(&imsg), pf.pf_procid,
usr.sbin/snmpd/proc.c
684
ps->ps_connecting, p->p_title, imsg_get_pid(&imsg),
usr.sbin/snmpd/proc.c
715
imsg_get_type(&imsg), imsg_get_id(&imsg),
usr.sbin/snmpd/proc.c
716
p->p_title, imsg_get_pid(&imsg));
usr.sbin/snmpd/proc.c
718
imsg_free(&imsg);
usr.sbin/snmpd/proc.c
724
proc_dispatch_null(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/snmpd/proc.c
835
proc_forward_imsg(struct privsep *ps, struct imsg *imsg,
usr.sbin/snmpd/proc.c
842
if (imsg_forward(&ps->ps_ievs[id][n].ibuf, imsg) == -1)
usr.sbin/snmpd/snmpd.c
287
snmpd_dispatch_snmpe(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/snmpd/snmpd.c
289
switch (imsg->hdr.type) {
usr.sbin/snmpd/snmpd.c
291
return (traphandler_priv_recvmsg(p, imsg));
usr.sbin/snmpd/snmpd.c
39
int snmpd_dispatch_snmpe(int, struct privsep_proc *, struct imsg *);
usr.sbin/snmpd/snmpd.h
108
#define IMSG_SIZE_CHECK(imsg, p) do { \
usr.sbin/snmpd/snmpd.h
109
if (IMSG_DATA_SIZE(imsg) < sizeof(*p)) \
usr.sbin/snmpd/snmpd.h
112
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
usr.sbin/snmpd/snmpd.h
160
struct imsg *);
usr.sbin/snmpd/snmpd.h
522
void proc_forward_imsg(struct privsep *, struct imsg *,
usr.sbin/snmpd/snmpd.h
532
int traphandler_priv_recvmsg(struct privsep_proc *, struct imsg *);
usr.sbin/snmpd/snmpe.c
136
snmpe_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/snmpd/snmpe.c
138
switch (imsg->hdr.type) {
usr.sbin/snmpd/snmpe.c
140
appl_agentx_backend(imsg_get_fd(imsg));
usr.sbin/snmpd/snmpe.c
47
int snmpe_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/snmpd/traphandler.c
250
traphandler_priv_recvmsg(struct privsep_proc *p, struct imsg *imsg)
usr.sbin/snmpd/traphandler.c
255
if ((n = IMSG_DATA_SIZE(imsg)) <= 0)
usr.sbin/snmpd/traphandler.c
260
traphandler_fork_handler(p, imsg);
usr.sbin/snmpd/traphandler.c
273
traphandler_fork_handler(struct privsep_proc *p, struct imsg *imsg)
usr.sbin/snmpd/traphandler.c
301
n = IMSG_DATA_SIZE(imsg);
usr.sbin/snmpd/traphandler.c
303
sa = imsg->data;
usr.sbin/snmpd/traphandler.c
305
buf = (char *)imsg->data + sa->sa_len;
usr.sbin/snmpd/traphandler.c
42
int traphandler_priv_recvmsg(struct privsep_proc *, struct imsg *);
usr.sbin/snmpd/traphandler.c
43
int traphandler_fork_handler(struct privsep_proc *, struct imsg *);
usr.sbin/unwindctl/unwindctl.c
191
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/unwindctl/unwindctl.c
198
done = show_status_msg(&imsg);
usr.sbin/unwindctl/unwindctl.c
201
done = show_autoconf_msg(&imsg);
usr.sbin/unwindctl/unwindctl.c
204
done = show_mem_msg(&imsg);
usr.sbin/unwindctl/unwindctl.c
209
imsg_free(&imsg);
usr.sbin/unwindctl/unwindctl.c
254
show_status_msg(struct imsg *imsg)
usr.sbin/unwindctl/unwindctl.c
258
switch (imsg->hdr.type) {
usr.sbin/unwindctl/unwindctl.c
260
memcpy(&info[info_cnt++], imsg->data, sizeof(info[0]));
usr.sbin/unwindctl/unwindctl.c
274
show_autoconf_msg(struct imsg *imsg)
usr.sbin/unwindctl/unwindctl.c
284
switch (imsg->hdr.type) {
usr.sbin/unwindctl/unwindctl.c
286
cfi = imsg->data;
usr.sbin/unwindctl/unwindctl.c
350
show_mem_msg(struct imsg *imsg)
usr.sbin/unwindctl/unwindctl.c
354
switch (imsg->hdr.type) {
usr.sbin/unwindctl/unwindctl.c
356
cmi = imsg->data;
usr.sbin/unwindctl/unwindctl.c
47
int show_status_msg(struct imsg *);
usr.sbin/unwindctl/unwindctl.c
48
int show_autoconf_msg(struct imsg *);
usr.sbin/unwindctl/unwindctl.c
49
int show_mem_msg(struct imsg *);
usr.sbin/unwindctl/unwindctl.c
91
struct imsg imsg;
usr.sbin/vmctl/main.c
185
struct imsg imsg;
usr.sbin/vmctl/main.c
277
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmctl/main.c
282
type = imsg_get_type(&imsg);
usr.sbin/vmctl/main.c
284
if (imsg_get_len(&imsg) == sizeof(ret))
usr.sbin/vmctl/main.c
285
ret = imsg_int_read(&imsg);
usr.sbin/vmctl/main.c
298
done = vm_start_complete(&imsg, &ret,
usr.sbin/vmctl/main.c
305
done = terminate_vm_complete(&imsg, &ret,
usr.sbin/vmctl/main.c
311
done = add_info(&imsg, &ret);
usr.sbin/vmctl/main.c
314
done = pause_vm_complete(&imsg, &ret);
usr.sbin/vmctl/main.c
317
done = unpause_vm_complete(&imsg, &ret);
usr.sbin/vmctl/main.c
324
imsg_free(&imsg);
usr.sbin/vmctl/vmctl.c
229
vm_start_complete(struct imsg *imsg, int *ret, int autoconnect)
usr.sbin/vmctl/vmctl.c
235
type = imsg_get_type(imsg);
usr.sbin/vmctl/vmctl.c
237
vmop_result_read(imsg, &vmr);
usr.sbin/vmctl/vmctl.c
298
pause_vm_complete(struct imsg *imsg, int *ret)
usr.sbin/vmctl/vmctl.c
304
type = imsg_get_type(imsg);
usr.sbin/vmctl/vmctl.c
306
vmop_result_read(imsg, &vmr);
usr.sbin/vmctl/vmctl.c
339
unpause_vm_complete(struct imsg *imsg, int *ret)
usr.sbin/vmctl/vmctl.c
345
type = imsg_get_type(imsg);
usr.sbin/vmctl/vmctl.c
347
vmop_result_read(imsg, &vmr);
usr.sbin/vmctl/vmctl.c
418
terminate_vm_complete(struct imsg *imsg, int *ret, unsigned int flags)
usr.sbin/vmctl/vmctl.c
424
type = imsg_get_type(imsg);
usr.sbin/vmctl/vmctl.c
427
vmop_result_read(imsg, &vmr);
usr.sbin/vmctl/vmctl.c
457
vmop_result_read(imsg, &vmr);
usr.sbin/vmctl/vmctl.c
613
add_info(struct imsg *imsg, int *ret)
usr.sbin/vmctl/vmctl.c
621
type = imsg_get_type(imsg);
usr.sbin/vmctl/vmctl.c
629
vmop_info_result_read(imsg, &vir[ct]);
usr.sbin/vmctl/vmctl.c
908
vmop_result_read(struct imsg *imsg, struct vmop_result *vmr)
usr.sbin/vmctl/vmctl.c
910
if (imsg_get_data(imsg, vmr, sizeof(*vmr)))
usr.sbin/vmctl/vmctl.c
917
vmop_info_result_read(struct imsg *imsg, struct vmop_info_result *vir)
usr.sbin/vmctl/vmctl.c
919
if (imsg_get_data(imsg, vir, sizeof(*vir)))
usr.sbin/vmctl/vmctl.c
927
imsg_int_read(struct imsg *imsg)
usr.sbin/vmctl/vmctl.c
931
if (imsg_get_data(imsg, &val, sizeof(val)))
usr.sbin/vmctl/vmctl.h
101
int vm_start_complete(struct imsg *, int *, int);
usr.sbin/vmctl/vmctl.h
103
int terminate_vm_complete(struct imsg *, int *, unsigned int);
usr.sbin/vmctl/vmctl.h
106
int pause_vm_complete(struct imsg *, int *);
usr.sbin/vmctl/vmctl.h
108
int unpause_vm_complete(struct imsg *, int *);
usr.sbin/vmctl/vmctl.h
111
int add_info(struct imsg *, int *);
usr.sbin/vmctl/vmctl.h
119
int imsg_int_read(struct imsg *);
usr.sbin/vmctl/vmctl.h
120
void vmop_result_read(struct imsg *, struct vmop_result *);
usr.sbin/vmctl/vmctl.h
121
void vmop_info_result_read(struct imsg *, struct vmop_info_result *);
usr.sbin/vmd/atomicio.c
159
imsgbuf_read_one(struct imsgbuf *imsgbuf, struct imsg *imsg)
usr.sbin/vmd/atomicio.c
167
switch (imsgbuf_get(imsgbuf, imsg)) {
usr.sbin/vmd/atomicio.h
57
struct imsg;
usr.sbin/vmd/atomicio.h
58
int imsgbuf_read_one(struct imsgbuf *, struct imsg *);
usr.sbin/vmd/config.c
152
config_getconfig(struct vmd *env, struct imsg *imsg)
usr.sbin/vmd/config.c
158
vmop_config_read(imsg, &env->vmd_cfg);
usr.sbin/vmd/config.c
560
config_getvm(struct privsep *ps, struct imsg *imsg)
usr.sbin/vmd/config.c
567
vmop_create_params_read(imsg, &vmc);
usr.sbin/vmd/config.c
569
fd = imsg_get_fd(imsg);
usr.sbin/vmd/config.c
570
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/config.c
595
config_getdisk(struct privsep *ps, struct imsg *imsg)
usr.sbin/vmd/config.c
602
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/config.c
609
n = imsg_uint_read(imsg);
usr.sbin/vmd/config.c
610
fd = imsg_get_fd(imsg);
usr.sbin/vmd/config.c
628
config_getif(struct privsep *ps, struct imsg *imsg)
usr.sbin/vmd/config.c
635
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/config.c
642
n = imsg_uint_read(imsg);
usr.sbin/vmd/config.c
643
fd = imsg_get_fd(imsg);
usr.sbin/vmd/config.c
660
config_getcdrom(struct privsep *ps, struct imsg *imsg)
usr.sbin/vmd/config.c
666
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/config.c
673
fd = imsg_get_fd(imsg);
usr.sbin/vmd/control.c
110
imsg_forward_event(&c->iev, imsg);
usr.sbin/vmd/control.c
113
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/control.c
148
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/control.c
163
config_getconfig(ps->ps_env, imsg);
usr.sbin/vmd/control.c
167
mode = imsg_uint_read(imsg);
usr.sbin/vmd/control.c
379
struct imsg imsg;
usr.sbin/vmd/control.c
405
if ((n = imsgbuf_get(&c->iev.ibuf, &imsg)) == -1) {
usr.sbin/vmd/control.c
413
type = imsg_get_type(&imsg);
usr.sbin/vmd/control.c
417
if (imsg_get_len(&imsg) != 0)
usr.sbin/vmd/control.c
424
if (imsg_get_len(&imsg) != sizeof(vid))
usr.sbin/vmd/control.c
428
if (imsg_get_len(&imsg) != sizeof(vmc))
usr.sbin/vmd/control.c
443
v = imsg_int_read(&imsg);
usr.sbin/vmd/control.c
452
if (proc_forward_imsg(ps, &imsg, PROC_PARENT, peer_id))
usr.sbin/vmd/control.c
456
vmop_create_params_read(&imsg, &vmc);
usr.sbin/vmd/control.c
461
kernfd = imsg_get_fd(&imsg);
usr.sbin/vmd/control.c
474
vmop_id_read(&imsg, &vid);
usr.sbin/vmd/control.c
506
vmop_id_read(&imsg, &vid);
usr.sbin/vmd/control.c
512
peer_id, imsg_get_fd(&imsg), &vid, sizeof(vid)))
usr.sbin/vmd/control.c
52
int control_dispatch_vmd(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/control.c
520
imsg_free(&imsg);
usr.sbin/vmd/control.c
527
imsg_free(&imsg);
usr.sbin/vmd/control.c
83
control_dispatch_vmd(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/control.c
93
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/control.c
94
type = imsg_get_type(imsg);
usr.sbin/vmd/priv.c
106
vmop_ifreq_read(imsg, &vfr);
usr.sbin/vmd/priv.c
232
vmop_addr_req_read(imsg, &vareq);
usr.sbin/vmd/priv.c
237
ifd = imsg_get_fd(imsg);
usr.sbin/vmd/priv.c
248
config_getconfig(env, imsg);
usr.sbin/vmd/priv.c
251
mode = imsg_uint_read(imsg);
usr.sbin/vmd/priv.c
42
int priv_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/priv.c
75
priv_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/priv.c
93
imsg_type = imsg_get_type(imsg);
usr.sbin/vmd/priv.c
94
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/proc.c
438
struct imsg imsg;
usr.sbin/vmd/proc.c
46
int proc_dispatch_null(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/proc.c
471
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/proc.c
479
if ((p->p_cb)(fd, p, &imsg) == 0) {
usr.sbin/vmd/proc.c
481
imsg_free(&imsg);
usr.sbin/vmd/proc.c
488
type = imsg_get_type(&imsg);
usr.sbin/vmd/proc.c
489
peer_id = imsg_get_id(&imsg);
usr.sbin/vmd/proc.c
490
pid = imsg_get_pid(&imsg);
usr.sbin/vmd/proc.c
494
verbose = imsg_int_read(&imsg);
usr.sbin/vmd/proc.c
502
imsg_free(&imsg);
usr.sbin/vmd/proc.c
508
proc_dispatch_null(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/proc.c
576
imsg_forward_event(struct imsgev *iev, struct imsg *imsg)
usr.sbin/vmd/proc.c
578
if (imsg_forward(&iev->ibuf, imsg) == -1)
usr.sbin/vmd/proc.c
626
proc_forward_imsg(struct privsep *ps, struct imsg *imsg, enum privsep_procid id,
usr.sbin/vmd/proc.c
634
fd = imsg_get_fd(imsg);
usr.sbin/vmd/proc.c
635
sz = imsg_get_len(imsg);
usr.sbin/vmd/proc.c
636
type = imsg_get_type(imsg);
usr.sbin/vmd/proc.c
639
peerid = imsg_get_id(imsg);
usr.sbin/vmd/proc.c
647
if (imsg_get_data(imsg, data, sz))
usr.sbin/vmd/proc.c
671
imsg_uint_read(struct imsg *imsg)
usr.sbin/vmd/proc.c
675
if (imsg_get_data(imsg, &val, sizeof(val)))
usr.sbin/vmd/proc.c
682
imsg_int_read(struct imsg *imsg)
usr.sbin/vmd/proc.c
686
if (imsg_get_data(imsg, &val, sizeof(val)))
usr.sbin/vmd/proc.c
693
imsg_string_read(struct imsg *imsg, size_t max)
usr.sbin/vmd/proc.c
698
sz = imsg_get_len(imsg);
usr.sbin/vmd/proc.c
704
if (imsg_get_data(imsg, s, sz))
usr.sbin/vmd/proc.h
112
struct imsg *);
usr.sbin/vmd/proc.h
146
void imsg_forward_event(struct imsgev *, struct imsg *);
usr.sbin/vmd/proc.h
155
int proc_forward_imsg(struct privsep *, struct imsg *,
usr.sbin/vmd/proc.h
190
int imsg_int_read(struct imsg *);
usr.sbin/vmd/proc.h
191
unsigned int imsg_uint_read(struct imsg *);
usr.sbin/vmd/proc.h
192
char *imsg_string_read(struct imsg *, size_t max);
usr.sbin/vmd/vioblk.c
401
struct imsg imsg;
usr.sbin/vmd/vioblk.c
431
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vioblk.c
436
type = imsg_get_type(&imsg);
usr.sbin/vmd/vioblk.c
445
verbose = imsg_int_read(&imsg);
usr.sbin/vmd/vioblk.c
452
imsg_free(&imsg);
usr.sbin/vmd/vioblk.c
468
struct imsg imsg;
usr.sbin/vmd/vioblk.c
497
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vioblk.c
503
viodev_msg_read(&imsg, &msg);
usr.sbin/vmd/vioblk.c
504
imsg_free(&imsg);
usr.sbin/vmd/vionet.c
843
struct imsg imsg;
usr.sbin/vmd/vionet.c
876
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vionet.c
881
type = imsg_get_type(&imsg);
usr.sbin/vmd/vionet.c
884
vionet_hostmac_read(&imsg, vionet);
usr.sbin/vmd/vionet.c
897
if (imsg_get_data(&imsg, &verbose, sizeof(verbose)))
usr.sbin/vmd/vionet.c
902
imsg_free(&imsg);
usr.sbin/vmd/vionet.c
918
struct imsg imsg;
usr.sbin/vmd/vionet.c
947
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vionet.c
953
viodev_msg_read(&imsg, &msg);
usr.sbin/vmd/vionet.c
954
imsg_free(&imsg);
usr.sbin/vmd/vioscsi.c
428
struct imsg imsg;
usr.sbin/vmd/vioscsi.c
458
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vioscsi.c
463
type = imsg_get_type(&imsg);
usr.sbin/vmd/vioscsi.c
472
verbose = imsg_int_read(&imsg);
usr.sbin/vmd/vioscsi.c
479
imsg_free(&imsg);
usr.sbin/vmd/vioscsi.c
494
struct imsg imsg;
usr.sbin/vmd/vioscsi.c
523
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vioscsi.c
529
viodev_msg_read(&imsg, &msg);
usr.sbin/vmd/vioscsi.c
530
imsg_free(&imsg);
usr.sbin/vmd/virtio.c
1532
struct imsg imsg;
usr.sbin/vmd/virtio.c
1638
ret = imsgbuf_read_one(&iev->ibuf, &imsg);
usr.sbin/vmd/virtio.c
1647
viodev_msg_read(&imsg, &msg);
usr.sbin/vmd/virtio.c
1648
imsg_free(&imsg);
usr.sbin/vmd/virtio.c
1768
struct imsg imsg;
usr.sbin/vmd/virtio.c
1799
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/virtio.c
1804
type = imsg_get_type(&imsg);
usr.sbin/vmd/virtio.c
1807
viodev_msg_read(&imsg, &msg);
usr.sbin/vmd/virtio.c
1814
imsg_free(&imsg);
usr.sbin/vmd/virtio.c
1865
struct imsg imsg;
usr.sbin/vmd/virtio.c
1916
ret = imsgbuf_read_one(ibuf, &imsg);
usr.sbin/vmd/virtio.c
1922
viodev_msg_read(&imsg, &msg);
usr.sbin/vmd/virtio.c
1923
imsg_free(&imsg);
usr.sbin/vmd/virtio.c
2024
viodev_msg_read(struct imsg *imsg, struct viodev_msg *msg)
usr.sbin/vmd/virtio.c
2026
if (imsg_get_data(imsg, msg, sizeof(*msg)))
usr.sbin/vmd/virtio.c
2031
vionet_hostmac_read(struct imsg *imsg, struct vionet_dev *dev)
usr.sbin/vmd/virtio.c
2033
if (imsg_get_data(imsg, dev->hostmac, sizeof(dev->hostmac)))
usr.sbin/vmd/virtio.h
419
void viodev_msg_read(struct imsg *, struct viodev_msg *);
usr.sbin/vmd/virtio.h
420
void vionet_hostmac_read(struct imsg *, struct vionet_dev *);
usr.sbin/vmd/vm.c
312
struct imsg imsg;
usr.sbin/vmd/vm.c
333
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vm.c
338
type = imsg_get_type(&imsg);
usr.sbin/vmd/vm.c
339
id = imsg_get_id(&imsg);
usr.sbin/vmd/vm.c
340
pid = imsg_get_pid(&imsg);
usr.sbin/vmd/vm.c
348
verbose = imsg_int_read(&imsg);
usr.sbin/vmd/vm.c
378
vmop_addr_result_read(&imsg, &var);
usr.sbin/vmd/vm.c
389
imsg_free(&imsg);
usr.sbin/vmd/vm_agentx.c
131
vm_agentx_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/vm_agentx.c
145
type = imsg_get_type(imsg);
usr.sbin/vmd/vm_agentx.c
161
vmop_info_result_read(imsg, &(vir[nvir++]));
usr.sbin/vmd/vm_agentx.c
250
config_getconfig(env, imsg);
usr.sbin/vmd/vm_agentx.c
39
int vm_agentx_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/vmd.c
103
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/vmd.c
104
type = imsg_get_type(imsg);
usr.sbin/vmd/vmd.c
108
vmop_create_params_read(imsg, &vmc);
usr.sbin/vmd/vmd.c
109
kernfd = imsg_get_fd(imsg);
usr.sbin/vmd/vmd.c
157
vmop_id_read(imsg, &vid);
usr.sbin/vmd/vmd.c
1822
vmop_result_read(struct imsg *imsg, struct vmop_result *vmr)
usr.sbin/vmd/vmd.c
1824
if (imsg_get_data(imsg, vmr, sizeof(*vmr)))
usr.sbin/vmd/vmd.c
1831
vmop_info_result_read(struct imsg *imsg, struct vmop_info_result *vir)
usr.sbin/vmd/vmd.c
1833
if (imsg_get_data(imsg, vir, sizeof(*vir)))
usr.sbin/vmd/vmd.c
1841
vmop_id_read(struct imsg *imsg, struct vmop_id *vid)
usr.sbin/vmd/vmd.c
1843
if (imsg_get_data(imsg, vid, sizeof(*vid)))
usr.sbin/vmd/vmd.c
1850
vmop_ifreq_read(struct imsg *imsg, struct vmop_ifreq *vfr)
usr.sbin/vmd/vmd.c
1852
if (imsg_get_data(imsg, vfr, sizeof(*vfr)))
usr.sbin/vmd/vmd.c
1860
vmop_addr_req_read(struct imsg *imsg, struct vmop_addr_req *var)
usr.sbin/vmd/vmd.c
1862
if (imsg_get_data(imsg, var, sizeof(*var)))
usr.sbin/vmd/vmd.c
1867
vmop_addr_result_read(struct imsg *imsg, struct vmop_addr_result *var)
usr.sbin/vmd/vmd.c
1869
if (imsg_get_data(imsg, var, sizeof(*var)))
usr.sbin/vmd/vmd.c
1874
vmop_owner_read(struct imsg *imsg, struct vmop_owner *vo)
usr.sbin/vmd/vmd.c
1876
if (imsg_get_data(imsg, vo, sizeof(*vo)))
usr.sbin/vmd/vmd.c
1881
vmop_create_params_read(struct imsg *imsg, struct vmop_create_params *vmc)
usr.sbin/vmd/vmd.c
1885
if (imsg_get_data(imsg, vmc, sizeof(*vmc)))
usr.sbin/vmd/vmd.c
1910
vmop_config_read(struct imsg *imsg, struct vmd_config *cfg)
usr.sbin/vmd/vmd.c
1914
if (imsg_get_data(imsg, cfg, sizeof(*cfg)))
usr.sbin/vmd/vmd.c
199
proc_forward_imsg(ps, imsg, PROC_VMM, -1);
usr.sbin/vmd/vmd.c
202
str = imsg_string_read(imsg, PATH_MAX);
usr.sbin/vmd/vmd.c
212
v = imsg_uint_read(imsg);
usr.sbin/vmd/vmd.c
219
verbose = imsg_int_read(imsg);
usr.sbin/vmd/vmd.c
230
vmop_id_read(imsg, &vid);
usr.sbin/vmd/vmd.c
289
vmd_dispatch_vmm(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/vmd.c
297
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/vmd.c
298
type = imsg_get_type(imsg);
usr.sbin/vmd/vmd.c
302
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/vmd.c
312
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/vmd.c
322
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/vmd.c
366
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/vmd.c
371
proc_forward_imsg(ps, imsg, PROC_CONTROL, -1);
usr.sbin/vmd/vmd.c
380
vmop_result_read(imsg, &vmr);
usr.sbin/vmd/vmd.c
406
vmop_info_result_read(imsg, &vir);
usr.sbin/vmd/vmd.c
460
proc_forward_imsg(ps, imsg,
usr.sbin/vmd/vmd.c
472
vmd_dispatch_agentx(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/vmd.c
477
type = imsg_get_type(imsg);
usr.sbin/vmd/vmd.c
480
proc_forward_imsg(ps, imsg, PROC_VMM, -1);
usr.sbin/vmd/vmd.c
489
vmd_dispatch_priv(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/vmd.c
493
type = imsg_get_type(imsg);
usr.sbin/vmd/vmd.c
496
proc_forward_imsg(p->p_ps, imsg, PROC_VMM, -1);
usr.sbin/vmd/vmd.c
52
int vmd_dispatch_control(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/vmd.c
53
int vmd_dispatch_vmm(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/vmd.c
54
int vmd_dispatch_agentx(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/vmd.c
55
int vmd_dispatch_priv(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/vmd.c
90
vmd_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/vmd.h
495
void vmop_result_read(struct imsg *, struct vmop_result *);
usr.sbin/vmd/vmd.h
496
void vmop_info_result_read(struct imsg *, struct vmop_info_result *);
usr.sbin/vmd/vmd.h
497
void vmop_id_read(struct imsg *, struct vmop_id *);
usr.sbin/vmd/vmd.h
498
void vmop_ifreq_read(struct imsg *, struct vmop_ifreq *);
usr.sbin/vmd/vmd.h
499
void vmop_addr_req_read(struct imsg *, struct vmop_addr_req *);
usr.sbin/vmd/vmd.h
500
void vmop_addr_result_read(struct imsg *, struct vmop_addr_result *);
usr.sbin/vmd/vmd.h
501
void vmop_owner_read(struct imsg *, struct vmop_owner *);
usr.sbin/vmd/vmd.h
502
void vmop_create_params_read(struct imsg *, struct vmop_create_params *);
usr.sbin/vmd/vmd.h
503
void vmop_config_read(struct imsg *, struct vmd_config *);
usr.sbin/vmd/vmd.h
571
int config_getconfig(struct vmd *, struct imsg *);
usr.sbin/vmd/vmd.h
574
int config_getvm(struct privsep *, struct imsg *);
usr.sbin/vmd/vmd.h
575
int config_getdisk(struct privsep *, struct imsg *);
usr.sbin/vmd/vmd.h
576
int config_getif(struct privsep *, struct imsg *);
usr.sbin/vmd/vmd.h
577
int config_getcdrom(struct privsep *, struct imsg *);
usr.sbin/vmd/vmm.c
106
vmm_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
usr.sbin/vmd/vmm.c
119
pid = imsg_get_pid(imsg);
usr.sbin/vmd/vmm.c
120
type = imsg_get_type(imsg);
usr.sbin/vmd/vmm.c
123
vm_id = imsg_get_id(imsg);
usr.sbin/vmd/vmm.c
127
res = config_getvm(ps, imsg);
usr.sbin/vmd/vmm.c
134
res = config_getcdrom(ps, imsg);
usr.sbin/vmd/vmm.c
141
res = config_getdisk(ps, imsg);
usr.sbin/vmd/vmm.c
148
res = config_getif(ps, imsg);
usr.sbin/vmd/vmm.c
155
res = vmm_start_vm(imsg, &id, &vm_pid);
usr.sbin/vmd/vmm.c
162
vmop_id_read(imsg, &vid);
usr.sbin/vmd/vmm.c
216
res = get_info_vm(ps, imsg, 0);
usr.sbin/vmd/vmm.c
220
config_getconfig(env, imsg);
usr.sbin/vmd/vmm.c
223
mode = imsg_uint_read(imsg);
usr.sbin/vmd/vmm.c
232
verbose = imsg_int_read(imsg);
usr.sbin/vmd/vmm.c
242
vmop_id_read(imsg, &vid);
usr.sbin/vmd/vmm.c
250
imsg_get_fd(imsg), &vid, sizeof(vid));
usr.sbin/vmd/vmm.c
253
vmop_id_read(imsg, &vid);
usr.sbin/vmd/vmm.c
261
imsg_get_fd(imsg), &vid, sizeof(vid));
usr.sbin/vmd/vmm.c
264
vmop_addr_result_read(imsg, &var);
usr.sbin/vmd/vmm.c
271
imsg_get_fd(imsg), &var, sizeof(var));
usr.sbin/vmd/vmm.c
276
env->vmd_vmm_fd = imsg_get_fd(imsg);
usr.sbin/vmd/vmm.c
284
env->vmd_psp_fd = imsg_get_fd(imsg);
usr.sbin/vmd/vmm.c
44
int vmm_start_vm(struct imsg *, uint32_t *, pid_t *);
usr.sbin/vmd/vmm.c
45
int vmm_dispatch_parent(int, struct privsep_proc *, struct imsg *);
usr.sbin/vmd/vmm.c
457
struct imsg imsg;
usr.sbin/vmd/vmm.c
484
if ((n = imsgbuf_get(ibuf, &imsg)) == -1)
usr.sbin/vmd/vmm.c
489
type = imsg_get_type(&imsg);
usr.sbin/vmd/vmm.c
49
int get_info_vm(struct privsep *, struct imsg *, int);
usr.sbin/vmd/vmm.c
502
&imsg, PROC_PARENT, -1);
usr.sbin/vmd/vmm.c
512
imsg_free(&imsg);
usr.sbin/vmd/vmm.c
599
vmm_start_vm(struct imsg *imsg, uint32_t *id, pid_t *pid)
usr.sbin/vmd/vmm.c
609
peer_id = imsg_get_id(imsg);
usr.sbin/vmd/vmm.c
615
if ((vm->vm_tty = imsg_get_fd(imsg)) == -1) {
usr.sbin/vmd/vmm.c
792
get_info_vm(struct privsep *ps, struct imsg *imsg, int terminate)
usr.sbin/vmd/vmm.c
860
peer_id = imsg_get_id(imsg);
usr.sbin/ypldap/ldapclient.c
128
struct imsg imsg;
usr.sbin/ypldap/ldapclient.c
159
if ((n = imsg_get(ibuf, &imsg)) == -1)
usr.sbin/ypldap/ldapclient.c
164
switch (imsg.hdr.type) {
usr.sbin/ypldap/ldapclient.c
167
if (idm->idm_id == imsg.hdr.peerid)
usr.sbin/ypldap/ldapclient.c
178
dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ypldap/ldapclient.c
184
data = (u_char *)imsg.data;
usr.sbin/ypldap/ldapclient.c
203
imsg_free(&imsg);
usr.sbin/ypldap/ldapclient.c
235
struct imsg imsg;
usr.sbin/ypldap/ldapclient.c
259
if ((n = imsg_get(ibuf, &imsg)) == -1)
usr.sbin/ypldap/ldapclient.c
264
switch (imsg.hdr.type) {
usr.sbin/ypldap/ldapclient.c
272
memcpy(&params, imsg.data, sizeof(params));
usr.sbin/ypldap/ldapclient.c
288
memcpy(idm, imsg.data, sizeof(*idm));
usr.sbin/ypldap/ldapclient.c
300
imsg.hdr.type);
usr.sbin/ypldap/ldapclient.c
304
imsg_free(&imsg);
usr.sbin/ypldap/ypldap.c
358
struct imsg imsg;
usr.sbin/ypldap/ypldap.c
379
if ((n = imsg_get(ibuf, &imsg)) == -1)
usr.sbin/ypldap/ypldap.c
384
switch (imsg.hdr.type) {
usr.sbin/ypldap/ypldap.c
397
(void)memcpy(&ir, imsg.data, n - IMSG_HEADER_SIZE);
usr.sbin/ypldap/ypldap.c
425
(void)memcpy(&ir, imsg.data, n - IMSG_HEADER_SIZE);
usr.sbin/ypldap/ypldap.c
453
imsg.hdr.type);
usr.sbin/ypldap/ypldap.c
456
imsg_free(&imsg);
usr.sbin/ypldap/ypldap_dns.c
134
struct imsg imsg;
usr.sbin/ypldap/ypldap_dns.c
165
if ((n = imsg_get(ibuf, &imsg)) == -1)
usr.sbin/ypldap/ypldap_dns.c
170
switch (imsg.hdr.type) {
usr.sbin/ypldap/ypldap_dns.c
172
name = imsg.data;
usr.sbin/ypldap/ypldap_dns.c
173
if (imsg.hdr.len < 1 + IMSG_HEADER_SIZE)
usr.sbin/ypldap/ypldap_dns.c
175
len = imsg.hdr.len - 1 - IMSG_HEADER_SIZE;
usr.sbin/ypldap/ypldap_dns.c
182
imsg.hdr.peerid, 0,
usr.sbin/ypldap/ypldap_dns.c
200
imsg_free(&imsg);