Commit Graph

122 Commits

Author SHA1 Message Date
guy
1055e39384 From Joerg Mayer:
- Remove the capture syntax from the tcpdump manpage, as it has
  its own manpage now inside the libpcap package.
- Reference the new pcap-filter(4) manpage to explain the expression
  syntax.
- Fix one tpyo.
- Remove reference to patches@tcpdump.org and request that patches be
  sent to the standard mailing list instead.
2008-01-07 00:16:06 +00:00
guy
d032f19b67 Update the documentation for the PF(4) filters. 2007-11-18 02:47:24 +00:00
guy
1d39048021 Pick up the documentation for new OpenBSD capture filter items from the
OpenBSD documentation.
2007-11-18 02:32:30 +00:00
guy
734a7b069f From Luis Martin Garcia: update the "last modified" date of the man page. 2007-10-04 23:17:16 +00:00
guy
6acec44344 Some systems with BPF have a cloning device; on those systems, you just
open /dev/bpf.
2007-06-15 20:14:49 +00:00
guy
74bd483dfe From Sepherosa Ziehau: man page update to reflect changes to libpcap. 2007-03-11 04:38:19 +00:00
guy
90c94a8265 From Ben Byer <bushing@sourceforge.net>: add a "-K" flag to suppress the
checking of TCP checksums.

Sort the argument processing code alphabetically.
2006-05-05 23:13:00 +00:00
hannes
d047be29f9 from Sebastien Raveau <sebastien.raveau@epita.fr>
add support for the the post-rotate -z flag (to be used in
  conjunction with -C or -G) which can be used to specify a command tcpdump
  should execute on each savefile after it's been rotated
  for example to compress a capture file.
2006-03-23 17:33:01 +00:00
hannes
a6df5512cf - add the -ttttt timestamp option which prints the time difference
(in micro-second resolution) between the first and current packet.

- cleanup the the ts_print code a bit -> add a ts_format helper
2005-12-13 08:37:22 +00:00
guy
8c33f3d23c Assorted edits. 2005-12-05 20:10:58 +00:00
guy
56acb47b8c Improve the description of the output of tcpdump. 2005-11-24 08:15:09 +00:00
guy
197c4f27c8 Make it clearer that the hex or hex-and-ASCII dump for "-x", "-xx",
"-X", and "-XX" doesn't *replace* the dissected dump, it *augments* it.
2005-11-23 05:16:15 +00:00
guy
218ba6b1ed Fix up some formatting. 2005-11-23 04:24:32 +00:00
guy
e55982a3f9 Clarify the syntax of a network number. 2005-11-23 04:14:09 +00:00
hannes
92218d769e from Will Drewry <will AT alum.bu.edu>
auto-rotate files after some times given with the G flag;
2005-10-20 07:43:51 +00:00
guy
96e2ecad92 Document the new "pppoed" and "pppoes" filter expressions. 2005-09-05 09:14:15 +00:00
guy
33528ae842 Clean up documentation of "vlan" filter expression, and document "mpls"
filter expression.
2005-09-05 08:56:09 +00:00
guy
91abf4747a Document "radio[M:N]". 2005-05-02 21:27:49 +00:00
guy
556f0bea2e Document the "portrange" keyword.
Update the date stamp.
2005-04-19 04:39:50 +00:00
guy
fa48125464 Make it clearer that a filter "ip" or "proto ip" or... refers to IPv4,
not IPv6.
2005-04-18 01:38:01 +00:00
hannes
10721333c4 add documentation for hierarchical VLAN filtering in libpcap 0.9 2005-04-09 15:17:01 +00:00
guy
8bc6441e1d We now *do* auto-detect Unicode strings, so we no longer check the
USE_UNICODE environment variable.
2004-12-28 22:31:25 +00:00
guy
27fbceed07 Add an example of how to check for TCP packets with a payload, at least
for IPv4.
2004-11-26 00:17:26 +00:00
guy
0a01aca260 Note that comparisons in filter expressions are unsigned, not signed;
the uppermost bit is part of the value, not a sign, and 0x80000000 and
0xffffffff are > 0.
2004-11-08 07:45:05 +00:00
guy
fed6c4f3d5 Show "constant" strings in boldface.
"ethernet" -> "Ethernet".
2004-09-24 01:14:20 +00:00
guy
0fc2ba2720 Reformat the SYNOPSIS section so that nroff doesn't split lines between
an option and its "]".

Fix a typo.
2004-06-12 08:51:23 +00:00
fenner
c0191afced Update pf handling for new DLT_PFLOG (117) as other systems are
starting to adopt it.
Don't bother being backwards compatible to old value (17).
2004-03-28 20:33:27 +00:00
guy
8234cdad9b From Bruce M. Simpson: add a "-M" flag to specify a shared secret for
TCP-MD5 (RFC 2385) digest verification if we have libcrypto.
2004-03-23 07:15:36 +00:00
guy
47f4b1423b From Chris Cogdon <chris@cogdon.org>:
Fix a segfault with the -C option when the number of files grows
	to 1000.  Limit has been increased to 1,000,000, and the code
	will check for exceeding this.

	Also, add a -W option which will limit the number of files
	created before 'wrapping around' and writing to the first file
	again, creating a 'loop tape'.  Very useful if you want to have
	this running permanently to capture traffic up to a irregular
	event.

	Change the way that output files with -C are numbered.  -C alone
	goes <none>, 1, 2, 3....  -C with -W will number 0, 1, 2 ...  or
	00, 01, 02 ...  etc, depending on the value of -W.  I.e., it
	sorts properly.  (Old behaviour was to go <none>, 2, 3...)

Close the current capture file before trying to allocate the buffer for
the new file's name, so that if that allocation fails we've at least
written out all of the previous file.

