Searched refs:nconf (Results 1 - 25 of 26) sorted by relevance

12

/openbsd-current/usr.sbin/ntpd/
H A Dntp_dns.c59 ntp_dns(struct ntpd_conf *nconf, struct passwd *pw) argument
68 log_init(nconf->debug ? LOG_TO_STDERR : LOG_TO_SYSLOG, nconf->verbose,
70 if (!nconf->debug && setsid() == -1)
77 if (!nconf->debug) {
128 if (dns_dispatch_imsg(nconf) == -1)
139 dns_dispatch_imsg(struct ntpd_conf *nconf) argument
173 if ((cnt = host_dns(name, nconf->status.synced,
201 nconf->status.synced = 1;
204 nconf
[all...]
H A Dntp.c72 ntp_main(struct ntpd_conf *nconf, struct passwd *pw, int argc, char **argv) argument
102 log_init(nconf->debug ? LOG_TO_STDERR : LOG_TO_SYSLOG, nconf->verbose,
104 if (!nconf->debug && setsid() == -1)
131 if (!nconf->debug) {
140 conf = nconf;
/openbsd-current/usr.sbin/bgpd/
H A Drtr.c41 static struct bgpd_config *conf, *nconf; variable in typeref:struct:
359 nconf = new_config();
360 copy_config(nconf, &tconf);
366 rtr_roa_insert(&nconf->roa, &roa);
391 if (RB_INSERT(aspa_tree, &nconf->aspa, aspa) != NULL) {
411 if (nconf == NULL)
413 copy_config(conf, nconf);
417 RB_ROOT(&conf->roa) = RB_ROOT(&nconf->roa);
418 RB_ROOT(&nconf->roa) = NULL;
422 RB_ROOT(&conf->aspa) = RB_ROOT(&nconf
[all...]
H A Dsession.c104 static struct bgpd_config *conf, *nconf; variable in typeref:struct:
2982 nconf = new_config();
2983 copy_config(nconf, &tconf);
2996 if (RB_INSERT(peer_head, &nconf->peers, p) != NULL)
3002 if (nconf == NULL)
3028 TAILQ_INSERT_TAIL(nconf->listen_addrs, la,
3060 if (nconf != NULL)
3067 if (nconf == NULL)
3080 if (nconf == NULL)
3082 copy_config(conf, nconf);
[all...]
H A Dmrt.c1262 mrt_mergeconfig(struct mrt_head *xconf, struct mrt_head *nconf) argument
1267 LIST_FOREACH(m, nconf, entry) {
1288 if (mrt_get(nconf, xm) == NULL)
1293 while ((m = LIST_FIRST(nconf)) != NULL) {
/openbsd-current/usr.sbin/rad/
H A Dengine.c263 static struct rad_conf *nconf; local
325 if (nconf != NULL)
331 if ((nconf = malloc(sizeof(struct rad_conf))) == NULL)
333 memcpy(nconf, imsg.data, sizeof(struct rad_conf));
334 SIMPLEQ_INIT(&nconf->ra_iface_list);
335 SIMPLEQ_INIT(&nconf->ra_options.ra_rdnss_list);
336 SIMPLEQ_INIT(&nconf->ra_options.ra_dnssl_list);
337 SIMPLEQ_INIT(&nconf->ra_options.ra_pref64_list);
338 ra_options = &nconf->ra_options;
355 SIMPLEQ_INSERT_TAIL(&nconf
[all...]
H A Dfrontend.c309 static struct rad_conf *nconf; local
367 if (nconf != NULL)
373 if ((nconf = malloc(sizeof(struct rad_conf))) ==
376 memcpy(nconf, imsg.data, sizeof(struct rad_conf));
377 SIMPLEQ_INIT(&nconf->ra_iface_list);
378 SIMPLEQ_INIT(&nconf->ra_options.ra_rdnss_list);
379 SIMPLEQ_INIT(&nconf->ra_options.ra_dnssl_list);
380 SIMPLEQ_INIT(&nconf->ra_options.ra_pref64_list);
381 ra_options = &nconf->ra_options;
398 SIMPLEQ_INSERT_TAIL(&nconf
[all...]
/openbsd-current/lib/libsndio/
H A Dsio_sun.c163 unsigned int nconf = 0; local
242 for (conf = 0; conf < nconf; conf++) {
248 if (conf == nconf) {
249 if (nconf == SIO_NCONF)
251 cap->confs[nconf].enc = (1 << j);
252 cap->confs[nconf].pchan = pchan_map;
253 cap->confs[nconf].rchan = rchan_map;
254 cap->confs[nconf].rate = rate_map;
255 nconf++;
258 cap->nconf
[all...]
H A Dsio_aucat.c410 cap->nconf = 1;
/openbsd-current/usr.sbin/ldpd/
H A Dldpe.c213 static struct ldpd_conf *nconf; local
375 if (pfkey_establish(nconf, nbr) == -1)
382 if ((nconf = malloc(sizeof(struct ldpd_conf))) ==
385 memcpy(nconf, imsg.data, sizeof(struct ldpd_conf));
387 LIST_INIT(&nconf->iface_list);
388 LIST_INIT(&nconf->tnbr_list);
389 LIST_INIT(&nconf->nbrp_list);
390 LIST_INIT(&nconf->l2vpn_list);
391 LIST_INIT(&nconf->auth_list);
404 LIST_INSERT_HEAD(&nconf
[all...]
H A Dlde.c380 static struct ldpd_conf *nconf; local
471 if ((nconf = malloc(sizeof(struct ldpd_conf))) ==
474 memcpy(nconf, imsg.data, sizeof(struct ldpd_conf));
476 LIST_INIT(&nconf->iface_list);
477 LIST_INIT(&nconf->tnbr_list);
478 LIST_INIT(&nconf->nbrp_list);
479 LIST_INIT(&nconf->l2vpn_list);
480 LIST_INIT(&nconf->auth_list);
493 LIST_INSERT_HEAD(&nconf->iface_list, niface, entry);
500 LIST_INSERT_HEAD(&nconf
[all...]
/openbsd-current/usr.sbin/eigrpd/
H A Deigrpe.c216 static struct eigrpd_conf *nconf; local
309 if ((nconf = malloc(sizeof(struct eigrpd_conf))) ==
312 memcpy(nconf, imsg.data, sizeof(struct eigrpd_conf));
314 TAILQ_INIT(&nconf->iface_list);
315 TAILQ_INIT(&nconf->instances);
326 TAILQ_INSERT_TAIL(&nconf->instances, neigrp, entry);
330 niface = if_lookup(nconf, niface->ifindex);
340 TAILQ_INSERT_TAIL(&nconf->iface_list, niface, entry);
363 merge_config(econf, nconf, PROC_EIGRP_ENGINE);
364 nconf
[all...]
H A Drde.c299 static struct eigrpd_conf *nconf; local
375 if ((nconf = malloc(sizeof(struct eigrpd_conf))) ==
378 memcpy(nconf, imsg.data, sizeof(struct eigrpd_conf));
380 TAILQ_INIT(&nconf->iface_list);
381 TAILQ_INIT(&nconf->instances);
392 TAILQ_INSERT_TAIL(&nconf->instances, neigrp, entry);
396 niface = if_lookup(nconf, niface->ifindex);
406 TAILQ_INSERT_TAIL(&nconf->iface_list, niface, entry);
429 merge_config(rdeconf, nconf, PROC_RDE_ENGINE);
430 nconf
[all...]
/openbsd-current/sbin/dhcp6leased/
H A Dfrontend.c236 static struct dhcp6leased_conf *nconf; local
322 if (nconf != NULL)
329 if ((nconf = malloc(sizeof(struct dhcp6leased_conf))) ==
332 memcpy(nconf, imsg.data,
334 SIMPLEQ_INIT(&nconf->iface_list);
347 SIMPLEQ_INSERT_TAIL(&nconf->iface_list,
393 if (nconf == NULL)
397 ifaces = changed_ifaces(frontend_conf, nconf);
398 merge_config(frontend_conf, nconf);
399 nconf
1052 changed_ifaces(struct dhcp6leased_conf *oconf, struct dhcp6leased_conf *nconf) argument
[all...]
H A Dengine.c375 static struct dhcp6leased_conf *nconf; local
451 if (nconf != NULL)
458 if ((nconf = malloc(sizeof(struct dhcp6leased_conf))) ==
461 memcpy(nconf, imsg.data,
463 SIMPLEQ_INIT(&nconf->iface_list);
476 SIMPLEQ_INSERT_TAIL(&nconf->iface_list,
524 if (nconf == NULL)
527 ifaces = changed_ifaces(engine_conf, nconf);
528 merge_config(engine_conf, nconf);
529 nconf
[all...]
/openbsd-current/sbin/unwind/
H A Dunwind.c877 struct uw_conf *nconf; local
881 nconf = *xconf;
885 if (nconf != NULL)
893 nconf = *xconf;
894 memcpy(nconf, imsg->data, sizeof(struct uw_conf));
895 TAILQ_INIT(&nconf->uw_forwarder_list);
896 TAILQ_INIT(&nconf->uw_dot_forwarder_list);
897 RB_INIT(&nconf->force);
902 if ((nconf->blocklist_file = strdup(imsg->data)) ==
915 TAILQ_INSERT_TAIL(&nconf
[all...]
H A Dresolver.c618 static struct uw_conf *nconf; local
683 imsg_receive_config(&imsg, &nconf);
686 if (nconf == NULL)
689 restart = resolvers_to_restart(resolver_conf, nconf);
690 merge_config(resolver_conf, nconf);
691 nconf = NULL;
2204 resolvers_to_restart(struct uw_conf *oconf, struct uw_conf *nconf) argument
2211 &nconf->uw_forwarder_list)) {
2216 &nconf->uw_dot_forwarder_list)) {
2221 if (oconf->enabled_resolvers[i] != nconf
[all...]
H A Dfrontend.c306 static struct uw_conf *nconf; local
369 imsg_receive_config(&imsg, &nconf);
372 if (nconf == NULL)
375 merge_config(frontend_conf, nconf);
378 nconf = NULL;
/openbsd-current/sbin/dhcpleased/
H A Dfrontend.c234 static struct dhcpleased_conf *nconf; local
342 if (nconf != NULL)
345 if ((nconf = malloc(sizeof(struct dhcpleased_conf))) ==
348 SIMPLEQ_INIT(&nconf->iface_list);
365 SIMPLEQ_INSERT_TAIL(&nconf->iface_list,
413 if (nconf == NULL)
417 ifaces = changed_ifaces(frontend_conf, nconf);
418 merge_config(frontend_conf, nconf);
419 nconf = NULL;
1241 changed_ifaces(struct dhcpleased_conf *oconf, struct dhcpleased_conf *nconf) argument
[all...]
H A Dengine.c395 static struct dhcpleased_conf *nconf; local
466 if (nconf != NULL)
469 if ((nconf = malloc(sizeof(struct dhcpleased_conf))) ==
472 SIMPLEQ_INIT(&nconf->iface_list);
489 SIMPLEQ_INSERT_TAIL(&nconf->iface_list,
539 if (nconf == NULL)
542 ifaces = changed_ifaces(engine_conf, nconf);
543 merge_config(engine_conf, nconf);
544 nconf = NULL;
/openbsd-current/regress/lib/libsndio/cap/
H A Dcap.c29 for (n = 0; n < cap->nconf; n++) {
/openbsd-current/include/
H A Dsndio.h91 unsigned int nconf; /* number of elements in confs[] */ member in struct:sio_cap
/openbsd-current/lib/libcrypto/asn1/
H A Dasn1_gen.c126 ASN1_generate_nconf(const char *str, CONF *nconf) argument
130 if (!nconf)
133 X509V3_set_nconf(&cnf, nconf);
/openbsd-current/usr.sbin/ospfd/
H A Drde.c67 struct ospfd_conf *rdeconf = NULL, *nconf = NULL; variable in typeref:struct:
690 if ((nconf = malloc(sizeof(struct ospfd_conf))) ==
693 memcpy(nconf, imsg.data, sizeof(struct ospfd_conf));
695 LIST_INIT(&nconf->area_list);
696 LIST_INIT(&nconf->cand_list);
708 LIST_INSERT_HEAD(&nconf->area_list, narea, entry);
732 merge_config(rdeconf, nconf);
733 nconf = NULL;
/openbsd-current/usr.sbin/ospf6d/
H A Drde.c90 struct ospfd_conf *rdeconf = NULL, *nconf = NULL; variable in typeref:struct:
780 if ((nconf = malloc(sizeof(struct ospfd_conf))) ==
783 memcpy(nconf, imsg.data, sizeof(struct ospfd_conf));
785 LIST_INIT(&nconf->area_list);
786 LIST_INIT(&nconf->cand_list);
797 LIST_INSERT_HEAD(&nconf->area_list, narea, entry);
800 merge_config(rdeconf, nconf);
801 nconf = NULL;

Completed in 579 milliseconds

12