Home
last modified time | relevance | path

Searched refs:pfrb_size (Results 1 – 7 of 7) sorted by relevance

/freebsd/sbin/pfctl/
H A Dpfctl_table.c169 if ((opts & PF_OPT_SHOWALL) && b.pfrb_size > 0) in pfctl_table()
178 pfr_buf_grow(&b, b.pfrb_size); in pfctl_table()
179 b.pfrb_size = b.pfrb_msize; in pfctl_table()
181 b.pfrb_caddr, &b.pfrb_size, flags)); in pfctl_table()
182 if (b.pfrb_size <= b.pfrb_msize) in pfctl_table()
186 if ((opts & PF_OPT_SHOWALL) && b.pfrb_size > 0) in pfctl_table()
210 RVTEST(pfr_add_addrs(&table, b.pfrb_caddr, b.pfrb_size, in pfctl_table()
212 xprintf(opts, "%d/%d addresses added", nadd, b.pfrb_size); in pfctl_table()
224 RVTEST(pfr_del_addrs(&table, b.pfrb_caddr, b.pfrb_size, in pfctl_table()
226 xprintf(opts, "%d/%d addresses deleted", ndel, b.pfrb_size); in pfctl_table()
[all …]
H A Dpfctl_radix.c362 if (b->pfrb_size == b->pfrb_msize) in pfr_buf_add()
365 memcpy(((caddr_t)b->pfrb_caddr) + bs * b->pfrb_size, e, bs); in pfr_buf_add()
366 b->pfrb_size++; in pfr_buf_add()
381 if (b->pfrb_size == 0) in pfr_buf_next()
386 if ((((caddr_t)prev)-((caddr_t)b->pfrb_caddr)) / bs >= b->pfrb_size-1) in pfr_buf_next()
435 b->pfrb_size = b->pfrb_msize = 0; in pfr_buf_clear()
H A Dpfctl.h49 int pfrb_size; /* number of objects in buffer */ member
H A Dpfctl.c372 pfr_buf_grow(&skip_b, skip_b.pfrb_size); in pfctl_get_skip_ifaces()
373 skip_b.pfrb_size = skip_b.pfrb_msize; in pfctl_get_skip_ifaces()
374 if (pfi_get_ifaces(NULL, skip_b.pfrb_caddr, &skip_b.pfrb_size)) in pfctl_get_skip_ifaces()
376 if (skip_b.pfrb_size <= skip_b.pfrb_msize) in pfctl_get_skip_ifaces()
1837 int osize = pf->trans->pfrb_size; in pfctl_eth_ruleset_trans()
1852 int osize = pf->trans->pfrb_size; in pfctl_ruleset_trans()
2176 osize = t->pfrb_size; in pfctl_rules()
H A Dpfctl_optimize.c1308 pfr_buf_grow(&table_buffer, table_buffer.pfrb_size); in pf_opt_create_table()
1309 table_buffer.pfrb_size = table_buffer.pfrb_msize; in pf_opt_create_table()
1311 &table_buffer.pfrb_size, PFR_FLAG_ALLRSETS)) in pf_opt_create_table()
1313 if (table_buffer.pfrb_size <= table_buffer.pfrb_msize) in pf_opt_create_table()
H A Dpfctl_parser.c2124 trans.size = buf->pfrb_size - from; in pfctl_trans()
H A Dparse.y5613 if (ab.pfrb_size > maxcount) in process_tabledef()