Home
last modified time | relevance | path

Searched refs:xconf (Results 1 – 25 of 45) sorted by relevance

12

/openbsd/usr.sbin/ldpd/
H A Dldpd.c655 return (&xconf->ipv4); in ldp_af_conf_get()
657 return (&xconf->ipv6); in ldp_af_conf_get()
748 struct ldpd_conf *xconf; in ldp_reload() local
765 merge_auths(conf, xconf); in merge_config()
769 merge_tnbrs(conf, xconf); in merge_config()
772 free(xconf); in merge_config()
1277 struct ldpd_conf *xconf; in config_new_empty() local
1279 xconf = calloc(1, sizeof(*xconf)); in config_new_empty()
1280 if (xconf == NULL) in config_new_empty()
1289 return (xconf); in config_new_empty()
[all …]
H A Dadjacency.c201 tnbr_new(struct ldpd_conf *xconf, int af, union ldpd_addr *addr) in tnbr_new() argument
211 tnbr->hello_holdtime = (ldp_af_conf_get(xconf, af))->thello_holdtime; in tnbr_new()
212 tnbr->hello_interval = (ldp_af_conf_get(xconf, af))->thello_interval; in tnbr_new()
228 tnbr_find(struct ldpd_conf *xconf, int af, union ldpd_addr *addr) in tnbr_find() argument
232 LIST_FOREACH(tnbr, &xconf->tnbr_list, entry) in tnbr_find()
/openbsd/usr.sbin/eigrpd/
H A Deigrpd.c580 if (eigrp_sendboth(IMSG_RECONF_CONF, xconf, sizeof(*xconf)) == -1) in main_imsg_send_config()
608 struct eigrpd_conf *xconf; in eigrp_reload() local
638 conf->rtr_id = xconf->rtr_id; in merge_config()
639 conf->flags = xconf->flags; in merge_config()
710 free(xconf); in merge_config()
722 struct eigrpd_conf *xconf; in config_new_empty() local
724 xconf = calloc(1, sizeof(*xconf)); in config_new_empty()
725 if (xconf == NULL) in config_new_empty()
731 return (xconf); in config_new_empty()
737 struct eigrpd_conf *xconf; in config_clear() local
[all …]
H A Dinterface.c61 if_new(struct eigrpd_conf *xconf, struct kif *kif) in if_new() argument
91 TAILQ_INSERT_TAIL(&xconf->iface_list, iface, entry); in if_new()
113 if_lookup(struct eigrpd_conf *xconf, unsigned int ifindex) in if_lookup() argument
117 TAILQ_FOREACH(iface, &xconf->iface_list, entry) in if_lookup()
279 eigrp_if_new(struct eigrpd_conf *xconf, struct eigrp *eigrp, struct kif *kif) in eigrp_if_new() argument
285 iface = if_lookup(xconf, kif->ifindex); in eigrp_if_new()
287 iface = if_new(xconf, kif); in eigrp_if_new()
/openbsd/usr.sbin/rad/
H A Drad.c555 struct rad_conf *xconf; in main_reload() local
578 if (main_sendboth(IMSG_RECONF_CONF, xconf, sizeof(*xconf)) == -1) in main_imsg_send_config()
739 free(xconf); in merge_config()
745 struct rad_conf *xconf; in config_new_empty() local
747 xconf = calloc(1, sizeof(*xconf)); in config_new_empty()
748 if (xconf == NULL) in config_new_empty()
753 xconf->ra_options.dfr = 1; in config_new_empty()
760 xconf->ra_options.mtu = 0; in config_new_empty()
766 return (xconf); in config_new_empty()
772 struct rad_conf *xconf; in config_clear() local
[all …]
H A Dparse.y92 void clear_config(struct rad_conf *xconf);
1154 clear_config(struct rad_conf *xconf) in clear_config() argument
1158 free_dns_options(&xconf->ra_options); in clear_config()
1160 while((iface = SIMPLEQ_FIRST(&xconf->ra_iface_list)) != NULL) { in clear_config()
1161 SIMPLEQ_REMOVE_HEAD(&xconf->ra_iface_list, entry); in clear_config()
1165 free(xconf); in clear_config()
/openbsd/sbin/unwind/
H A Dunwind.c570 struct uw_conf *xconf; in main_reload() local
593 if (main_sendall(IMSG_RECONF_CONF, xconf, sizeof(*xconf)) == -1) in main_imsg_send_config()
598 xconf->blocklist_file, strlen(xconf->blocklist_file) + 1) in main_imsg_send_config()
685 free(xconf); in merge_config()
693 xconf = calloc(1, sizeof(*xconf)); in config_new_empty()
694 if (xconf == NULL) in config_new_empty()
700 RB_INIT(&xconf->force); in config_new_empty()
702 return (xconf); in config_new_empty()
708 struct uw_conf *xconf; in config_clear() local
881 nconf = *xconf; in imsg_receive_config()
[all …]
H A Dparse.y88 void clear_config(struct uw_conf *xconf);
918 clear_config(struct uw_conf *xconf) in clear_config() argument
922 while ((uw_forwarder = TAILQ_FIRST(&xconf->uw_forwarder_list)) != in clear_config()
924 TAILQ_REMOVE(&xconf->uw_forwarder_list, uw_forwarder, entry); in clear_config()
927 while ((uw_forwarder = TAILQ_FIRST(&xconf->uw_dot_forwarder_list)) != in clear_config()
929 TAILQ_REMOVE(&xconf->uw_dot_forwarder_list, uw_forwarder, in clear_config()
934 free(xconf); in clear_config()
/openbsd/usr.sbin/bgpd/
H A Dconfig.c316 copy_config(xconf, conf); in merge_config()
319 free(xconf->csock); in merge_config()
320 free(xconf->rcsock); in merge_config()
321 xconf->csock = conf->csock; in merge_config()
322 xconf->rcsock = conf->rcsock; in merge_config()
329 xconf->filters = conf->filters; in merge_config()
336 free_roatree(&xconf->roa); in merge_config()
342 free_aspatree(&xconf->aspa); in merge_config()
348 free_rtrs(&xconf->rtrs); in merge_config()
360 as_sets_free(&xconf->as_sets); in merge_config()
[all …]
/openbsd/usr.sbin/ospfd/
H A Dospfd.c637 struct ospfd_conf *xconf; in ospf_reload() local
644 if (xconf->rtr_id.s_addr == 0) in ospf_reload()
654 if (ospf_sendboth(IMSG_RECONF_CONF, xconf, sizeof(*xconf)) == -1) in ospf_reload()
680 merge_config(ospfd_conf, xconf); in ospf_reload()
704 conf->flags = xconf->flags; in merge_config()
705 conf->spf_delay = xconf->spf_delay; in merge_config()
706 conf->spf_hold_time = xconf->spf_hold_time; in merge_config()
708 SIMPLEQ_EMPTY(&xconf->redist_list)) in merge_config()
710 conf->rfc1583compat = xconf->rfc1583compat; in merge_config()
724 kr_fib_update_prio(xconf->fib_priority); in merge_config()
[all …]
H A Dpacket.c120 struct ospfd_conf *xconf = bula; in recv_packet() local
177 if ((iface = find_iface(xconf, ifindex, ip_hdr.ip_src)) == NULL) { in recv_packet()
331 find_iface(struct ospfd_conf *xconf, unsigned int ifindex, struct in_addr src) in find_iface() argument
337 LIST_FOREACH(area, &xconf->area_list, entry) { in find_iface()
H A Dospfe.c70 ospfe(struct ospfd_conf *xconf, int pipe_parent2ospfe[2], int pipe_ospfe2rde[2], in ospfe() argument
93 if ((xconf->ospf_socket = socket(AF_INET, in ospfe()
99 if (if_set_mcast_loop(xconf->ospf_socket) == -1) in ospfe()
101 if (if_set_ip_hdrincl(xconf->ospf_socket) == -1) in ospfe()
103 if (if_set_recvif(xconf->ospf_socket, 1) == -1) in ospfe()
105 if_set_sockbuf(xconf->ospf_socket); in ospfe()
107 oeconf = xconf; in ospfe()
191 if_init(xconf, iface); in ospfe()
/openbsd/usr.sbin/ospf6d/
H A Dospf6d.c613 struct ospfd_conf *xconf; in ospf_reload() local
621 if (ospf_sendboth(IMSG_RECONF_CONF, xconf, sizeof(*xconf)) == -1) in ospf_reload()
625 LIST_FOREACH(area, &xconf->area_list, entry) { in ospf_reload()
635 merge_config(ospfd_conf, xconf); in ospf_reload()
663 conf->flags = xconf->flags; in merge_config()
664 conf->spf_delay = xconf->spf_delay; in merge_config()
665 conf->spf_hold_time = xconf->spf_hold_time; in merge_config()
667 SIMPLEQ_EMPTY(&xconf->redist_list)) in merge_config()
682 kr_fib_update_prio(xconf->fib_priority); in merge_config()
683 conf->fib_priority = xconf->fib_priority; in merge_config()
[all …]
H A Dpacket.c127 struct ospfd_conf *xconf = bula; in recv_packet() local
175 if ((iface = find_iface(xconf, ifindex, &src.sin6_addr)) == NULL) { in recv_packet()
305 find_iface(struct ospfd_conf *xconf, unsigned int ifindex, struct in6_addr *src) in find_iface() argument
315 LIST_FOREACH(area, &xconf->area_list, entry) { in find_iface()
H A Dospfe.c70 ospfe(struct ospfd_conf *xconf, int pipe_parent2ospfe[2], int pipe_ospfe2rde[2], in ospfe() argument
89 if ((xconf->ospf_socket = socket(AF_INET6, in ospfe()
94 if (if_set_mcast_loop(xconf->ospf_socket) == -1) in ospfe()
96 if (if_set_ipv6_checksum(xconf->ospf_socket) == -1) in ospfe()
98 if (if_set_ipv6_pktinfo(xconf->ospf_socket, 1) == -1) in ospfe()
100 if_set_sockbuf(xconf->ospf_socket); in ospfe()
102 oeconf = xconf; in ospfe()
180 if_start(xconf, iface); in ospfe()
/openbsd/usr.sbin/ripd/
H A Dripe.c87 if (control_init(xconf->csock) == -1) in ripe()
94 if ((xconf->rip_socket = socket(AF_INET, in ripe()
99 if (bind(xconf->rip_socket, (struct sockaddr *)&addr, in ripe()
104 if (if_set_opt(xconf->rip_socket) == -1) in ripe()
107 if (if_set_mcast_ttl(xconf->rip_socket, IP_DEFAULT_MULTICAST_TTL) == -1) in ripe()
110 if (if_set_mcast_loop(xconf->rip_socket) == -1) in ripe()
113 if (if_set_tos(xconf->rip_socket, IPTOS_PREC_INTERNETCONTROL) == -1) in ripe()
116 if_set_recvbuf(xconf->rip_socket); in ripe()
118 oeconf = xconf; in ripe()
186 LIST_FOREACH(iface, &xconf->iface_list, entry) { in ripe()
[all …]
H A Dpacket.c93 struct ripd_conf *xconf = bula; in recv_packet() local
142 LIST_FOREACH(iface, &xconf->iface_list, entry) { in recv_packet()
148 if ((iface = find_iface(xconf, dst->sdl_index, src.sin_addr)) == NULL) { in recv_packet()
232 find_iface(struct ripd_conf *xconf, unsigned int ifindex, struct in_addr src) in find_iface() argument
237 LIST_FOREACH(iface, &xconf->iface_list, entry) { in find_iface()
H A Dinterface.c73 if_init(struct ripd_conf *xconf, struct iface *iface) in if_init() argument
79 iface->fd = xconf->rip_socket; in if_init()
90 if (rdomain != xconf->rdomain) in if_init()
/openbsd/usr.sbin/npppd/npppd/
H A Dparse.y1383 conf = xconf;
1411 npppd_conf_fini(xconf);
1420 TAILQ_INIT(&xconf->tunnconfs);
1421 TAILQ_INIT(&xconf->authconfs);
1422 TAILQ_INIT(&xconf->ipcpconfs);
1423 TAILQ_INIT(&xconf->ifaces);
1424 TAILQ_INIT(&xconf->confbinds);
1425 TAILQ_INIT(&xconf->l2tp_confs);
1426 TAILQ_INIT(&xconf->pptp_confs);
1454 TAILQ_INIT(&xconf->l2tp_confs);
[all …]
/openbsd/usr.sbin/dvmrpd/
H A Ddvmrpe.c68 dvmrpe(struct dvmrpd_conf *xconf, int pipe_parent2dvmrpe[2], in dvmrpe() argument
87 if ((xconf->dvmrp_socket = socket(AF_INET, in dvmrpe()
97 if (if_set_mcast_ttl(xconf->dvmrp_socket, in dvmrpe()
101 if (if_set_mcast_loop(xconf->dvmrp_socket) == -1) in dvmrpe()
104 if (if_set_tos(xconf->dvmrp_socket, IPTOS_PREC_INTERNETCONTROL) == -1) in dvmrpe()
107 if_set_recvbuf(xconf->dvmrp_socket); in dvmrpe()
109 deconf = xconf; in dvmrpe()
172 if_init(xconf, iface); in dvmrpe()
H A Dpacket.c104 struct dvmrpd_conf *xconf = bula; in recv_packet() local
144 if ((iface = find_iface(xconf, ip_hdr.ip_src)) == NULL) { in recv_packet()
281 find_iface(struct dvmrpd_conf *xconf, struct in_addr src) in find_iface() argument
286 LIST_FOREACH(iface, &xconf->iface_list, entry) { in find_iface()
/openbsd/sbin/dhcpleased/
H A Ddhcpleased.c700 struct dhcpleased_conf *xconf; in main_reload() local
708 merge_config(main_conf, xconf); in main_reload()
1268 free(xconf); in merge_config()
1274 struct dhcpleased_conf *xconf; in config_new_empty() local
1276 xconf = calloc(1, sizeof(*xconf)); in config_new_empty()
1277 if (xconf == NULL) in config_new_empty()
1280 SIMPLEQ_INIT(&xconf->iface_list); in config_new_empty()
1282 return (xconf); in config_new_empty()
1288 struct dhcpleased_conf *xconf; in config_clear() local
1291 xconf = config_new_empty(); in config_clear()
[all …]
/openbsd/usr.sbin/acme-client/
H A Dparse.y1008 clear_config(struct acme_conf *xconf) in clear_config() argument
1014 while ((a = TAILQ_FIRST(&xconf->authority_list)) != NULL) { in clear_config()
1015 TAILQ_REMOVE(&xconf->authority_list, a, entry); in clear_config()
1018 while ((d = TAILQ_FIRST(&xconf->domain_list)) != NULL) { in clear_config()
1023 TAILQ_REMOVE(&xconf->domain_list, d, entry); in clear_config()
1026 free(xconf); in clear_config()
1043 print_config(struct acme_conf *xconf) in print_config() argument
1050 TAILQ_FOREACH(a, &xconf->authority_list, entry) { in print_config()
1059 TAILQ_FOREACH(d, &xconf->domain_list, entry) { in print_config()
/openbsd/share/mk/
H A Dbsd.xconf.mk5 .if exists(${X11BASE}/share/mk/bsd.xconf.mk)
H A DMakefile8 bsd.xconf.mk bsd.xorg.mk

12