Searched refs:pfrb_size (Results 1 – 7 of 7) sorted by relevance
/freebsd/sbin/pfctl/ |
H A D | pfctl_table.c | 169 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 D | pfctl_radix.c | 362 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 D | pfctl.h | 49 int pfrb_size; /* number of objects in buffer */ member
|
H A D | pfctl.c | 372 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 D | pfctl_optimize.c | 1308 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 D | pfctl_parser.c | 2124 trans.size = buf->pfrb_size - from; in pfctl_trans()
|
H A D | parse.y | 5613 if (ab.pfrb_size > maxcount) in process_tabledef()
|