/src/dist/pf/usr.sbin/ftp-proxy/ |
npf.c | 374 nl_config_t *ncf; local in function:npf_do_commit 379 ncf = npf_config_create(); 380 if (ncf == NULL) { 405 npf_rule_insert(ncf, NULL, group); 407 errno = npf_config_submit(ncf, npf_fd, NULL); 411 npf_config_destroy(ncf); 415 if (ncf != NULL) 416 npf_config_destroy(ncf);
|
/src/usr.sbin/npf/npfctl/ |
npf_cmd.c | 225 nl_config_t *ncf; local in function:npfctl_table_replace 268 if ((ncf = npf_config_retrieve(fd)) == NULL) { 271 if ((t = npfctl_table_getbyname(ncf, name)) == NULL) { 279 npf_config_destroy(ncf);
|
npfctl.c | 295 nl_config_t *ncf; local in function:npfctl_import 319 ncf = npf_config_import(blob, blen); 321 return ncf; 327 nl_config_t *ncf; local in function:npfctl_load 333 ncf = npfctl_import(NPF_DB_PATH); 334 if (ncf == NULL) { 337 if ((errno = npf_config_submit(ncf, fd, &errinfo)) != 0) { 340 npf_config_destroy(ncf); 379 nl_config_t *ncf = NULL; local in function:npfctl_debug 421 if ((ncf = npf_config_retrieve(fd)) == NULL) 453 nl_config_t *ncf; local in function:npfctl [all...] |
npf_show.c | 809 npfctl_print_params(npf_conf_info_t *ctx, nl_config_t *ncf) 816 while ((name = npf_param_iterate(ncf, &i, &val, dval)) != NULL) { 829 nl_config_t *ncf; local in function:npfctl_config_show 833 ncf = npf_config_retrieve(fd); 834 if (ncf == NULL) { 837 loaded = npf_config_loaded_p(ncf); 841 npf_config_active_p(ncf) ? "active" : "inactive", 845 ncf = npfctl_config_ref(); 850 ctx->conf = ncf; 860 npfctl_print_params(ctx, ncf); 897 nl_config_t *ncf; local in function:npfctl_ruleset_show [all...] |
/src/lib/libnpf/ |
npf.c | 173 _npf_rules_process(nl_config_t *ncf, nvlist_t *dict, const char *key) 184 size_t len = (ncf->ncf_rule_count + 1) * sizeof(nvlist_t *); 185 void *p = realloc(ncf->ncf_rule_list, len); 192 ncf->ncf_rule_list = p; 193 ncf->ncf_rule_list[ncf->ncf_rule_count] = rule_dict; 194 ncf->ncf_rule_count++; 199 _npf_rules_process(ncf, rule_dict, "subrules"); 200 idx = ncf->ncf_rule_count; // post-recursion index 341 nl_config_t *ncf; local in function:npf_config_create 373 nl_config_t *ncf; local in function:npf_config_retrieve 406 nl_config_t *ncf; local in function:npf_config_import 423 nl_config_t *ncf; local in function:npf_config_flush 1515 nl_config_t *ncf; local in function:npf_conn_list [all...] |