aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-12-26 04:39:43 +0000
committerGuy Harris <gharris@sonic.net>2022-12-26 07:27:40 +0000
commit596e0b41d129492d73542c183f3d11a1dce09695 (patch)
tree5b564b2be2d506f20e444e11a4edff2db127e83e
parent7742b22be4fddfec223faf56e5e72eddbfd9d556 (diff)
dfilter: Change two scanner patterns to camel case
-rw-r--r--epan/dfilter/scanner.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dfilter/scanner.l b/epan/dfilter/scanner.l
index 9c27a43a53..7c759d7038 100644
--- a/epan/dfilter/scanner.l
+++ b/epan/dfilter/scanner.l
@@ -122,11 +122,11 @@ hex4 [[:xdigit:]]{4}
QuadMacAddress {hex4}\.{hex4}\.{hex4}
DecOctet [0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]
-IPv4address {DecOctet}\.{DecOctet}\.{DecOctet}\.{DecOctet}
+IPv4Address {DecOctet}\.{DecOctet}\.{DecOctet}\.{DecOctet}
h16 [0-9A-Fa-f]{1,4}
-ls32 {h16}:{h16}|{IPv4address}
-IPv6address ({h16}:){6}{ls32}|::({h16}:){5}{ls32}|({h16})?::({h16}:){4}{ls32}|(({h16}:){0,1}{h16})?::({h16}:){3}{ls32}|(({h16}:){0,2}{h16})?::({h16}:){2}{ls32}|(({h16}:){0,3}{h16})?::{h16}:{ls32}|(({h16}:){0,4}{h16})?::{ls32}|(({h16}:){0,5}{h16})?::{h16}|(({h16}:){0,6}{h16})?::
+ls32 {h16}:{h16}|{IPv4Address}
+IPv6Address ({h16}:){6}{ls32}|::({h16}:){5}{ls32}|({h16})?::({h16}:){4}{ls32}|(({h16}:){0,1}{h16})?::({h16}:){3}{ls32}|(({h16}:){0,2}{h16})?::({h16}:){2}{ls32}|(({h16}:){0,3}{h16})?::{h16}:{ls32}|(({h16}:){0,4}{h16})?::{ls32}|(({h16}:){0,5}{h16})?::{h16}|(({h16}:){0,6}{h16})?::
V4CidrPrefix \/[[:digit:]]{1,2}
V6CidrPrefix \/[[:digit:]]{1,3}
@@ -422,13 +422,13 @@ HyphenBytes {hex2}(-{hex2})+
return set_lval_simple(yyextra, TOKEN_UNPARSED, yytext, STTYPE_UNINITIALIZED);
}
-{IPv4address}{V4CidrPrefix}? {
+{IPv4Address}{V4CidrPrefix}? {
/* IPv4 with or without prefix. */
update_location(yyextra, yytext);
return set_lval_simple(yyextra, TOKEN_UNPARSED, yytext, STTYPE_UNINITIALIZED);
}
-{IPv6address}{V6CidrPrefix}? {
+{IPv6Address}{V6CidrPrefix}? {
/* IPv6 with or without prefix. */
update_location(yyextra, yytext);
return set_lval_simple(yyextra, TOKEN_UNPARSED, yytext, STTYPE_UNINITIALIZED);