Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21312 - tcpdump manpage has incomplete docs on TCP headers
Summary: tcpdump manpage has incomplete docs on TCP headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Spider (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-19 23:44 UTC by rindolf
Modified: 2004-04-06 11:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rindolf 2003-05-19 23:44:33 UTC
There are two TCP headers, ECN Echo and ECN Cwnd Reduced, that tcpdump
recognizes and outputs the existence of, but aren't listed in the manpage. The
relevant section of tcpdump.1, near the top of the TCP Packets section, line 743:

       Flags  are some combination of S (SYN), F (FIN), P (PUSH) or R (RST) or
       a single `.' (no flags).  Data-seqno describes the portion of  sequence

The part of print-tcp.c that produces the header flag output, inside the
function tcp_print, line 274:

	if ((flags = tp->th_flags) & (TH_SYN|TH_FIN|TH_RST|TH_PUSH|
				      TH_ECNECHO|TH_CWR)) {
		if (flags & TH_SYN)
			putchar('S');
		if (flags & TH_FIN)
			putchar('F');
		if (flags & TH_RST)
			putchar('R');
		if (flags & TH_PUSH)
			putchar('P');
		if (flags & TH_CWR)
			putchar('W');	/* congestion _W_indow reduced (ECN) */
		if (flags & TH_ECNECHO)
			putchar('E');	/* ecn _E_cho sent (ECN) */
	} else
		putchar('.');

W and E are not documented in the manpage.

Reproducible: Always
Steps to Reproduce:
1.Run tcpdump
2.Receive a packet with the W or E header flags set
3.Wonder what W and E mean, as they aren't in the manpage.
Comment 1 SpanKY gentoo-dev 2003-05-20 05:18:21 UTC
this should be sent upstream
Comment 2 Spider (RETIRED) gentoo-dev 2003-06-12 09:20:17 UTC
reported upstream.
Comment 3 Stephane Loeuillet 2003-12-04 21:13:01 UTC
fixed in tcpdump 3.8.1 :

\fIFlags\fP are some combination of S (SYN),
F (FIN), P (PUSH), R (RST), W (ECN CWR) or E (ECN-Echo), or a single
`.' (no flags).
Comment 4 SpanKY gentoo-dev 2004-04-06 11:56:03 UTC
3.8.3-r1 is in stable