Skip to content

Commit a0398d2

Browse files
committed
add reserved tcp header flags for non-numeric filter expressions
1 parent cc84568 commit a0398d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scanner.l

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ tcp-urg { yylval->h = 0x20; return NUM; }
493493
tcp-ece { yylval->h = 0x40; return NUM; }
494494
tcp-cwr { yylval->h = 0x80; return NUM; }
495495
tcp-ae { yylval->h = 0x100; return NUM; }
496+
tcp-res3 { yylval->h = 0x200; return NUM; }
497+
tcp-res2 { yylval->h = 0x400; return NUM; }
498+
tcp-res1 { yylval->h = 0x800; return NUM; }
499+
tcp-res { yylval->h = 0xE00; return NUM; }
496500
[A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
497501
yylval->s = sdup(yyextra, (char *)yytext); return ID; }
498502
"\\"[^ !()\n\t]+ { yylval->s = sdup(yyextra, (char *)yytext + 1); return ID; }

0 commit comments

Comments
 (0)