Lines Matching defs:bnd
467 struct ctl_bindany bnd;
472 IMSG_SIZE_CHECK(imsg, &bnd);
473 bcopy(imsg->data, &bnd, sizeof(bnd));
474 if (bnd.bnd_proc > env->sc_conf.prefork_relay)
476 switch (bnd.bnd_proto) {
485 s = bindany(&bnd);
486 proc_compose_imsg(ps, PROC_RELAY, bnd.bnd_proc,
487 IMSG_BINDANY, -1, s, &bnd.bnd_id, sizeof(bnd.bnd_id));
1634 bindany(struct ctl_bindany *bnd)
1641 if (relay_socket_af(&bnd->bnd_ss, bnd->bnd_port) == -1)
1643 if ((s = socket(bnd->bnd_ss.ss_family,
1644 bnd->bnd_proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM,
1645 bnd->bnd_proto)) == -1)
1650 if (bind(s, (struct sockaddr *)&bnd->bnd_ss,
1651 bnd->bnd_ss.ss_len) == -1)