Lines Matching refs:opts
287 pfctl_err(int opts, int eval, const char *fmt, ...) in pfctl_err() argument
293 if ((opts & PF_OPT_IGNFAIL) == 0) in pfctl_err()
304 pfctl_errx(int opts, int eval, const char *fmt, ...) in pfctl_errx() argument
310 if ((opts & PF_OPT_IGNFAIL) == 0) in pfctl_errx()
364 pfctl_enable(int dev, int opts) in pfctl_enable() argument
376 if ((opts & PF_OPT_QUIET) == 0) in pfctl_enable()
387 pfctl_disable(int dev, int opts) in pfctl_disable() argument
397 if ((opts & PF_OPT_QUIET) == 0) in pfctl_disable()
408 pfctl_clear_stats(struct pfctl_handle *h, int opts) in pfctl_clear_stats() argument
412 pfctl_err(opts, 1, "DIOCCLRSTATUS"); in pfctl_clear_stats()
413 if ((opts & PF_OPT_QUIET) == 0) in pfctl_clear_stats()
492 pfctl_clear_interface_flags(int dev, int opts) in pfctl_clear_interface_flags() argument
496 if ((opts & PF_OPT_NOACTION) == 0) { in pfctl_clear_interface_flags()
502 if ((opts & PF_OPT_QUIET) == 0) in pfctl_clear_interface_flags()
508 pfctl_flush_eth_rules(int dev, int opts, char *anchorname) in pfctl_flush_eth_rules() argument
516 if ((opts & PF_OPT_QUIET) == 0) in pfctl_flush_eth_rules()
521 pfctl_flush_rules(int dev, int opts, char *anchorname) in pfctl_flush_rules() argument
527 pfctl_err(opts, 1, "%s", __func__); in pfctl_flush_rules()
529 } else if ((opts & PF_OPT_QUIET) == 0) in pfctl_flush_rules()
536 pfctl_flush_nat(int dev, int opts, char *anchorname) in pfctl_flush_nat() argument
543 if ((opts & PF_OPT_QUIET) == 0) in pfctl_flush_nat()
548 pfctl_clear_altq(int dev, int opts) in pfctl_clear_altq() argument
560 if ((opts & PF_OPT_QUIET) == 0) in pfctl_clear_altq()
566 pfctl_clear_src_nodes(int dev, int opts) in pfctl_clear_src_nodes() argument
569 pfctl_err(opts, 1, "DIOCCLRSRCNODES"); in pfctl_clear_src_nodes()
570 if ((opts & PF_OPT_QUIET) == 0) in pfctl_clear_src_nodes()
575 pfctl_clear_iface_states(int dev, const char *iface, int opts) in pfctl_clear_iface_states() argument
584 pfctl_errx(opts, 1, "invalid interface: %s", iface); in pfctl_clear_iface_states()
586 if (opts & PF_OPT_KILLMATCH) in pfctl_clear_iface_states()
590 pfctl_err(opts, 1, "DIOCCLRSTATUS"); in pfctl_clear_iface_states()
591 if ((opts & PF_OPT_QUIET) == 0) in pfctl_clear_iface_states()
648 pfctl_kill_src_nodes(int dev, int opts) in pfctl_kill_src_nodes() argument
664 &psnk.psnk_src.addr.v.a.mask, (opts & PF_OPT_NODNS)); in pfctl_kill_src_nodes()
686 (opts & PF_OPT_NODNS)); in pfctl_kill_src_nodes()
717 if ((opts & PF_OPT_QUIET) == 0) in pfctl_kill_src_nodes()
723 pfctl_net_kill_states(int dev, const char *iface, int opts) in pfctl_net_kill_states() argument
741 pfctl_errx(opts, 1, "invalid interface: %s", iface); in pfctl_net_kill_states()
750 &kill.src.addr.v.a.mask, (opts & PF_OPT_NODNS)); in pfctl_net_kill_states()
752 if (opts & PF_OPT_KILLMATCH) in pfctl_net_kill_states()
775 (opts & PF_OPT_NODNS)); in pfctl_net_kill_states()
794 pfctl_errx(opts, 1, "DIOCKILLSTATES"); in pfctl_net_kill_states()
800 pfctl_errx(opts, 1, "DIOCKILLSTATES"); in pfctl_net_kill_states()
807 if ((opts & PF_OPT_QUIET) == 0) in pfctl_net_kill_states()
813 pfctl_gateway_kill_states(int dev, const char *iface, int opts) in pfctl_gateway_kill_states() argument
832 pfctl_errx(opts, 1, "invalid interface: %s", iface); in pfctl_gateway_kill_states()
834 if (opts & PF_OPT_KILLMATCH) in pfctl_gateway_kill_states()
838 (opts & PF_OPT_NODNS)); in pfctl_gateway_kill_states()
853 pfctl_errx(opts, 1, "DIOCKILLSTATES"); in pfctl_gateway_kill_states()
859 if ((opts & PF_OPT_QUIET) == 0) in pfctl_gateway_kill_states()
864 pfctl_label_kill_states(int dev, const char *iface, int opts) in pfctl_label_kill_states() argument
877 pfctl_errx(opts, 1, "invalid interface: %s", iface); in pfctl_label_kill_states()
879 if (opts & PF_OPT_KILLMATCH) in pfctl_label_kill_states()
887 pfctl_errx(opts, 1, "DIOCKILLSTATES"); in pfctl_label_kill_states()
889 if ((opts & PF_OPT_QUIET) == 0) in pfctl_label_kill_states()
894 pfctl_id_kill_states(int dev, const char *iface, int opts) in pfctl_id_kill_states() argument
907 if (opts & PF_OPT_KILLMATCH) in pfctl_id_kill_states()
925 pfctl_errx(opts, 1, "DIOCKILLSTATES"); in pfctl_id_kill_states()
927 if ((opts & PF_OPT_QUIET) == 0) in pfctl_id_kill_states()
932 pfctl_key_kill_states(int dev, const char *iface, int opts) in pfctl_key_kill_states() argument
949 pfctl_errx(opts, 1, "invalid interface: %s", iface); in pfctl_key_kill_states()
985 pfctl_errx(opts, 1, "DIOCKILLSTATES"); in pfctl_key_kill_states()
987 if ((opts & PF_OPT_QUIET) == 0) in pfctl_key_kill_states()
1090 pfctl_print_eth_rule_counters(struct pfctl_eth_rule *rule, int opts) in pfctl_print_eth_rule_counters() argument
1092 if (opts & PF_OPT_VERBOSE) { in pfctl_print_eth_rule_counters()
1101 if (opts & PF_OPT_VERBOSE2) { in pfctl_print_eth_rule_counters()
1116 pfctl_print_rule_counters(struct pfctl_rule *rule, int opts) in pfctl_print_rule_counters() argument
1118 if (opts & PF_OPT_DEBUG) { in pfctl_print_rule_counters()
1138 if (opts & PF_OPT_VERBOSE) { in pfctl_print_rule_counters()
1155 if (!(opts & PF_OPT_DEBUG)) in pfctl_print_rule_counters()
1161 if (opts & PF_OPT_VERBOSE2) { in pfctl_print_rule_counters()
1184 pfctl_show_eth_rules(int dev, char *path, int opts, enum pfctl_show format, in pfctl_show_eth_rules() argument
1191 int dotitle = opts & PF_OPT_SHOWALL; in pfctl_show_eth_rules()
1222 if (wildcard && (opts & PF_OPT_RECURSE)) { in pfctl_show_eth_rules()
1237 pfctl_print_eth_rule_counters(&rule, opts); in pfctl_show_eth_rules()
1243 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_eth_rules()
1245 pfctl_show_eth_rules(dev, npath, opts, in pfctl_show_eth_rules()
1247 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_eth_rules()
1260 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_eth_rules()
1262 opts & PF_OPT_CLRRULECTRS, anchor_call)) != 0) { in pfctl_show_eth_rules()
1269 *(--p) == '/')) || (opts & PF_OPT_RECURSE))) { in pfctl_show_eth_rules()
1281 opts & (PF_OPT_VERBOSE2 | PF_OPT_DEBUG)); in pfctl_show_eth_rules()
1286 pfctl_print_eth_rule_counters(&rule, opts); in pfctl_show_eth_rules()
1288 pfctl_show_eth_rules(dev, path, opts, format, in pfctl_show_eth_rules()
1290 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_eth_rules()
1300 pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format, in pfctl_show_rules() argument
1307 int rule_numbers = opts & (PF_OPT_VERBOSE2 | PF_OPT_DEBUG); in pfctl_show_rules()
1308 int numeric = opts & PF_OPT_NUMERIC; in pfctl_show_rules()
1338 if (wildcard && (opts & PF_OPT_RECURSE)) { in pfctl_show_rules()
1349 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_rules()
1351 pfctl_show_rules(dev, npath, opts, in pfctl_show_rules()
1353 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_rules()
1360 if (opts & PF_OPT_SHOWALL) { in pfctl_show_rules()
1373 if (opts & PF_OPT_SHOWALL) { in pfctl_show_rules()
1382 &rule, anchor_call, opts & PF_OPT_CLRRULECTRS)) != 0) { in pfctl_show_rules()
1403 if (rule.label[0][0] && (opts & PF_OPT_SHOWALL)) in pfctl_show_rules()
1407 pfctl_print_rule_counters(&rule, opts); in pfctl_show_rules()
1423 &rule, anchor_call, opts & PF_OPT_CLRRULECTRS)) != 0) { in pfctl_show_rules()
1468 opts & PF_OPT_RECURSE)) { in pfctl_show_rules()
1469 pfctl_show_rules(dev, npath, opts, format, in pfctl_show_rules()
1475 if (rule.label[0][0] && (opts & PF_OPT_SHOWALL)) in pfctl_show_rules()
1477 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_rules()
1488 opts & PF_OPT_RECURSE)) { in pfctl_show_rules()
1490 pfctl_print_rule_counters(&rule, opts); in pfctl_show_rules()
1491 pfctl_show_rules(dev, npath, opts, format, in pfctl_show_rules()
1494 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_rules()
1498 pfctl_print_rule_counters(&rule, opts); in pfctl_show_rules()
1514 pfctl_show_nat(int dev, const char *path, int opts, char *anchorname, int depth, in pfctl_show_nat() argument
1522 int i, dotitle = opts & PF_OPT_SHOWALL; in pfctl_show_nat()
1554 if (wildcard && (opts & PF_OPT_RECURSE)) { in pfctl_show_nat()
1569 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_nat()
1571 pfctl_show_nat(dev, npath, opts, in pfctl_show_nat()
1573 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_nat()
1587 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_nat()
1609 opts & PF_OPT_VERBOSE2, opts & PF_OPT_NUMERIC); in pfctl_show_nat()
1613 opts & PF_OPT_RECURSE)) { in pfctl_show_nat()
1615 pfctl_print_rule_counters(&rule, opts); in pfctl_show_nat()
1616 pfctl_show_nat(dev, npath, opts, anchor_call, in pfctl_show_nat()
1618 INDENT(depth, !(opts & PF_OPT_VERBOSE)); in pfctl_show_nat()
1622 pfctl_print_rule_counters(&rule, opts); in pfctl_show_nat()
1632 int *opts = (int *)arg; in pfctl_print_src_node() local
1634 if (*opts & PF_OPT_SHOWALL) { in pfctl_print_src_node()
1636 *opts &= ~PF_OPT_SHOWALL; in pfctl_print_src_node()
1639 print_src_node(sn, *opts); in pfctl_print_src_node()
1645 pfctl_show_src_nodes(int dev, int opts) in pfctl_show_src_nodes() argument
1649 error = pfctl_get_srcnodes(pfh, pfctl_print_src_node, &opts); in pfctl_show_src_nodes()
1655 int opts; member
1669 print_state(s, a->opts); in pfctl_show_state()
1675 pfctl_show_states(int dev, const char *iface, int opts) in pfctl_show_states() argument
1683 arg.opts = opts; in pfctl_show_states()
1684 arg.dotitle = opts & PF_OPT_SHOWALL; in pfctl_show_states()
1694 pfctl_show_status(int dev, int opts) in pfctl_show_status() argument
1709 if (opts & PF_OPT_SHOWALL) in pfctl_show_status()
1711 print_status(status, &cookies, opts); in pfctl_show_status()
1735 pfctl_show_timeouts(int dev, int opts) in pfctl_show_timeouts() argument
1741 if (opts & PF_OPT_SHOWALL) in pfctl_show_timeouts()
1759 pfctl_show_limits(int dev, int opts) in pfctl_show_limits() argument
1765 if (opts & PF_OPT_SHOWALL) in pfctl_show_limits()
1780 pfctl_show_creators(int opts) in pfctl_show_creators() argument
1805 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool()
1982 if (pf->opts & PF_OPT_VERBOSE) in pfctl_load_eth_ruleset()
1984 if ((pf->opts & PF_OPT_NOACTION) == 0 && in pfctl_load_eth_ruleset()
1991 } else if (pf->opts & PF_OPT_VERBOSE) in pfctl_load_eth_ruleset()
2006 } else if (pf->opts & PF_OPT_VERBOSE) in pfctl_load_eth_ruleset()
2010 if (brace && pf->opts & PF_OPT_VERBOSE) { in pfctl_load_eth_ruleset()
2011 INDENT(depth - 1, (pf->opts & PF_OPT_VERBOSE)); in pfctl_load_eth_ruleset()
2048 if ((pf->opts & PF_OPT_NOACTION) == 0) in pfctl_load_eth_rule()
2053 if (pf->opts & PF_OPT_VERBOSE) { in pfctl_load_eth_rule()
2054 INDENT(depth, !(pf->opts & PF_OPT_VERBOSE2)); in pfctl_load_eth_rule()
2056 pf->opts & (PF_OPT_VERBOSE2 | PF_OPT_DEBUG)); in pfctl_load_eth_rule()
2082 if (pf->opts & PF_OPT_VERBOSE) in pfctl_load_ruleset()
2084 if ((pf->opts & PF_OPT_NOACTION) == 0 && in pfctl_load_ruleset()
2091 } else if (pf->opts & PF_OPT_VERBOSE) in pfctl_load_ruleset()
2112 } else if (pf->opts & PF_OPT_VERBOSE) in pfctl_load_ruleset()
2116 if (brace && pf->opts & PF_OPT_VERBOSE) { in pfctl_load_ruleset()
2117 INDENT(depth - 1, (pf->opts & PF_OPT_VERBOSE)); in pfctl_load_ruleset()
2141 if ((pf->opts & PF_OPT_NOACTION) == 0) in pfctl_load_rule()
2161 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_load_rule()
2162 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_load_rule()
2189 if (pf->opts & PF_OPT_VERBOSE) { in pfctl_load_rule()
2190 INDENT(depth, !(pf->opts & PF_OPT_VERBOSE2)); in pfctl_load_rule()
2192 pf->opts & PF_OPT_VERBOSE2, in pfctl_load_rule()
2193 pf->opts & PF_OPT_NUMERIC); in pfctl_load_rule()
2209 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_altq()
2226 pfctl_rules(int dev, char *filename, int opts, int optimize, in pfctl_rules() argument
2271 pf.opts = opts; in pfctl_rules()
2313 if ((opts & PF_OPT_NOACTION) == 0) { in pfctl_rules()
2332 if ((opts & PF_OPT_NOACTION) == 0) in pfctl_rules()
2351 if ((opts & PF_OPT_NOACTION) == 0) in pfctl_rules()
2358 if (check_commit_altq(dev, opts) != 0) in pfctl_rules()
2366 if ((opts & PF_OPT_NOACTION) == 0) { in pfctl_rules()
2378 if ((opts & PF_OPT_NOACTION) == 0) in pfctl_rules()
2465 if ((pf->opts & PF_OPT_MERGE) && !pf->limit_set[i]) in pfctl_load_options()
2488 if ((pf->opts & PF_OPT_MERGE) && !pf->timeout_set[i]) in pfctl_load_options()
2495 if (!(pf->opts & PF_OPT_MERGE) || pf->debug_set) in pfctl_load_options()
2500 if (!(pf->opts & PF_OPT_MERGE) || pf->ifname_set) in pfctl_load_options()
2505 if (!(pf->opts & PF_OPT_MERGE) || pf->hostid_set) in pfctl_load_options()
2510 if (!(pf->opts & PF_OPT_MERGE) || pf->reass_set) in pfctl_load_options()
2543 if (pf->opts & PF_OPT_VERBOSE) in pfctl_apply_limit()
2586 if (pf->opts & PF_OPT_VERBOSE && ! quiet) in pfctl_apply_timeout()
2617 if (pf->opts & PF_OPT_VERBOSE) in pfctl_set_reassembly()
2648 if (pf->opts & PF_OPT_VERBOSE) in pfctl_set_optimization()
2671 if (pf->opts & PF_OPT_VERBOSE) in pfctl_set_logif()
2698 if (pf->opts & PF_OPT_VERBOSE) in pfctl_set_hostid()
2761 if (pf->opts & PF_OPT_VERBOSE) { in pfctl_cfg_syncookies()
2808 if ((pf->opts & PF_OPT_NOACTION) == 0) in pfctl_do_set_debug()
2812 if (pf->opts & PF_OPT_VERBOSE) in pfctl_do_set_debug()
2851 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_set_interface_flags()
2854 pfctl_err(pf->opts, 1, "DIOCCLRIFFLAG"); in pfctl_set_interface_flags()
2865 pfctl_debug(int dev, u_int32_t level, int opts) in pfctl_debug() argument
2871 if ((opts & PF_OPT_QUIET) == 0) { in pfctl_debug()
2895 pfctl_test_altqsupport(int dev, int opts) in pfctl_test_altqsupport() argument
2902 if (opts & PF_OPT_VERBOSE) in pfctl_test_altqsupport()
2913 pfctl_walk_show(int opts, struct pfioc_ruleset *pr, void *warg) in pfctl_walk_show() argument
2916 if (pr->path[0] != '_' || (opts & PF_OPT_VERBOSE)) in pfctl_walk_show()
2918 } else if (pr->name[0] != '_' || (opts & PF_OPT_VERBOSE)) in pfctl_walk_show()
2925 pfctl_walk_get(int opts, struct pfioc_ruleset *pr, void *warg) in pfctl_walk_get() argument
2952 pfctl_walk_anchors(int dev, int opts, const char *anchor, in pfctl_walk_anchors() argument
2970 if (walkf(opts, &pr, warg)) in pfctl_walk_anchors()
2977 if (pfctl_walk_anchors(dev, opts, sub, walkf, warg)) in pfctl_walk_anchors()
2984 pfctl_show_anchors(int dev, int opts, char *anchor) in pfctl_show_anchors() argument
2987 pfctl_walk_anchors(dev, opts, anchor, pfctl_walk_show, NULL)); in pfctl_show_anchors()
2991 pfctl_get_anchors(int dev, const char *anchor, int opts) in pfctl_get_anchors() argument
3013 pfctl_walk_get(opts, &pr, &anchors); in pfctl_get_anchors()
3015 if (pfctl_walk_anchors(dev, opts, anchor, pfctl_walk_get, &anchors)) in pfctl_get_anchors()
3023 pfctl_call_cleartables(int dev, int opts, struct pfr_anchoritem *pfra) in pfctl_call_cleartables() argument
3029 opts |= PF_OPT_QUIET; in pfctl_call_cleartables()
3030 return ((pfctl_do_clear_tables(pfra->pfra_anchorname, opts) == -1) ? in pfctl_call_cleartables()
3035 pfctl_call_clearrules(int dev, int opts, struct pfr_anchoritem *pfra) in pfctl_call_clearrules() argument
3041 opts |= PF_OPT_QUIET; in pfctl_call_clearrules()
3042 return (pfctl_flush_rules(dev, opts, pfra->pfra_anchorname)); in pfctl_call_clearrules()
3046 pfctl_call_clearanchors(int dev, int opts, struct pfr_anchoritem *pfra) in pfctl_call_clearanchors() argument
3050 rv |= pfctl_call_cleartables(dev, opts, pfra); in pfctl_call_clearanchors()
3051 rv |= pfctl_call_clearrules(dev, opts, pfra); in pfctl_call_clearanchors()
3057 pfctl_recurse(int dev, int opts, const char *anchorname, in pfctl_recurse() argument
3064 anchors = pfctl_get_anchors(dev, anchorname, opts); in pfctl_recurse()
3069 opts |= PF_OPT_IGNFAIL; in pfctl_recurse()
3075 rv |= walkf(dev, opts, pfra); in pfctl_recurse()
3085 pfctl_show_eth_anchors(int dev, int opts, char *anchorname) in pfctl_show_eth_anchors() argument
3114 if (sub[0] != '_' || (opts & PF_OPT_VERBOSE)) in pfctl_show_eth_anchors()
3116 if ((opts & PF_OPT_VERBOSE) && pfctl_show_eth_anchors(dev, opts, sub)) in pfctl_show_eth_anchors()
3133 pfctl_reset(int dev, int opts) in pfctl_reset() argument
3168 pfctl_clear_interface_flags(dev, opts); in pfctl_reset()
3176 int opts = 0; in main() local
3191 opts |= PF_OPT_DISABLE; in main()
3200 opts |= PF_OPT_ENABLE; in main()
3204 opts |= PF_OPT_QUIET; in main()
3236 opts |= PF_OPT_MERGE; in main()
3239 opts |= PF_OPT_KILLMATCH; in main()
3242 opts |= PF_OPT_NOACTION; in main()
3248 opts |= PF_OPT_USEDNS; in main()
3255 opts |= PF_OPT_DEBUG; in main()
3269 opts |= PF_OPT_OPTIMIZE; in main()
3278 opts |= PF_OPT_NUMERIC; in main()
3288 opts |= PF_OPT_NODNS; in main()
3301 if (opts & PF_OPT_VERBOSE) in main()
3302 opts |= PF_OPT_VERBOSE2; in main()
3303 opts |= PF_OPT_VERBOSE; in main()
3314 opts |= PF_OPT_CLRRULECTRS; in main()
3325 if ((opts & PF_OPT_NODNS) && (opts & PF_OPT_USEDNS)) in main()
3368 opts |= PF_OPT_RECURSE; in main()
3377 if ((opts & PF_OPT_NOACTION) == 0) { in main()
3381 altqsupport = pfctl_test_altqsupport(dev, opts); in main()
3385 opts |= PF_OPT_DUMMYACTION; in main()
3387 opts &= ~ (PF_OPT_DISABLE | PF_OPT_ENABLE); in main()
3399 if (opts & PF_OPT_DISABLE) in main()
3400 if (pfctl_disable(dev, opts)) in main()
3409 pfctl_show_anchors(dev, opts, anchorname); in main()
3410 if (opts & PF_OPT_VERBOSE2) in main()
3412 pfctl_show_eth_anchors(dev, opts, anchorname); in main()
3415 pfctl_load_fingerprints(dev, opts); in main()
3416 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_RULES, in main()
3420 pfctl_load_fingerprints(dev, opts); in main()
3421 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_LABELS, in main()
3425 pfctl_load_fingerprints(dev, opts); in main()
3426 pfctl_show_nat(dev, path, opts, anchorname, 0, 0); in main()
3429 pfctl_show_altq(dev, ifaceopt, opts, in main()
3430 opts & PF_OPT_VERBOSE2); in main()
3433 pfctl_show_states(dev, ifaceopt, opts); in main()
3436 pfctl_show_src_nodes(dev, opts); in main()
3439 pfctl_show_status(dev, opts); in main()
3445 pfctl_show_timeouts(dev, opts); in main()
3448 pfctl_show_limits(dev, opts); in main()
3451 pfctl_show_eth_rules(dev, path, opts, 0, anchorname, 0, in main()
3455 opts |= PF_OPT_SHOWALL; in main()
3456 pfctl_load_fingerprints(dev, opts); in main()
3458 pfctl_show_eth_rules(dev, path, opts, 0, anchorname, 0, in main()
3461 pfctl_show_nat(dev, path, opts, anchorname, 0, 0); in main()
3462 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_RULES, in main()
3464 pfctl_show_altq(dev, ifaceopt, opts, 0); in main()
3465 pfctl_show_states(dev, ifaceopt, opts); in main()
3466 pfctl_show_src_nodes(dev, opts); in main()
3467 pfctl_show_status(dev, opts); in main()
3468 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_LABELS, in main()
3470 pfctl_show_timeouts(dev, opts); in main()
3471 pfctl_show_limits(dev, opts); in main()
3472 pfctl_show_tables(anchorname, opts); in main()
3473 pfctl_show_fingerprints(opts); in main()
3476 pfctl_show_tables(anchorname, opts); in main()
3479 pfctl_load_fingerprints(dev, opts); in main()
3480 pfctl_show_fingerprints(opts); in main()
3483 pfctl_show_ifaces(ifaceopt, opts); in main()
3486 pfctl_show_creators(opts); in main()
3491 if ((opts & PF_OPT_CLRRULECTRS) && showopt == NULL) { in main()
3492 pfctl_show_eth_rules(dev, path, opts, PFCTL_SHOW_NOTHING, in main()
3494 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_NOTHING, in main()
3501 pfctl_flush_eth_rules(dev, opts, anchorname); in main()
3504 if (opts & PF_OPT_RECURSE) in main()
3505 pfctl_recurse(dev, opts, anchorname, in main()
3508 pfctl_flush_rules(dev, opts, anchorname); in main()
3511 pfctl_flush_nat(dev, opts, anchorname); in main()
3514 pfctl_clear_altq(dev, opts); in main()
3517 pfctl_clear_iface_states(dev, ifaceopt, opts); in main()
3520 pfctl_clear_src_nodes(dev, opts); in main()
3523 pfctl_clear_stats(pfh, opts); in main()
3531 pfctl_flush_eth_rules(dev, opts, anchorname); in main()
3532 pfctl_flush_rules(dev, opts, anchorname); in main()
3533 pfctl_flush_nat(dev, opts, anchorname); in main()
3534 if (opts & PF_OPT_RECURSE) in main()
3535 pfctl_recurse(dev, opts, anchorname, in main()
3538 pfctl_do_clear_tables(anchorname, opts); in main()
3539 pfctl_flush_rules(dev, opts, anchorname); in main()
3542 pfctl_clear_altq(dev, opts); in main()
3543 pfctl_clear_iface_states(dev, ifaceopt, opts); in main()
3544 pfctl_clear_src_nodes(dev, opts); in main()
3545 pfctl_clear_stats(pfh, opts); in main()
3546 pfctl_clear_fingerprints(dev, opts); in main()
3547 pfctl_reset(dev, opts); in main()
3551 pfctl_clear_fingerprints(dev, opts); in main()
3554 if ((opts & PF_OPT_RECURSE) == 0) in main()
3555 pfctl_do_clear_tables(anchorname, opts); in main()
3557 pfctl_recurse(dev, opts, anchorname, in main()
3561 pfctl_reset(dev, opts); in main()
3567 pfctl_label_kill_states(dev, ifaceopt, opts); in main()
3569 pfctl_id_kill_states(dev, ifaceopt, opts); in main()
3571 pfctl_gateway_kill_states(dev, ifaceopt, opts); in main()
3573 pfctl_key_kill_states(dev, ifaceopt, opts); in main()
3575 pfctl_net_kill_states(dev, ifaceopt, opts); in main()
3579 pfctl_kill_src_nodes(dev, opts); in main()
3583 tblcmdopt, rulesopt, anchorname, opts); in main()
3602 !anchorname[0] && !(opts & PF_OPT_NOACTION)) in main()
3605 if (rulesopt != NULL && !(opts & PF_OPT_MERGE) && in main()
3607 if (pfctl_file_fingerprints(dev, opts, PF_OSFP_FILE)) in main()
3611 if (pfctl_rules(dev, rulesopt, opts, optimize, in main()
3616 if (opts & PF_OPT_ENABLE) in main()
3617 if (pfctl_enable(dev, opts)) in main()
3623 pfctl_debug(dev, PF_DEBUG_NONE, opts); in main()
3626 pfctl_debug(dev, PF_DEBUG_URGENT, opts); in main()
3629 pfctl_debug(dev, PF_DEBUG_MISC, opts); in main()
3632 pfctl_debug(dev, PF_DEBUG_NOISY, opts); in main()