Home
last modified time | relevance | path

Searched refs:ncf (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/lib/libnpf/
H A Dnpf.c173 _npf_rules_process(nl_config_t *ncf, nvlist_t *dict, const char *key) in _npf_rules_process() argument
184 size_t len = (ncf->ncf_rule_count + 1) * sizeof(nvlist_t *); in _npf_rules_process()
185 void *p = realloc(ncf->ncf_rule_list, len); in _npf_rules_process()
192 ncf->ncf_rule_list = p; in _npf_rules_process()
193 ncf->ncf_rule_list[ncf->ncf_rule_count] = rule_dict; in _npf_rules_process()
194 ncf->ncf_rule_count++; in _npf_rules_process()
199 _npf_rules_process(ncf, rule_dict, "subrules"); in _npf_rules_process()
200 idx = ncf->ncf_rule_count; // post-recursion index in _npf_rules_process()
341 nl_config_t *ncf; in npf_config_create() local
343 ncf = calloc(1, sizeof(nl_config_t)); in npf_config_create()
[all …]
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpfctl.c293 nl_config_t *ncf; in npfctl_import() local
317 ncf = npf_config_import(blob, blen); in npfctl_import()
319 return ncf; in npfctl_import()
325 nl_config_t *ncf; in npfctl_load() local
331 ncf = npfctl_import(NPF_DB_PATH); in npfctl_load()
332 if (ncf == NULL) { in npfctl_load()
335 if ((errno = npf_config_submit(ncf, fd, &errinfo)) != 0) { in npfctl_load()
338 npf_config_destroy(ncf); in npfctl_load()
377 nl_config_t *ncf = NULL; in npfctl_debug() local
419 if ((ncf = npf_config_retrieve(fd)) == NULL) { in npfctl_debug()
[all …]
H A Dnpf_show.c672 npfctl_print_params(npf_conf_info_t *ctx, nl_config_t *ncf) in npfctl_print_params()
679 while ((name = npf_param_iterate(ncf, &i, &val, dval)) != NULL) { in npfctl_print_params()
692 nl_config_t *ncf; in npfctl_config_show()
696 ncf = npf_config_retrieve(fd); in npfctl_config_show()
697 if (ncf == NULL) { in npfctl_config_show()
700 loaded = npf_config_loaded_p(ncf); in npfctl_config_show()
704 npf_config_active_p(ncf) ? "active" : "inactive", in npfctl_config_show()
708 ncf = npfctl_config_ref(); in npfctl_config_show()
713 ctx->conf = ncf; in npfctl_config_show()
723 npfctl_print_params(ctx, ncf); in npfctl_config_show()
671 npfctl_print_params(npf_conf_info_t * ctx,nl_config_t * ncf) npfctl_print_params() argument
691 nl_config_t *ncf; npfctl_config_show() local
759 nl_config_t *ncf; npfctl_ruleset_show() local
[all...]
H A Dnpf_build.c130 npfctl_config_save(nl_config_t *ncf, const char *outfile) in npfctl_config_save() argument
136 blob = npf_config_export(ncf, &len); in npfctl_config_save()
164 npfctl_table_getbyname(nl_config_t *ncf, const char *name) in npfctl_table_getbyname() argument
170 if (!ncf) { in npfctl_table_getbyname()
173 while ((tl = npf_table_iterate(ncf, &i)) != NULL) { in npfctl_table_getbyname()
192 npfctl_table_getname(nl_config_t *ncf, unsigned tid, bool *ifaddr) in npfctl_table_getname() argument
198 while ((tl = npf_table_iterate(ncf, &i)) != NULL) { in npfctl_table_getname()
H A Dnpf_cmd.c225 nl_config_t *ncf; in npfctl_table_replace() local
268 if ((ncf = npf_config_retrieve(fd)) == NULL) { in npfctl_table_replace()
271 if ((t = npfctl_table_getbyname(ncf, name)) == NULL) { in npfctl_table_replace()
279 npf_config_destroy(ncf); in npfctl_table_replace()
/netbsd-src/dist/pf/usr.sbin/ftp-proxy/
H A Dnpf.c374 nl_config_t *ncf; in npf_do_commit() local
379 ncf = npf_config_create(); in npf_do_commit()
380 if (ncf == NULL) { in npf_do_commit()
405 npf_rule_insert(ncf, NULL, group); in npf_do_commit()
407 errno = npf_config_submit(ncf, npf_fd, NULL); in npf_do_commit()
411 npf_config_destroy(ncf); in npf_do_commit()
415 if (ncf != NULL) in npf_do_commit()
416 npf_config_destroy(ncf); in npf_do_commit()
/netbsd-src/external/bsd/dhcpcd/dist/hooks/
H A D50-ypbind31 ncf="$cf.$ifname"
32 rm -f "$ncf"
34 echo "$x" >>"$ncf"
36 change_file "$cf" "$ncf"
/netbsd-src/external/bsd/openldap/dist/servers/slapd/overlays/
H A Dpcache.c4754 int i, ncf = 0, rf = 0, nrf = 0, rc = 0; in pcache_db_open() local
4766 ncf++; in pcache_db_open()
4774 if ( ncf || rf || nrf ) { in pcache_db_open()
4776 Debug( LDAP_DEBUG_CONFIG, "pcache: warning, %d attr sets not configured.\n", ncf ); in pcache_db_open()
/netbsd-src/external/gpl2/groff/dist/
H A DNEWS790 o Peter Schaffter <df191@ncf.ca> has contributed a new major macro package
H A DChangeLog.1181096 <df191@ncf.ca>.