Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/parse.y
Show First 20 Lines • Show All 4,460 Lines • ▼ Show 20 Lines | pool_opt : BITMASK { | ||||
| STATICPORT { | | STATICPORT { | ||||
if (pool_opts.staticport) { | if (pool_opts.staticport) { | ||||
yyerror("static-port cannot be redefined"); | yyerror("static-port cannot be redefined"); | ||||
YYERROR; | YYERROR; | ||||
} | } | ||||
pool_opts.staticport = 1; | pool_opts.staticport = 1; | ||||
} | } | ||||
| STICKYADDRESS { | | STICKYADDRESS { | ||||
if (filter_opts.marker & POM_STICKYADDRESS) { | if (pool_opts.marker & POM_STICKYADDRESS) { | ||||
yyerror("sticky-address cannot be redefined"); | yyerror("sticky-address cannot be redefined"); | ||||
YYERROR; | YYERROR; | ||||
} | } | ||||
pool_opts.marker |= POM_STICKYADDRESS; | pool_opts.marker |= POM_STICKYADDRESS; | ||||
pool_opts.opts |= PF_POOL_STICKYADDR; | pool_opts.opts |= PF_POOL_STICKYADDR; | ||||
} | } | ||||
| MAPEPORTSET number '/' number '/' number { | | MAPEPORTSET number '/' number '/' number { | ||||
if (pool_opts.mape.offset) { | if (pool_opts.mape.offset) { | ||||
▲ Show 20 Lines • Show All 2,580 Lines • Show Last 20 Lines |