/openbsd/usr.sbin/dvmrpd/ |
H A D | rde.c | 52 static struct imsgev *iev_main; variable 123 (iev_main = malloc(sizeof(struct imsgev))) == NULL) in rde() 129 imsg_init(&iev_main->ibuf, pipe_parent2rde[1]); in rde() 130 iev_main->handler = rde_dispatch_imsg; in rde() 138 iev_main->events = EV_READ; in rde() 139 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in rde() 140 iev_main->handler, iev_main); in rde() 141 event_add(&iev_main->ev, NULL); in rde() 161 msgbuf_clear(&iev_main->ibuf.w); in rde_shutdown() 162 close(iev_main->ibuf.fd); in rde_shutdown() [all …]
|
H A D | dvmrpe.c | 50 static struct imsgev *iev_main; variable 149 imsg_init(&iev_main->ibuf, pipe_parent2dvmrpe[1]); in dvmrpe() 150 iev_main->handler = dvmrpe_dispatch_main; in dvmrpe() 158 iev_main->events = EV_READ; in dvmrpe() 159 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in dvmrpe() 160 iev_main->handler, iev_main); in dvmrpe() 161 event_add(&iev_main->ev, NULL); in dvmrpe() 197 msgbuf_write(&iev_main->ibuf.w); in dvmrpe_shutdown() 198 msgbuf_clear(&iev_main->ibuf.w); in dvmrpe_shutdown() 199 close(iev_main->ibuf.fd); in dvmrpe_shutdown() [all …]
|
/openbsd/usr.sbin/ripd/ |
H A D | rde.c | 45 static struct imsgev *iev_main; variable 130 (iev_main = malloc(sizeof(struct imsgev))) == NULL) in rde() 134 imsg_init(&iev_main->ibuf, pipe_parent2rde[1]); in rde() 135 iev_main->handler = rde_dispatch_parent; in rde() 143 iev_main->events = EV_READ; in rde() 144 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in rde() 145 iev_main->handler, iev_main); in rde() 146 event_add(&iev_main->ev, NULL); in rde() 169 msgbuf_clear(&iev_main->ibuf.w); in rde_shutdown() 170 close(iev_main->ibuf.fd); in rde_shutdown() [all …]
|
H A D | ripe.c | 49 static struct imsgev *iev_main; variable 158 imsg_init(&iev_main->ibuf, pipe_parent2ripe[1]); in ripe() 159 iev_main->handler = ripe_dispatch_main; in ripe() 167 iev_main->events = EV_READ; in ripe() 168 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in ripe() 169 iev_main->handler, iev_main); in ripe() 170 event_add(&iev_main->ev, NULL); in ripe() 458 msgbuf_write(&iev_main->ibuf.w); in ripe_shutdown() 459 msgbuf_clear(&iev_main->ibuf.w); in ripe_shutdown() 460 close(iev_main->ibuf.fd); in ripe_shutdown() [all …]
|
/openbsd/usr.sbin/eigrpd/ |
H A D | eigrpe.c | 49 static struct imsgev *iev_main; variable 149 imsg_init(&iev_main->ibuf, 3); in eigrpe() 150 iev_main->handler = eigrpe_dispatch_main; in eigrpe() 151 iev_main->events = EV_READ; in eigrpe() 152 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in eigrpe() 153 iev_main->handler, iev_main); in eigrpe() 154 event_add(&iev_main->ev, NULL); in eigrpe() 179 msgbuf_write(&iev_main->ibuf.w); in eigrpe_shutdown() 180 msgbuf_clear(&iev_main->ibuf.w); in eigrpe_shutdown() 181 close(iev_main->ibuf.fd); in eigrpe_shutdown() [all …]
|
H A D | rde.c | 51 static struct imsgev *iev_main; variable 115 imsg_init(&iev_main->ibuf, 3); in rde() 116 iev_main->handler = rde_dispatch_parent; in rde() 117 iev_main->events = EV_READ; in rde() 118 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in rde() 119 iev_main->handler, iev_main); in rde() 120 event_add(&iev_main->ev, NULL); in rde() 136 msgbuf_clear(&iev_main->ibuf.w); in rde_shutdown() 137 close(iev_main->ibuf.fd); in rde_shutdown() 142 free(iev_main); in rde_shutdown() [all …]
|
/openbsd/usr.sbin/rad/ |
H A D | engine.c | 73 static struct imsgev *iev_main; variable 134 if ((iev_main = malloc(sizeof(struct imsgev))) == NULL) in engine() 137 imsg_init(&iev_main->ibuf, 3); in engine() 138 iev_main->handler = engine_dispatch_main; in engine() 141 iev_main->events = EV_READ; in engine() 142 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in engine() 143 iev_main->handler, iev_main); in engine() 144 event_add(&iev_main->ev, NULL); in engine() 164 msgbuf_clear(&iev_main->ibuf.w); in engine_shutdown() 165 close(iev_main->ibuf.fd); in engine_shutdown() [all …]
|
H A D | frontend.c | 169 static struct imsgev *iev_main; variable 243 imsg_init(&iev_main->ibuf, 3); in frontend() 244 iev_main->handler = frontend_dispatch_main; in frontend() 245 iev_main->events = EV_READ; in frontend() 246 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in frontend() 247 iev_main->handler, iev_main); in frontend() 248 event_add(&iev_main->ev, NULL); in frontend() 279 msgbuf_write(&iev_main->ibuf.w); in frontend_shutdown() 280 msgbuf_clear(&iev_main->ibuf.w); in frontend_shutdown() 281 close(iev_main->ibuf.fd); in frontend_shutdown() [all …]
|
/openbsd/usr.sbin/ldpd/ |
H A D | ldpe.c | 49 static struct imsgev *iev_main; variable 126 imsg_init(&iev_main->ibuf, 3); in ldpe() 127 iev_main->handler = ldpe_dispatch_main; in ldpe() 128 iev_main->events = EV_READ; in ldpe() 129 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in ldpe() 130 iev_main->handler, iev_main); in ldpe() 131 event_add(&iev_main->ev, NULL); in ldpe() 165 msgbuf_write(&iev_main->ibuf.w); in ldpe_shutdown() 166 msgbuf_clear(&iev_main->ibuf.w); in ldpe_shutdown() 167 close(iev_main->ibuf.fd); in ldpe_shutdown() [all …]
|
H A D | lde.c | 66 static struct imsgev *iev_main; variable 129 if ((iev_main = malloc(sizeof(struct imsgev))) == NULL) in lde() 131 imsg_init(&iev_main->ibuf, 3); in lde() 132 iev_main->handler = lde_dispatch_parent; in lde() 133 iev_main->events = EV_READ; in lde() 134 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in lde() 135 iev_main->handler, iev_main); in lde() 136 event_add(&iev_main->ev, NULL); in lde() 156 msgbuf_clear(&iev_main->ibuf.w); in lde_shutdown() 157 close(iev_main->ibuf.fd); in lde_shutdown() [all …]
|
/openbsd/sbin/dhcp6leased/ |
H A D | frontend.c | 90 static struct imsgev *iev_main; variable 183 imsg_init(&iev_main->ibuf, 3); in frontend() 184 iev_main->handler = frontend_dispatch_main; in frontend() 185 iev_main->events = EV_READ; in frontend() 186 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in frontend() 187 iev_main->handler, iev_main); in frontend() 188 event_add(&iev_main->ev, NULL); in frontend() 203 msgbuf_write(&iev_main->ibuf.w); in frontend_shutdown() 204 msgbuf_clear(&iev_main->ibuf.w); in frontend_shutdown() 205 close(iev_main->ibuf.fd); in frontend_shutdown() [all …]
|
H A D | engine.c | 150 static struct imsgev *iev_main; variable 218 imsg_init(&iev_main->ibuf, 3); in engine() 219 iev_main->handler = engine_dispatch_main; in engine() 222 iev_main->events = EV_READ; in engine() 223 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in engine() 224 iev_main->handler, iev_main); in engine() 225 event_add(&iev_main->ev, NULL); in engine() 240 msgbuf_clear(&iev_main->ibuf.w); in engine_shutdown() 241 close(iev_main->ibuf.fd); in engine_shutdown() 244 free(iev_main); in engine_shutdown() [all …]
|
/openbsd/sbin/slaacd/ |
H A D | frontend.c | 102 static struct imsgev *iev_main; variable 182 imsg_init(&iev_main->ibuf, 3); in frontend() 183 iev_main->handler = frontend_dispatch_main; in frontend() 184 iev_main->events = EV_READ; in frontend() 185 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in frontend() 186 iev_main->handler, iev_main); in frontend() 187 event_add(&iev_main->ev, NULL); in frontend() 251 msgbuf_write(&iev_main->ibuf.w); in frontend_shutdown() 252 msgbuf_clear(&iev_main->ibuf.w); in frontend_shutdown() 253 close(iev_main->ibuf.fd); in frontend_shutdown() [all …]
|
H A D | engine.c | 305 static struct imsgev *iev_main; variable 399 imsg_init(&iev_main->ibuf, 3); in engine() 400 iev_main->handler = engine_dispatch_main; in engine() 403 iev_main->events = EV_READ; in engine() 404 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in engine() 405 iev_main->handler, iev_main); in engine() 406 event_add(&iev_main->ev, NULL); in engine() 421 msgbuf_clear(&iev_main->ibuf.w); in engine_shutdown() 422 close(iev_main->ibuf.fd); in engine_shutdown() 425 free(iev_main); in engine_shutdown() [all …]
|
/openbsd/usr.sbin/ospf6d/ |
H A D | ospfe.c | 51 static struct imsgev *iev_main; variable 160 imsg_init(&iev_main->ibuf, pipe_parent2ospfe[1]); in ospfe() 161 iev_main->handler = ospfe_dispatch_main; in ospfe() 169 iev_main->events = EV_READ; in ospfe() 170 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in ospfe() 171 iev_main->handler, iev_main); in ospfe() 172 event_add(&iev_main->ev, NULL); in ospfe() 205 msgbuf_write(&iev_main->ibuf.w); in ospfe_shutdown() 206 msgbuf_clear(&iev_main->ibuf.w); in ospfe_shutdown() 207 close(iev_main->ibuf.fd); in ospfe_shutdown() [all …]
|
H A D | rde.c | 92 static struct imsgev *iev_main; variable 185 iev_main->handler = rde_dispatch_parent; in rde() 193 iev_main->events = EV_READ; in rde() 194 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in rde() 195 iev_main->handler, iev_main); in rde() 196 event_add(&iev_main->ev, NULL); in rde() 225 msgbuf_clear(&iev_main->ibuf.w); in rde_shutdown() 226 close(iev_main->ibuf.fd); in rde_shutdown() 243 free(iev_main); in rde_shutdown() 884 imsg_close(&iev_main->ibuf, wbuf); in rde_send_change_kroute() [all …]
|
/openbsd/usr.sbin/ospfd/ |
H A D | ospfe.c | 51 static struct imsgev *iev_main; variable 160 imsg_init(&iev_main->ibuf, pipe_parent2ospfe[1]); in ospfe() 161 iev_main->handler = ospfe_dispatch_main; in ospfe() 169 iev_main->events = EV_READ; in ospfe() 170 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in ospfe() 171 iev_main->handler, iev_main); in ospfe() 172 event_add(&iev_main->ev, NULL); in ospfe() 216 msgbuf_write(&iev_main->ibuf.w); in ospfe_shutdown() 217 msgbuf_clear(&iev_main->ibuf.w); in ospfe_shutdown() 218 close(iev_main->ibuf.fd); in ospfe_shutdown() [all …]
|
H A D | rde.c | 69 static struct imsgev *iev_main; variable 167 iev_main->handler = rde_dispatch_parent; in rde() 175 iev_main->events = EV_READ; in rde() 176 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in rde() 177 iev_main->handler, iev_main); in rde() 178 event_add(&iev_main->ev, NULL); in rde() 211 msgbuf_clear(&iev_main->ibuf.w); in rde_shutdown() 212 close(iev_main->ibuf.fd); in rde_shutdown() 230 free(iev_main); in rde_shutdown() 821 imsg_close(&iev_main->ibuf, wbuf); in rde_send_change_kroute() [all …]
|
/openbsd/sbin/dhcpleased/ |
H A D | frontend.c | 106 static struct imsgev *iev_main; variable 180 imsg_init(&iev_main->ibuf, 3); in frontend() 181 iev_main->handler = frontend_dispatch_main; in frontend() 182 iev_main->events = EV_READ; in frontend() 183 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in frontend() 184 iev_main->handler, iev_main); in frontend() 185 event_add(&iev_main->ev, NULL); in frontend() 200 msgbuf_write(&iev_main->ibuf.w); in frontend_shutdown() 201 msgbuf_clear(&iev_main->ibuf.w); in frontend_shutdown() 202 close(iev_main->ibuf.fd); in frontend_shutdown() [all …]
|
H A D | engine.c | 160 static struct imsgev *iev_main; variable 229 imsg_init(&iev_main->ibuf, 3); in engine() 230 iev_main->handler = engine_dispatch_main; in engine() 233 iev_main->events = EV_READ; in engine() 234 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in engine() 235 iev_main->handler, iev_main); in engine() 236 event_add(&iev_main->ev, NULL); in engine() 251 msgbuf_clear(&iev_main->ibuf.w); in engine_shutdown() 252 close(iev_main->ibuf.fd); in engine_shutdown() 255 free(iev_main); in engine_shutdown() [all …]
|
/openbsd/sbin/unwind/ |
H A D | frontend.c | 158 static struct imsgev *iev_main; variable 232 if (iev_main != NULL) in frontend() 236 imsg_init(&iev_main->ibuf, 3); in frontend() 238 iev_main->events = EV_READ; in frontend() 239 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in frontend() 240 iev_main->handler, iev_main); in frontend() 241 event_add(&iev_main->ev, NULL); in frontend() 277 msgbuf_write(&iev_main->ibuf.w); in frontend_shutdown() 278 msgbuf_clear(&iev_main->ibuf.w); in frontend_shutdown() 279 close(iev_main->ibuf.fd); in frontend_shutdown() [all …]
|
H A D | resolver.c | 212 static struct imsgev *iev_main; variable 415 if ((iev_main = malloc(sizeof(struct imsgev))) == NULL) in resolver() 418 imsg_init(&iev_main->ibuf, 3); in resolver() 419 iev_main->handler = resolver_dispatch_main; in resolver() 422 iev_main->events = EV_READ; in resolver() 423 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in resolver() 424 iev_main->handler, iev_main); in resolver() 425 event_add(&iev_main->ev, NULL); in resolver() 458 msgbuf_clear(&iev_main->ibuf.w); in resolver_shutdown() 459 close(iev_main->ibuf.fd); in resolver_shutdown() [all …]
|