summaryrefslogtreecommitdiffstats
path: root/contrib/openbsm
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-02-18 00:38:40 +0000
committerpjd <pjd@FreeBSD.org>2013-02-18 00:38:40 +0000
commit4ec0049878981227b783e1722f6f3fc61897bbc1 (patch)
tree2d41c4103e843a9edf9fec231639b59bec42e445 /contrib/openbsm
parent827a11a3e02fa411af93f2533038773aabaebe4d (diff)
downloadFreeBSD-src-4ec0049878981227b783e1722f6f3fc61897bbc1.zip
FreeBSD-src-4ec0049878981227b783e1722f6f3fc61897bbc1.tar.gz
Allow [] in remote address, which fixes IPv6 support.
Reported by: simon
Diffstat (limited to 'contrib/openbsm')
-rw-r--r--contrib/openbsm/bin/auditdistd/token.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/openbsm/bin/auditdistd/token.l b/contrib/openbsm/bin/auditdistd/token.l
index 9cebac1..5e58e87 100644
--- a/contrib/openbsm/bin/auditdistd/token.l
+++ b/contrib/openbsm/bin/auditdistd/token.l
@@ -74,7 +74,7 @@ sender { DP; return SENDER; }
source { DP; return SOURCE; }
timeout { DP; return TIMEOUT; }
[0-9]+ { DP; yylval.num = atoi(yytext); return NUM; }
-\"[a-zA-Z0-9_/ !@#\$%\^\&\*\(\)\+\=\|\;\?\,\.\-\:]*\" { DP; yylval.str = strndup(yytext + 1, strlen(yytext) - 2); return STR; }
+\"[a-zA-Z0-9_/ !@#\$%\^\&\*\(\)\+\=\|\;\?\,\.\[\]\-\:]*\" { DP; yylval.str = strndup(yytext + 1, strlen(yytext) - 2); return STR; }
\{ { DP; depth++; return OB; }
\} { DP; depth--; return CB; }
#.*$ /* ignore comments */;
OpenPOWER on IntegriCloud