Make some variables for command-line arguments, and some functions not
used outside tcpdump.c, static.
2004-01-26 02:05:17 +00:00
hannes
ad71414016 from Pekka Savola <pekkas@netcore.fi>:
add a compile time option --with-user=USERNAME that
 drops privileges by default to USERNAME
2004-01-22 09:51:30 +00:00
hannes
b6c8d27c47 from Pekka Savola <pekkas@netcore.fi>:
add infrastructure for dropping root privileges
2004-01-22 09:35:50 +00:00
guy
219cf47b23 Put the when-printing and when-saving-to-a-file descriptions of "-v"
into separate paragraphs.
2004-01-15 19:55:56 +00:00
guy
d88193ac89 From Gisle Vanem:
When saving to a file with "-w", have the "-v" flag make tcpdump
	report, every 10 seconds, the number of packets captured.

	Include <smi.h> if we're building with libsmi, to declare
	"smiInit()" and "smiLoadModule()".
2004-01-15 19:53:48 +00:00
guy
aa890a0ca1 Note that Mac OS X, as one of the BSDs, has SIGINFO; note that
Digital/Tru64 UNIX has it as well (although the tty(7) man page doesn't
mention VSTATUS - stty(1) mentions "status", however, and signal(4)
mentions SIGINFO, and some Tru64->HP-UX transition pages mention SIGINFO
as a feature available in Tru64 but not HP-UX).

Note that on some systems (e.g., Mac OS X), you might have to set your
"status" character as it defaults, on those systems, to "not set".

Get rid of the reference to "traffic(1C)" (it's not referred to in the
man page, and about the only connection it has with tcpdump is that they
both watch network traffic; traffic(1C) is a SunOS 4.x-ism, not present
on other platforms), and add a reference to pfconfig(8) for
Digital/Tru64 (it *is* referred to, in the section of what privileges
you need in order to capture traffic).
2004-01-07 22:50:40 +00:00
guy
58e719c622 Update the date stamp on the tcpdump man page, and add Gerald to the
list of contributors, for his man page update.
2003-11-23 23:42:16 +00:00
hannes
8f7b7346cd From Gerald Combs <gerald@ethereal.com>:
The change adds left- and right-shift (<< and >>) to the list of
binary operators on the tcpdump man page.  E.g. "tcp[12] >> 4 > 5" will
test for TCP options.  The operators are listed in the '93 Usenix paper,
and appear to have been supported in libpcap since the 0.0 release.
2003-11-23 21:01:50 +00:00
guy
cfe504d07c Fix capitalization of ULTRIX and AppleTalk, as per NetBSD.
Update the date stamp.
2003-11-19 01:59:19 +00:00
guy
b1749baac2 Give it a proper RCS ID. 2003-11-16 09:41:29 +00:00
guy
d1bb11814a Undo the previous checkin - it got rid of two recent changes. 2003-11-16 09:39:21 +00:00
guy
bbc1cfa669 Have the configure script arrange that the Makefile define _U_
appropriately, and that GNUmakefile and the MSVC++ project file define
it apppriately, as we do with libpcap, rather than defining it in
"interface.h".

Undo the rcsid-shuffling and addition of extra #includes, as we no
longer need to arrange that "interface.h" be included before using _U_
in an RCS ID or copyright.
2003-11-16 09:36:07 +00:00
guy
563344d117 Add to the packet counts a count of packets that tcpdump has seen and
processed - people often get confused by the "received by filter" count,
as they might not realize that, in some systems, it counts packets that
were handed to the filter mechanism regardless of whether they pass or,
if they pass, they have yet been read by the application and, on some
other systems, it counts packets that passed the filter but still counts
them in the kernel before they're read by the application.

They're probably mostly interested in the count of packets processed by
tcpdump; the "received by filter" count is probably of interest only if
you want to know how effective your filter is (and even then it's of
interest only if it counts packets handed to the filter rather than
packets that passed the filter).

Give more details on why the "received by filter" count doesn't
necessarily mean what you think it means.
2003-09-16 21:02:51 +00:00
guy
073489bc82 From Bruce M. Simpson <bms@spc.org>: RFC 3561 AODV support. 2003-08-06 06:49:38 +00:00
fenner
d75ee07998 Remove the -a flag. It's nonsensical to apply the local netmask to all
addresses, and has been for a lot of years.
2003-07-31 22:36:43 +00:00
guy
e7b6ee317c Note the existence, in at least some Linux kernels, of capability bits
that could, in theory, let non-root users capture packets, if there were
userland support for giving particular accounts capability bits and
having them set on their login processes when they log in.

Note that Mac OS X is like the other BSDs, in that all you need in order
to capture is read access on the BPF devices.  Note also that on BSDs
with a devfs (which includes Mac OS X), giving a user that access isn't
as easy as running "chown" or "chmod" once.
2003-07-01 21:19:51 +00:00
guy
15cf64c8de Document the "W" and "E" TCP flags for ECN. 2003-07-01 08:14:40 +00:00
guy
98512db448 From Motonori Shindo: allow "-T" to take "tftp" as an argument to force
decoding as TFTP.
2003-05-11 06:01:16 +00:00
itojun
add2bcc72c s/Appletalk/AppleTalk/. NetBSD PR misc/20748 2003-03-31 05:13:35 +00:00
guy
00a4564ef9 Document libpcap support for OpenBSD DLT_PFLOG. 2003-03-11 06:37:26 +00:00
mcr
25efea00b0 changed format of -E argument so that multiple SAs could be described 2003-02-26 18:58:04 +00:00
guy
2de609b4e1 Note that Linux cooked captures support "inbound" and "outbound". 2003-02-14 07:51:12 +00:00