Lines Matching defs:ncf
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;
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);
863 while ((tl = npf_table_iterate(ncf, &i)) != NULL) {
869 while ((rp = npf_rproc_iterate(ncf, &i)) != NULL) {
877 while ((nt = npf_nat_iterate(ncf, &i)) != NULL) {
883 while ((rl = npf_rule_iterate(ncf, &i, &level)) != NULL) {
889 npf_config_destroy(ncf);
897 nl_config_t *ncf;
903 ncf = npf_config_create();
904 ctx->conf = ncf;
906 if ((error = _npf_ruleset_list(fd, ruleset_name, ncf)) != 0) {
910 while ((rl = npf_rule_iterate(ncf, &i, &level)) != NULL) {
913 npf_config_destroy(ncf);