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