Lines Matching defs:opts
80 if ((!(opts & PF_OPT_NOACTION) || \
81 (opts & PF_OPT_DUMMYACTION)) && \
90 if ((!(opts & PF_OPT_NOACTION) || \
91 (opts & PF_OPT_DUMMYACTION)) && \
99 xprintf(opts, "%d table created", nadd); \
100 if (opts & PF_OPT_NOACTION) \
107 pfctl_do_clear_tables(const char *anchor, int opts)
109 return pfctl_table(0, NULL, NULL, "-F", NULL, anchor, opts);
113 pfctl_show_tables(const char *anchor, int opts)
115 return pfctl_table(0, NULL, NULL, "-s", NULL, anchor, opts);
120 const char *command, char *file, const char *anchor, int opts)
124 return pfctl_table(argc, argv, tname, command, file, anchor, opts);
129 char *file, const char *anchor, int opts)
140 if (opts & PF_OPT_NOACTION)
161 xprintf(opts, "%d tables deleted", ndel);
163 b.pfrb_type = (opts & PF_OPT_VERBOSE2) ?
170 if (opts & PF_OPT_VERBOSE2)
180 if ((opts & PF_OPT_SHOWALL) && b.pfrb_size > 0)
184 if (opts & PF_OPT_VERBOSE2)
185 print_tstats(p, opts & PF_OPT_DEBUG);
187 print_table(p, opts & PF_OPT_VERBOSE,
188 opts & PF_OPT_DEBUG);
193 xprintf(opts, "%d table deleted", ndel);
198 xprintf(opts, "%d addresses deleted", ndel);
204 if (opts & PF_OPT_VERBOSE)
208 xprintf(opts, "%d/%d addresses added", nadd, b.pfrb_size);
209 if (opts & PF_OPT_VERBOSE)
211 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
213 opts & PF_OPT_USEDNS);
218 if (opts & PF_OPT_VERBOSE)
222 xprintf(opts, "%d/%d addresses deleted", ndel, b.pfrb_size);
223 if (opts & PF_OPT_VERBOSE)
225 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
227 opts & PF_OPT_USEDNS);
233 if (opts & PF_OPT_VERBOSE)
247 xprintf(opts, "%d addresses added", nadd);
249 xprintf(opts, "%d addresses deleted", ndel);
251 xprintf(opts, "%d addresses changed", nchange);
253 xprintf(opts, "no changes");
254 if (opts & PF_OPT_VERBOSE)
256 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
258 opts & PF_OPT_USEDNS);
287 if (opts & PF_OPT_VERBOSE)
291 xprintf(opts, "%d/%d addresses expired", ndel, b2.pfrb_size);
292 if (opts & PF_OPT_VERBOSE)
294 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
296 opts & PF_OPT_USEDNS);
317 if (opts & PF_OPT_VERBOSE)
321 xprintf(opts, "%d/%d stats cleared", nzero, b.pfrb_size);
322 if (opts & PF_OPT_VERBOSE)
324 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
326 opts & PF_OPT_USEDNS);
328 b.pfrb_type = (opts & PF_OPT_VERBOSE) ?
335 if (opts & PF_OPT_VERBOSE)
345 if (opts & PF_OPT_VERBOSE)
346 print_astats(p, opts & PF_OPT_USEDNS);
348 print_addrx(p, NULL, opts & PF_OPT_USEDNS);
355 if (opts & PF_OPT_VERBOSE2) {
363 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size);
364 if ((opts & PF_OPT_VERBOSE) && !(opts & PF_OPT_VERBOSE2))
368 opts & PF_OPT_USEDNS);
369 if (opts & PF_OPT_VERBOSE2) {
373 print_addrx(a2, a, opts & PF_OPT_USEDNS);
382 if (opts & PF_OPT_VERBOSE)
386 xprintf(opts, "%d/%d addresses cleared", nzero, b.pfrb_size);
387 if (opts & PF_OPT_VERBOSE)
389 if (opts & PF_OPT_VERBOSE2 ||
392 opts & PF_OPT_USEDNS);
396 xprintf(opts, "%d table/stats cleared", nzero);
615 xprintf(int opts, const char *fmt, ...)
619 if (opts & PF_OPT_QUIET)
626 if (opts & PF_OPT_DUMMYACTION)
628 else if (opts & PF_OPT_NOACTION)
638 pfctl_show_ifaces(const char *filter, int opts)
655 if (opts & PF_OPT_SHOWALL)
658 print_iface(p, opts);
663 print_iface(struct pfi_kif *p, int opts)
669 if (opts & PF_OPT_VERBOSE) {
675 if (!(opts & PF_OPT_VERBOSE2))