struct token *t_field;
struct token *t_did = NULL;
- fs = vcc_FldSpec(tl, "?url", "?request", "?timeout", NULL);
+ fs = vcc_FldSpec(tl, "?url", "?request", "?timeout", "?rate", NULL);
ExpectErr(tl, '{');
vcc_NextToken(tl);
tl->fb = NULL;
ERRCHK(tl);
Fh(tl, 0, ",\n");
+ } else if (vcc_IdIs(t_field, "rate")) {
+ Fh(tl, 0, "\t\t.rate = ");
+ tl->fb = tl->fh;
+ vcc_TimeVal(tl);
+ tl->fb = NULL;
+ ERRCHK(tl);
+ Fh(tl, 0, ",\n");
} else {
vcc_ErrToken(tl, t_field);
vcc_ErrWhere(tl, t_field);
vsb_cat(sb, "struct vrt_backend_probe {\n");
vsb_cat(sb, " char *request;\n");
vsb_cat(sb, " double timeout;\n");
+ vsb_cat(sb, " double rate;\n");
vsb_cat(sb, "};\n");
vsb_cat(sb, "\n");
vsb_cat(sb, "/*\n");