Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl PR/55288: npfctl: change parameter synta...
details: https://anonhg.NetBSD.org/src/rev/b911ae0ceec9
branches: trunk
changeset: 933315:b911ae0ceec9
user: rmind <rmind%NetBSD.org@localhost>
date: Sun May 24 15:35:39 2020 +0000
description:
PR/55288: npfctl: change parameter syntax to be more permissive.
diffstat:
usr.sbin/npf/npfctl/npf_scan.l | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 96c273565439 -r b911ae0ceec9 usr.sbin/npf/npfctl/npf_scan.l
--- a/usr.sbin/npf/npfctl/npf_scan.l Sun May 24 14:46:19 2020 +0000
+++ b/usr.sbin/npf/npfctl/npf_scan.l Sun May 24 15:35:39 2020 +0000
@@ -91,6 +91,7 @@
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 @@
return VAR_ID;
}
-[a-z]*"."[a-z.]* {
+{ID}"."{SPID}+ {
yylval.str = estrndup(yytext, yyleng);
return PARAM;
}
Home |
Main Index |
Thread Index |
Old Index