Skip to content

Commit d61501b

Browse files
committed
remove reserved tcp header flags
1 parent 906e979 commit d61501b

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

pcap-filter.manmisc.in

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,12 +1033,7 @@ The following ICMPv6 type field values are available:
10331033
The following TCP flags field values are available:
10341034
\fBtcp-fin\fP, \fBtcp-syn\fP, \fBtcp-rst\fP,
10351035
\fBtcp-push\fP, \fBtcp-ack\fP, \fBtcp-urg\fP,
1036-
\fBtcp-ece\fP, \fBtcp-cwr\fP, \fBtcp-ae\fP,
1037-
\fBtcp-res1\fP, \fBtcp-res2\fP, \fBtcp-res3\fP and
1038-
\fBtcp-res\fP.
1039-
Among these, \fBtcp-res\fP is special as it can be
1040-
used to check when any of the reserved TCP header
1041-
flags is non-zero.
1036+
\fBtcp-ece\fP, \fBtcp-cwr\fP, and \fBtcp-ae\fP.
10421037
.LP
10431038
Primitives may be combined using:
10441039
.IP
@@ -1188,8 +1183,8 @@ The
11881183
.B ifindex
11891184
keyword became available in libpcap 1.10.0.
11901185
.PP
1191-
The \fBtcp-ae\fP, \fBtcp-res1\fP, \fBtcp-res2\fP, \fBtcp-res3\fP and \fBtcp-res\fP
1192-
became available in libpcap 1.11. Also, \fBtcp[tcpflags]\fP was expanded to allow
1186+
The \fBtcp-ae\fP keyword became available in libpcap 1.11.
1187+
Also, \fBtcp[tcpflags]\fP was expanded to allow
11931188
access to all 12 TCP header flags.
11941189
.SH SEE ALSO
11951190
.BR pcap (3PCAP)

scanner.l

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,6 @@ 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; }
500496
[A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
501497
yylval->s = sdup(yyextra, (char *)yytext); return ID; }
502498
"\\"[^ !()\n\t]+ { yylval->s = sdup(yyextra, (char *)yytext + 1); return ID; }

0 commit comments

Comments
 (0)