From: Ondrej Zajicek Date: Fri, 6 Oct 2023 00:36:59 +0000 (+0200) Subject: Conf: Bytestrings with hex: should use the same general format as ones without. X-Git-Tag: v2.14~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5c3a22bccda5454775b48ad318a7fd4bf197f86;p=thirdparty%2Fbird.git Conf: Bytestrings with hex: should use the same general format as ones without. Either hex:01234567, or hex:01:23:45:67. No confusing formats like hex:0123:4567:ab:cdef, which looks like there is an implicit zero byte. --- diff --git a/conf/cf-lex.l b/conf/cf-lex.l index 0fa4628a4..2f95f2e13 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -242,7 +242,7 @@ WHITE [ \t] return IP4; } -({XIGIT}{2}){16,}|{XIGIT}{2}(:{XIGIT}{2}){15,}|hex:({XIGIT}{2}(:?{XIGIT}{2})*)? { +({XIGIT}{2}){16,}|{XIGIT}{2}(:{XIGIT}{2}){15,}|hex:({XIGIT}{2}*|{XIGIT}{2}(:{XIGIT}{2})*) { char *s = yytext; struct adata *bs; diff --git a/doc/bird.sgml b/doc/bird.sgml index d5bc8d570..eb8205d5b 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1561,22 +1561,18 @@ in the foot). This is a sequences of arbitrary bytes. There are no ways to modify bytestrings in filters. You can pass them between function, assign them to variables of type