Pull up following revision(s) (requested by rmind in ticket #932):

usr.sbin/npf/npfctl/npf_scan.l: revision 1.31

PR/55288: npfctl: change parameter syntax to be more permissive.
This commit is contained in:
martin 2020-05-25 17:29:28 +00:00
parent 8e3fd3af03
commit 4e2541909a
1 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@ npfctl_parse_string(const char *str, parse_entry_t entry)
ID [a-zA-Z_][a-zA-Z_0-9]*
DID [a-zA-Z_][a-zA-Z_0-9-]*
SPID [a-zA-Z][a-zA-Z_0-9.]*
NUMBER [0-9]+
HEXDIG [0-9a-fA-F]+
@ -227,7 +228,7 @@ any return ANY;
return VAR_ID;
}
[a-z]*"."[a-z.]* {
{ID}"."{SPID}+ {
yylval.str = estrndup(yytext, yyleng);
return PARAM;
}