Lines Matching defs:pool_opts
208 struct pool_opts {
217 } pool_opts;
227 struct pool_opts pool_opts;
455 struct pool_opts pool_opts;
534 %type <v.pool_opts> pool_opts pool_opt pool_opts_l
2041 | NATTO redirpool pool_opts {
2047 memcpy(&filter_opts.nat.pool_opts, &$3,
2048 sizeof(filter_opts.nat.pool_opts));
2050 | AFTO af FROM redirpool pool_opts {
2061 memcpy(&filter_opts.nat.pool_opts, &$5,
2062 sizeof(filter_opts.nat.pool_opts));
2065 bzero(&filter_opts.rdr.pool_opts,
2066 sizeof(filter_opts.rdr.pool_opts));
2069 | AFTO af FROM redirpool pool_opts TO redirpool pool_opts {
2086 memcpy(&filter_opts.nat.pool_opts, &$5,
2087 sizeof(filter_opts.nat.pool_opts));
2090 memcpy(&filter_opts.nat.pool_opts, &$8,
2091 sizeof(filter_opts.nat.pool_opts));
2094 | RDRTO redirpool pool_opts {
2100 memcpy(&filter_opts.rdr.pool_opts, &$3,
2101 sizeof(filter_opts.rdr.pool_opts));
2103 | BINATTO redirpool pool_opts {
2110 memcpy(&filter_opts.nat.pool_opts, &$3,
2111 sizeof(filter_opts.nat.pool_opts));
2112 filter_opts.nat.pool_opts.staticport = 1;
3638 pool_opts : { bzero(&pool_opts, sizeof pool_opts); }
3640 { $$ = pool_opts; }
3642 bzero(&pool_opts, sizeof pool_opts);
3643 $$ = pool_opts;
3652 if (pool_opts.type) {
3656 pool_opts.type = PF_POOL_BITMASK;
3659 if (pool_opts.type) {
3663 pool_opts.type = PF_POOL_RANDOM;
3666 if (pool_opts.type) {
3670 pool_opts.type = PF_POOL_SRCHASH;
3671 pool_opts.key = $2;
3674 if (pool_opts.type) {
3678 pool_opts.type = PF_POOL_ROUNDROBIN;
3681 if (pool_opts.type) {
3685 pool_opts.type = PF_POOL_LEASTSTATES;
3688 if (pool_opts.staticport) {
3692 pool_opts.staticport = 1;
3695 if (pool_opts.marker & POM_STICKYADDRESS) {
3699 pool_opts.marker |= POM_STICKYADDRESS;
3700 pool_opts.opts |= PF_POOL_STICKYADDR;
3704 routespec : redirspec pool_opts {
3716 memcpy(&filter_opts.rroute.pool_opts, &$2,
3717 sizeof(filter_opts.rroute.pool_opts));
4470 if (rs->pool_opts.type &&
4471 !PF_POOL_DYNTYPE(rs->pool_opts.type)) {
4578 rpool->opts = rs->pool_opts.type;
4591 if (rs->pool_opts.key != NULL)
4592 memcpy(&rpool->key, rs->pool_opts.key,
4595 if (rs->pool_opts.opts)
4596 rpool->opts |= rs->pool_opts.opts;
4598 if (rs->pool_opts.staticport) {
4876 bcopy(&nat->pool_opts, &binat.pool_opts,
4877 sizeof(binat.pool_opts));
4878 binat.pool_opts.staticport = 0;