Add tcp header flags ECE and CWR defined in RFC 3168.

PR:	140349
Submitted by:	Alan Amesbury <amesbury@umn.edu> (earlier version)
Reviewed by:	delphij
Approved by:	sbruno (mentor)
This commit is contained in:
Hiren Panchasara 2013-05-16 05:16:56 +00:00
parent 78a4f635f8
commit a385d0b340
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250693
3 changed files with 6 additions and 2 deletions

View File

@ -783,7 +783,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

View File

@ -783,7 +783,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

View File

@ -385,6 +385,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((char *)yytext); return ID; }
"\\"[^ !()\n\t]+ { yylval.s = sdup((char *)yytext + 1); return ID; }