Home | History | Annotate | Download | only in pfctl

Lines Matching refs:opts

242 pfctl_enable(int dev, int opts)
250 if ((opts & PF_OPT_QUIET) == 0)
261 pfctl_disable(int dev, int opts)
269 if ((opts & PF_OPT_QUIET) == 0)
280 pfctl_clear_stats(int dev, int opts)
284 if ((opts & PF_OPT_QUIET) == 0)
290 pfctl_clear_interface_flags(int dev, int opts)
294 if ((opts & PF_OPT_NOACTION) == 0) {
300 if ((opts & PF_OPT_QUIET) == 0)
307 pfctl_clear_rules(int dev, int opts, char *anchorname)
318 if ((opts & PF_OPT_QUIET) == 0)
324 pfctl_clear_nat(int dev, int opts, char *anchorname)
336 if ((opts & PF_OPT_QUIET) == 0)
342 pfctl_clear_altq(int dev, int opts)
354 if ((opts & PF_OPT_QUIET) == 0)
360 pfctl_clear_src_nodes(int dev, int opts)
364 if ((opts & PF_OPT_QUIET) == 0)
370 pfctl_clear_states(int dev, const char *iface, int opts)
381 if ((opts & PF_OPT_QUIET) == 0)
437 pfctl_kill_src_nodes(int dev, const char *iface, int opts)
537 if ((opts & PF_OPT_QUIET) == 0)
544 pfctl_kill_states(int dev, const char *iface, int opts)
647 if ((opts & PF_OPT_QUIET) == 0)
711 pfctl_print_rule_counters(struct pf_rule *rule, int opts)
713 if (opts & PF_OPT_DEBUG) {
733 if (opts & PF_OPT_VERBOSE) {
741 if (!(opts & PF_OPT_DEBUG))
757 pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format,
762 int rule_numbers = opts & (PF_OPT_VERBOSE2 | PF_OPT_DEBUG);
774 if (opts & PF_OPT_SHOWALL) {
787 if (opts & PF_OPT_SHOWALL) {
794 if (opts & PF_OPT_CLRRULECTRS)
825 if (pr.rule.label[0] && (opts & PF_OPT_SHOWALL))
829 pfctl_print_rule_counters(&pr.rule, opts);
871 if (pr.rule.label[0] && (opts & PF_OPT_SHOWALL))
873 INDENT(depth, !(opts & PF_OPT_VERBOSE));
877 *(--p) == '/')) || (opts & PF_OPT_RECURSE))) {
892 pfctl_print_rule_counters(&pr.rule, opts);
894 pfctl_show_rules(dev, path, opts, format,
896 INDENT(depth, !(opts & PF_OPT_VERBOSE));
914 pfctl_show_nat(int dev, int opts, char *anchorname)
919 int i, dotitle = opts & PF_OPT_SHOWALL;
944 opts & PF_OPT_VERBOSE2);
946 pfctl_print_rule_counters(&pr.rule, opts);
954 pfctl_show_src_nodes(int dev, int opts)
987 if (psn.psn_len > 0 && (opts & PF_OPT_SHOWALL))
990 print_src_node(p, opts);
999 pfctl_show_states(int dev, const char *iface, int opts)
1005 int i, dotitle = (opts & PF_OPT_SHOWALL);
1039 print_state(p, opts);
1047 pfctl_show_status(int dev, int opts)
1055 if (opts & PF_OPT_SHOWALL)
1057 print_status(&status, opts);
1062 pfctl_show_timeouts(int dev, int opts)
1067 if (opts & PF_OPT_SHOWALL)
1087 pfctl_show_limits(int dev, int opts)
1092 if (opts & PF_OPT_SHOWALL)
1114 if ((pf->opts & PF_OPT_NOACTION) == 0) {
1122 if ((pf->opts & PF_OPT_NOACTION) == 0) {
1225 if (pf->opts & PF_OPT_VERBOSE)
1227 if ((pf->opts & PF_OPT_NOACTION) == 0 &&
1234 } else if (pf->opts & PF_OPT_VERBOSE)
1250 } else if (pf->opts & PF_OPT_VERBOSE)
1254 if (brace && pf->opts & PF_OPT_VERBOSE) {
1255 INDENT(depth - 1, (pf->opts & PF_OPT_VERBOSE));
1277 if ((pf->opts & PF_OPT_NOACTION) == 0)
1296 if ((pf->opts & PF_OPT_NOACTION) == 0) {
1308 if (pf->opts & PF_OPT_VERBOSE) {
1309 INDENT(depth, !(pf->opts & PF_OPT_VERBOSE2));
1311 pf->opts & PF_OPT_VERBOSE2);
1324 if ((pf->opts & PF_OPT_NOACTION) == 0) {
1341 pfctl_rules(int dev, char *filename, FILE *fin, int opts, int optimize,
1379 pf.opts = opts;
1405 if ((opts & PF_OPT_NOACTION) == 0) {
1422 if ((opts & PF_OPT_NOACTION) == 0)
1437 if ((opts & PF_OPT_NOACTION) == 0)
1444 if (check_commit_altq(dev, opts) != 0)
1457 if (trans == NULL && (opts & PF_OPT_NOACTION) == 0) {
1468 if ((opts & PF_OPT_NOACTION) == 0)
1556 if ((pf->opts & PF_OPT_MERGE) && !pf->limit_set[i])
1579 if ((pf->opts & PF_OPT_MERGE) && !pf->timeout_set[i])
1586 if (!(pf->opts & PF_OPT_MERGE) || pf->debug_set)
1591 if (!(pf->opts & PF_OPT_MERGE) || pf->ifname_set)
1596 if (!(pf->opts & PF_OPT_MERGE) || pf->hostid_set)
1621 if (pf->opts & PF_OPT_VERBOSE)
1667 if (pf->opts & PF_OPT_VERBOSE && ! quiet)
1712 if (pf->opts & PF_OPT_VERBOSE)
1735 if (pf->opts & PF_OPT_VERBOSE)
1770 if (pf->opts & PF_OPT_VERBOSE)
1809 if ((pf->opts & PF_OPT_NOACTION) == 0)
1813 if (pf->opts & PF_OPT_VERBOSE)
1845 if ((pf->opts & PF_OPT_NOACTION) == 0) {
1858 pfctl_debug(int dev, u_int32_t level, int opts)
1862 if ((opts & PF_OPT_QUIET) == 0) {
1886 pfctl_test_altqsupport(int dev, int opts)
1892 if (!(opts & PF_OPT_QUIET))
1903 pfctl_show_anchors(int dev, int opts, char *anchorname)
1933 if (sub[0] != '_' || (opts & PF_OPT_VERBOSE))
1935 if ((opts & PF_OPT_VERBOSE) && pfctl_show_anchors(dev, opts, sub))
1957 int opts = 0;
1973 opts |= PF_OPT_DISABLE;
1982 opts |= PF_OPT_ENABLE;
1986 opts |= PF_OPT_QUIET;
2018 opts |= PF_OPT_MERGE;
2021 opts |= PF_OPT_NOACTION;
2027 opts |= PF_OPT_USEDNS;
2034 opts |= PF_OPT_DEBUG;
2048 opts |= PF_OPT_OPTIMIZE;
2074 if (opts & PF_OPT_VERBOSE)
2075 opts |= PF_OPT_VERBOSE2;
2076 opts |= PF_OPT_VERBOSE;
2087 opts |= PF_OPT_CLRRULECTRS;
2126 opts |= PF_OPT_RECURSE;
2135 if ((opts & PF_OPT_NOACTION) == 0) {
2139 altqsupport = pfctl_test_altqsupport(dev, opts);
2143 opts |= PF_OPT_DUMMYACTION;
2145 opts &= ~ (PF_OPT_DISABLE | PF_OPT_ENABLE);
2150 if (opts & PF_OPT_DISABLE)
2151 if (pfctl_disable(dev, opts))
2157 pfctl_show_anchors(dev, opts, anchorname);
2160 pfctl_load_fingerprints(dev, opts);
2161 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_RULES,
2165 pfctl_load_fingerprints(dev, opts);
2166 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_LABELS,
2170 pfctl_load_fingerprints(dev, opts);
2171 pfctl_show_nat(dev, opts, anchorname);
2174 pfctl_show_altq(dev, ifaceopt, opts,
2175 opts & PF_OPT_VERBOSE2);
2178 pfctl_show_states(dev, ifaceopt, opts);
2181 pfctl_show_src_nodes(dev, opts);
2184 pfctl_show_status(dev, opts);
2187 pfctl_show_timeouts(dev, opts);
2190 pfctl_show_limits(dev, opts);
2193 opts |= PF_OPT_SHOWALL;
2194 pfctl_load_fingerprints(dev, opts);
2196 pfctl_show_nat(dev, opts, anchorname);
2197 pfctl_show_rules(dev, path, opts, 0, anchorname, 0);
2198 pfctl_show_altq(dev, ifaceopt, opts, 0);
2199 pfctl_show_states(dev, ifaceopt, opts);
2200 pfctl_show_src_nodes(dev, opts);
2201 pfctl_show_status(dev, opts);
2202 pfctl_show_rules(dev, path, opts, 1, anchorname, 0);
2203 pfctl_show_timeouts(dev, opts);
2204 pfctl_show_limits(dev, opts);
2205 pfctl_show_tables(anchorname, opts);
2206 pfctl_show_fingerprints(opts);
2209 pfctl_show_tables(anchorname, opts);
2212 pfctl_load_fingerprints(dev, opts);
2213 pfctl_show_fingerprints(opts);
2216 pfctl_show_ifaces(ifaceopt, opts);
2221 if ((opts & PF_OPT_CLRRULECTRS) && showopt == NULL)
2222 pfctl_show_rules(dev, path, opts, PFCTL_SHOW_NOTHING,
2232 pfctl_clear_rules(dev, opts, anchorname);
2235 pfctl_clear_nat(dev, opts, anchorname);
2238 pfctl_clear_altq(dev, opts);
2241 pfctl_clear_states(dev, ifaceopt, opts);
2244 pfctl_clear_src_nodes(dev, opts);
2247 pfctl_clear_stats(dev, opts);
2250 pfctl_clear_rules(dev, opts, anchorname);
2251 pfctl_clear_nat(dev, opts, anchorname);
2252 pfctl_clear_tables(anchorname, opts);
2254 pfctl_clear_altq(dev, opts);
2255 pfctl_clear_states(dev, ifaceopt, opts);
2256 pfctl_clear_src_nodes(dev, opts);
2257 pfctl_clear_stats(dev, opts);
2258 pfctl_clear_fingerprints(dev, opts);
2259 pfctl_clear_interface_flags(dev, opts);
2263 pfctl_clear_fingerprints(dev, opts);
2266 pfctl_clear_tables(anchorname, opts);
2271 pfctl_kill_states(dev, ifaceopt, opts);
2274 pfctl_kill_src_nodes(dev, ifaceopt, opts);
2278 tblcmdopt, rulesopt, anchorname, opts);
2307 if (pfctl_clear_interface_flags(dev, opts | PF_OPT_QUIET))
2310 if (rulesopt != NULL && !(opts & (PF_OPT_MERGE|PF_OPT_NOACTION)) &&
2312 if (pfctl_file_fingerprints(dev, opts, PF_OSFP_FILE))
2319 if (pfctl_rules(dev, rulesopt, fin, opts, optimize,
2322 else if (!(opts & PF_OPT_NOACTION) &&
2327 if (opts & PF_OPT_ENABLE)
2328 if (pfctl_enable(dev, opts))
2334 pfctl_debug(dev, PF_DEBUG_NONE, opts);
2337 pfctl_debug(dev, PF_DEBUG_URGENT, opts);
2340 pfctl_debug(dev, PF_DEBUG_MISC, opts);
2343 pfctl_debug(dev, PF_DEBUG_NOISY, opts);