Skip to content

Commit d955a31

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

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
@@ -500,6 +500,10 @@ tcp-urg { yylval->h = 0x20; return NUM; }
500500
tcp-ece { yylval->h = 0x40; return NUM; }
501501
tcp-cwr { yylval->h = 0x80; return NUM; }
502502
tcp-ae { yylval->h = 0x100; return NUM; }
503+
tcp-res3 { yylval->h = 0x200; return NUM; }
504+
tcp-res2 { yylval->h = 0x400; return NUM; }
505+
tcp-res1 { yylval->h = 0x800; return NUM; }
506+
tcp-res { yylval->h = 0xE00; return NUM; }
503507
[A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
504508
yylval->s = sdup(yyextra, (char *)yytext); return ID; }
505509
"\\"[^ !()\n\t]+ { yylval->s = sdup(yyextra, (char *)yytext + 1); return ID; }

0 commit comments

Comments
 (0)