statelim_opts
statelim : statelim_nm statelim_opts {
statelim_opts : /* empty */ {
memset(&statelim_opts, 0, sizeof(statelim_opts));
$$ = &statelim_opts;
if (ISSET(statelim_opts.marker, STATELIM_M_ID)) {
statelim_opts.id = $1;
statelim_opts.marker |= STATELIM_M_ID;
if (ISSET(statelim_opts.marker, STATELIM_M_LIMIT)) {
statelim_opts.limit = $2;
statelim_opts.marker |= STATELIM_M_LIMIT;
if (ISSET(statelim_opts.marker, STATELIM_M_RATE)) {
statelim_opts.rate.limit = $2;
statelim_opts.rate.seconds = $4;
statelim_opts.marker |= STATELIM_M_RATE;
static struct statelim_opts statelim_opts;
struct statelim_opts *statelim_opts;
%type <v.statelim_opts> statelim_opts