Lines Matching refs:opts
78 if ((!(opts & PF_OPT_NOACTION) || \
79 (opts & PF_OPT_DUMMYACTION)) && \
88 if ((!(opts & PF_OPT_NOACTION) || \
89 (opts & PF_OPT_DUMMYACTION)) && \
97 xprintf(opts, "%d table created", nadd); \
98 if (opts & PF_OPT_NOACTION) \
105 pfctl_clear_tables(const char *anchor, int opts)
107 return pfctl_table(0, NULL, NULL, "-F", NULL, anchor, opts);
111 pfctl_show_tables(const char *anchor, int opts)
113 return pfctl_table(0, NULL, NULL, "-s", NULL, anchor, opts);
118 const char *command, char *file, const char *anchor, int opts)
122 return pfctl_table(argc, argv, tname, command, file, anchor, opts);
127 char *file, const char *anchor, int opts)
138 if (opts & PF_OPT_NOACTION)
159 xprintf(opts, "%d tables deleted", ndel);
161 b.pfrb_type = (opts & PF_OPT_VERBOSE2) ?
168 if (opts & PF_OPT_VERBOSE2)
178 if ((opts & PF_OPT_SHOWALL) && b.pfrb_size > 0)
182 if (opts & PF_OPT_VERBOSE2)
183 print_tstats(p, opts & PF_OPT_DEBUG);
185 print_table(p, opts & PF_OPT_VERBOSE,
186 opts & PF_OPT_DEBUG);
191 xprintf(opts, "%d table deleted", ndel);
196 xprintf(opts, "%d addresses deleted", ndel);
202 if (opts & PF_OPT_VERBOSE)
206 xprintf(opts, "%d/%d addresses added", nadd, b.pfrb_size);
207 if (opts & PF_OPT_VERBOSE)
209 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
211 opts & PF_OPT_USEDNS);
216 if (opts & PF_OPT_VERBOSE)
220 xprintf(opts, "%d/%d addresses deleted", ndel, b.pfrb_size);
221 if (opts & PF_OPT_VERBOSE)
223 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
225 opts & PF_OPT_USEDNS);
231 if (opts & PF_OPT_VERBOSE)
245 xprintf(opts, "%d addresses added", nadd);
247 xprintf(opts, "%d addresses deleted", ndel);
249 xprintf(opts, "%d addresses changed", nchange);
251 xprintf(opts, "no changes");
252 if (opts & PF_OPT_VERBOSE)
254 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
256 opts & PF_OPT_USEDNS);
283 if (opts & PF_OPT_VERBOSE)
287 xprintf(opts, "%d/%d addresses expired", ndel, b2.pfrb_size);
288 if (opts & PF_OPT_VERBOSE)
290 if ((opts & PF_OPT_VERBOSE2) || a->pfra_fback)
292 opts & PF_OPT_USEDNS);
294 b.pfrb_type = (opts & PF_OPT_VERBOSE) ?
301 if (opts & PF_OPT_VERBOSE)
311 if (opts & PF_OPT_VERBOSE)
312 print_astats(p, opts & PF_OPT_USEDNS);
314 print_addrx(p, NULL, opts & PF_OPT_USEDNS);
321 if (opts & PF_OPT_VERBOSE2) {
329 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size);
330 if ((opts & PF_OPT_VERBOSE) && !(opts & PF_OPT_VERBOSE2))
334 opts & PF_OPT_USEDNS);
335 if (opts & PF_OPT_VERBOSE2) {
339 print_addrx(a2, a, opts & PF_OPT_USEDNS);
349 xprintf(opts, "%d table/stats cleared", nzero);
552 xprintf(int opts, const char *fmt, ...)
556 if (opts & PF_OPT_QUIET)
563 if (opts & PF_OPT_DUMMYACTION)
565 else if (opts & PF_OPT_NOACTION)
575 pfctl_show_ifaces(const char *filter, int opts)
594 if (opts & PF_OPT_SHOWALL)
597 print_iface(p, opts);
602 print_iface(struct pfi_kif *p, int opts)
608 if (opts & PF_OPT_VERBOSE) {
614 if (!(opts & PF_OPT_VERBOSE2))