]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add ECE and CWR bits for TCP header, defined in RFC 3168. 300/head
authorXin Li <[email protected]>
Tue, 14 May 2013 19:53:02 +0000 (12:53 -0700)
committerXin Li <[email protected]>
Mon, 13 Feb 2017 09:36:26 +0000 (01:36 -0800)
pcap-filter.manmisc.in
scanner.l

index 87e1cd1cf871d173f119be7d74dcdaed8a623c05..880c7b89440f8aef2076a4e5a3200c608f4b83d9 100644 (file)
@@ -876,7 +876,8 @@ The following ICMP type field values are available: \fBicmp-echoreply\fP,
 
 The following TCP flags field values are available: \fBtcp-fin\fP,
 \fBtcp-syn\fP, \fBtcp-rst\fP, \fBtcp-push\fP,
-\fBtcp-ack\fP, \fBtcp-urg\fP.
+\fBtcp-ack\fP, \fBtcp-urg\fP, \fBtcp-ece\fP,
+\fBtcp-cwr\fP.
 .LP
 Primitives may be combined using:
 .IP
index 1000b7a3c903e588a76c76205083285e3edb2e5c..3bdf9c4562528d6d90edec4370a7e511a7ec12f1 100644 (file)
--- a/scanner.l
+++ b/scanner.l
@@ -435,6 +435,8 @@ tcp-rst                     { yylval->i = 0x04; return NUM; }
 tcp-push               { yylval->i = 0x08; return NUM; }
 tcp-ack                        { yylval->i = 0x10; return NUM; }
 tcp-urg                        { yylval->i = 0x20; return NUM; }
+tcp-ece                        { yylval->i = 0x40; return NUM; }
+tcp-cwr                        { yylval->i = 0x80; return NUM; }
 [A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
                         yylval->s = sdup(yyextra, (char *)yytext); return ID; }
 "\\"[^ !()\n\t]+       { yylval->s = sdup(yyextra, (char *)yytext + 1); return ID; }