Lines Matching refs:opts
79 if ((!(opts & PF_OPT_NOACTION) || \
80 (opts & PF_OPT_DUMMYACTION)) && \
89 if ((!(opts & PF_OPT_NOACTION) || \
90 (opts & PF_OPT_DUMMYACTION)) && \
98 xprintf(opts, "%d table created", nadd); \
99 if (opts & PF_OPT_NOACTION) \
106 pfctl_clear_tables(const char *anchor, int opts) in pfctl_clear_tables() argument
108 return pfctl_table(0, NULL, NULL, "-F", NULL, anchor, opts); in pfctl_clear_tables()
112 pfctl_show_tables(const char *anchor, int opts) in pfctl_show_tables() argument
114 return pfctl_table(0, NULL, NULL, "-s", NULL, anchor, opts); in pfctl_show_tables()
119 const char *command, char *file, const char *anchor, int opts) in pfctl_command_tables() argument
123 return pfctl_table(argc, argv, tname, command, file, anchor, opts); in pfctl_command_tables()
128 char *file, const char *anchor, int opts) in pfctl_table() argument
139 if (opts & PF_OPT_NOACTION) in pfctl_table()
160 xprintf(opts, "%d tables deleted", ndel); in pfctl_table()
162 b.pfrb_type = (opts & PF_OPT_VERBOSE2) ? in pfctl_table()
169 if (opts & PF_OPT_VERBOSE2) in pfctl_table()
179 if ((opts & PF_OPT_SHOWALL) && b.pfrb_size > 0) in pfctl_table()
183 if (opts & PF_OPT_VERBOSE2) in pfctl_table()
184 print_tstats(p, opts & PF_OPT_DEBUG); in pfctl_table()
186 print_table(p, opts & PF_OPT_VERBOSE, in pfctl_table()
187 opts & PF_OPT_DEBUG); in pfctl_table()
192 xprintf(opts, "%d table deleted", ndel); in pfctl_table()
197 xprintf(opts, "%d addresses deleted", ndel); in pfctl_table()
203 if (opts & PF_OPT_VERBOSE) in pfctl_table()
207 xprintf(opts, "%d/%d addresses added", nadd, b.pfrb_size); in pfctl_table()
208 if (opts & PF_OPT_VERBOSE) in pfctl_table()
210 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback) in pfctl_table()
212 opts & PF_OPT_USEDNS); in pfctl_table()
217 if (opts & PF_OPT_VERBOSE) in pfctl_table()
221 xprintf(opts, "%d/%d addresses deleted", ndel, b.pfrb_size); in pfctl_table()
222 if (opts & PF_OPT_VERBOSE) in pfctl_table()
224 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback) in pfctl_table()
226 opts & PF_OPT_USEDNS); in pfctl_table()
232 if (opts & PF_OPT_VERBOSE) in pfctl_table()
246 xprintf(opts, "%d addresses added", nadd); in pfctl_table()
248 xprintf(opts, "%d addresses deleted", ndel); in pfctl_table()
250 xprintf(opts, "%d addresses changed", nchange); in pfctl_table()
252 xprintf(opts, "no changes"); in pfctl_table()
253 if (opts & PF_OPT_VERBOSE) in pfctl_table()
255 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback) in pfctl_table()
257 opts & PF_OPT_USEDNS); in pfctl_table()
286 if (opts & PF_OPT_VERBOSE) in pfctl_table()
290 xprintf(opts, "%d/%d addresses expired", ndel, b2.pfrb_size); in pfctl_table()
291 if (opts & PF_OPT_VERBOSE) in pfctl_table()
293 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback) in pfctl_table()
295 opts & PF_OPT_USEDNS); in pfctl_table()
297 b.pfrb_type = (opts & PF_OPT_VERBOSE) ? in pfctl_table()
304 if (opts & PF_OPT_VERBOSE) in pfctl_table()
314 if (opts & PF_OPT_VERBOSE) in pfctl_table()
315 print_astats(p, opts & PF_OPT_USEDNS); in pfctl_table()
317 print_addrx(p, NULL, opts & PF_OPT_USEDNS); in pfctl_table()
324 if (opts & PF_OPT_VERBOSE2) { in pfctl_table()
332 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size); in pfctl_table()
333 if ((opts & PF_OPT_VERBOSE) && !(opts & PF_OPT_VERBOSE2)) in pfctl_table()
337 opts & PF_OPT_USEDNS); in pfctl_table()
338 if (opts & PF_OPT_VERBOSE2) { in pfctl_table()
342 print_addrx(a2, a, opts & PF_OPT_USEDNS); in pfctl_table()
352 xprintf(opts, "%d table/stats cleared", nzero); in pfctl_table()
558 xprintf(int opts, const char *fmt, ...) in xprintf() argument
562 if (opts & PF_OPT_QUIET) in xprintf()
569 if (opts & PF_OPT_DUMMYACTION) in xprintf()
571 else if (opts & PF_OPT_NOACTION) in xprintf()
581 pfctl_show_ifaces(const char *filter, int opts) in pfctl_show_ifaces() argument
598 if (opts & PF_OPT_SHOWALL) in pfctl_show_ifaces()
601 print_iface(p, opts); in pfctl_show_ifaces()
606 print_iface(struct pfi_kif *p, int opts) in print_iface() argument
612 if (opts & PF_OPT_VERBOSE) { in print_iface()
618 if (!(opts & PF_OPT_VERBOSE2)) in print_iface()