Commit Graph

222 Commits

Author SHA1 Message Date
ABHIMANYU
2c233065b6 TIPC support.
Reviewed-and-much-modified-by: Guy Harris <guy@alum.mit.edu>
2012-02-28 20:36:55 -08:00
Guy Harris
a52a62784f Add the new PPPoE test files. 2011-12-17 11:41:33 -08:00
George Neville-Neil
5d52dbf4c7 Add a CARP dissector and a command-line option to dissect proto 112 as CARP.
CARP and VRRP both use IP protocol number 112, so there needs to be a -T
flag to specify that protocol 112 be dissected as CARP rather than VRRP.

Also update the man page.
2011-11-23 11:53:13 -08:00
Michael Richardson
894e8113f0 Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Conflicts:
	Makefile.in
2011-08-27 16:56:50 -04:00
Michael Richardson
79bb56d318 remove deleted files from list of distributed files 2011-08-27 16:55:17 -04:00
Guy Harris
79f94f4c12 Don't compile print-babel.c if we don't have IPv6 support. 2011-08-14 16:26:32 -07:00
Romain Francoise
2e0ba2d689 Make sure ppi.h is in the release tarball.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2011-08-14 14:43:23 -07:00
Guy Harris
73e7c4e003 Update the EXTRA_DIST list to reflect what's now in the tests directory. 2011-07-26 10:24:31 -07:00
Hannes Gredler
917f5f341f add support for the RPKI/Router Protocol as per draft-ietf-sidr-rpki-rtr-12 2011-06-16 17:17:20 +02:00
Guy Harris
94a4b46080 Go with Wireshark's Internet checksum routine.
The Wireshark routine is based on the BSD in-kernel portable checksum
routine (thus BSD-licensed); it takes a vector of pointers and lengths
and checksums the concatenation of the buffers in question (just as the
BSD in-kernel routine checksums a chain of mbufs).

This simplifies the "with a pseudo-header" checksums; hopefully it'll
fix up the problems being seen on some big-endian platforms, which might
be due to hand-calculating some or all of the checksum and doing so
incorrectly.  It also gets rid of some code that might be dereferencing
unaligned pointers.
2011-06-13 14:08:51 -07:00
Michael Richardson
5b0329a9e7 From: Darren Reed <darren.reed@oracle.com>
To: tcpdump-workers@lists.tcpdump.org
Date: Sat, 09 Apr 2011 12:51:14 +1000
Subject: [tcpdump-workers] Printing PPI packets

Printing PPI packets with tcpdump does not turn out
to be that hard.

My simple tests have produced the output as below.

It would be worthwhile having some changes made into
the tcpdump code base that were similar to the attached
that print them out.
2011-05-03 18:58:32 -04:00
Michael Richardson
acd66dee76 removed need for uudecode 2011-04-30 18:51:51 -04:00
Michael Richardson
2f9602c898 Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump 2011-04-27 17:47:50 -04:00
Juliusz Chroboczek
12b169509d Add printer for the Babel routing protocol (RFC 6126).
This version includes a couple of fixes from Wireshark.
2011-04-27 15:27:20 -04:00
Guy Harris
df76679be7 Have empty.uu explicitly be a uuencoding of /dev/null.
That way, uudecode will write the decoded output there, rather than to a
file named "empty" that gets left around.  That also means we don't need
to redirect the output of uudecode to /dev/null, so don't do that.
2011-04-04 01:18:04 -07:00
Guy Harris
e6933ca143 Check for uudecode at make time by uudecoding a uuencoded empty file.
Doing it at make time means you don't have to re-run the configure
script if you add uudecode to your system, and doing it by uudecoding a
uuencoded empty file means we don't depend on uudecode supporting
"--help".
2011-04-04 00:44:41 -07:00
Guy Harris
1aaedce9e7 Don't assume uudecode supports a --help option; not all uudecodes do.
Instead, check for uudecode in the configure script, and set the
CHECK_UUDECODE configuration variable to "true" if we find it and to a
command that prints an error message and exits with 1 if we don't find
it, and substitute that variable into the Makefile as the first command
for "make check".
2011-04-03 15:43:21 -07:00
Guy Harris
7784843320 libpcap doesn't have that comment; remove it here. 2011-02-01 15:39:57 -08:00
Guy Harris
9678c36f1f Squelch warnings about datarootdir. 2011-02-01 15:38:54 -08:00
Guy Harris
687b442022 Get rid of unnecessary configure script tests and missing/XXX.h headers.
This also fixes configure-script problems on OSes that have IPv6 support
but don't have <netinet6/in6.h> - no standard I could find requires that
header for IPv6 support (the Single UNIX Specification speaks of
<netinet/in.h> for both IPv4 and IPv6, and RFCs 2292 and 3542 don't
mention <netinet6/in6.h>, just <netinet/in.h> and <netinet6/ip6.h>).
2011-02-01 02:08:41 -08:00
Guy Harris
53d7d1c12b Get rid of another unused win32/Include header. 2010-08-23 03:38:32 -07:00
Guy Harris
d16b45ee86 As with libpcap, get rid of autom4te.cache when doing "make distclean". 2010-08-23 03:36:12 -07:00
Guy Harris
36791a862e Get rid of some more include files we no longer need.
We have our own copies of those include files, which we use; we haven't
used the system versions for a long time, so we don't need to drag them
along for compiling WinDump.
2010-08-23 03:30:54 -07:00
Guy Harris
6c9745e5cb Clean up handling of tftp.h.
Don't include the win32/Include/Arpa copy in print-udp.c; don't put that
copy into the release tarball; and don't talk about <arpa/tftp.h>, or
work around its deficiencies in some OSes, as we no longer include it,
we include our own tftp.h, which has a th_stuff array in its structure
definition.
2010-08-23 03:22:25 -07:00
Michael Richardson
04347dbebf Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump 2010-05-13 14:31:05 -04:00
Michael Richardson
3c4027f599 Merge commit 'lumag/master' 2010-05-13 13:52:46 -04:00
Guy Harris
55306e9542 Include the CFLAGS setting when configure was run in the compiler flags. 2010-04-16 03:24:45 -07:00
Guy Harris
e67e304a58 Our bittypes.h is needed only on Windows. Move it to win32/Include. 2010-04-04 13:24:32 -07:00
Guy Harris
427b1e0289 Back out mistaken change. 2010-04-04 12:45:06 -07:00
Guy Harris
103de367dc Fix check for Snow Leopard.
For OS X version 10.{x}.{y}, Darwin is (at least for later versions)
version {x+4}.{y}.
2010-04-04 12:42:00 -07:00
Guy Harris
c1b245043f Build universal on OS X by default; add an option to disable that.
Instead of requiring the user to specify -arch options on OS X to build
a universal version of tcpdump, just default to universal on OS X by
default.  Pick the particular targets to match the way tcpdump is built
for the OS for which we're building.
2010-04-04 12:08:11 -07:00
Guy Harris
7d7201ff75 Add the tests to the release tarball. 2010-04-01 23:02:46 -07:00
Guy Harris
f7b185510a Add a --with-arch-flags configuration option to specify target architectures.
They allow the user to specify flags to indicate the target
architecture(s) (yes, possibly plural - think, for example, Mac OS X)
for which we're building.  Those might need to be used not only when
compiling, but also when linking and when building a shared library.

This is not for general cross-compiling, it's for use on platforms where
versions of the native OS support more than one instruction set and
where you want to build for the OS on which you're running but not for
the default build architecture on the machine on which you're running.

This may currently be less useful for tcpdump, as tcpdump currently
builds no libraries, but it's there for compatibility with libpcap.
2010-03-31 17:24:33 -07:00
Dmitry Eremin-Solenikov
d8f84ef9f3 Makefile.in: fix print-802_15_4.c file order
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
2010-03-09 18:13:03 +03:00
Dmitry Eremin-Solenikov
ec799d60f6 Merge remote branch 'origin/master' 2010-03-09 17:36:58 +03:00
Michael Richardson
3541a555b1 uudecode actually does not support -h, but --help 2010-03-05 12:38:27 -05:00
Michael Richardson
1d1c9ba86a tell the user what package they might find uudecode in 2010-03-05 12:37:17 -05:00
Michael Richardson
ea7f14bc59 fail all tests on machines without uudecode installed 2010-03-05 12:35:00 -05:00
Kovarththanan Rajaratnam
4c0eeb5986 mark autogenerated version as const 2010-02-20 09:19:55 +01:00
Guy Harris
7db583986e Get rid of extra blank line. 2010-02-08 02:42:48 -08:00
Guy Harris
b213bf62d9 We're using Git, not CVS, now. 2010-02-08 02:35:30 -08:00
Guy Harris
66a566eded Put forces.h into the release tarball. 2010-01-10 14:44:35 -08:00
Michael Richardson
d0e01819c0 IETF FORCES protocol printer, from Jamal Hadi Salim <hadi at cyberus.ca. 2010-01-10 14:49:46 -05:00
Guy Harris
a10a7c2868 Include ipnet.h in the distribution. 2010-01-05 20:17:26 -08:00
Darren Reed
b116cd9ac4 The patches attached to this email are required to get a fully working tcpdump
on OpenSolaris, or Solaris Express Community Edition, build 125 and later.

The attached patch introduces support for printing out the IPNET headers used
for packet capture inside of zones that share their networking with the global
zone and for packets "transmitted" between zones.

tcpdump 4.0.0 will ship with builds 129 and later of OpenSolaris/SXCE and
when run as root with the '-L' option, should behave as below to indicate that
the system is fully functional:

Data link types (use option -y to set):
 DOCSIS (DOCSIS) (printing not supported)
 IPNET (Solaris IPNET)
 EN10MB (Ethernet)

Cheers,
Darren
2009-11-24 21:20:25 -05:00
Michael Richardson
5398dff7bc make check should depend uponi presence of built tcpdump 2009-11-14 20:50:39 -05:00
Dmitry Eremin-Solenikov
2158a39074 Add support for IEEE 802.15.4 packets
Add a dummy printer for ieee 802.15.4 pakets.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
2009-08-09 18:06:27 +04:00
Guy Harris
a2fb078ab4 Nothing in missing/getaddrinfo.c is used in tcpdump, and it's a pain to
make it build on Tru64 UNIX, so get rid of it.
2009-07-08 01:18:11 -07:00
Guy Harris
bee8bec6a4 Include Makefile-devel-adds in the release tarball, just in case
somebody creates .devel.
2009-07-02 19:48:54 -07:00
Guy Harris
6c24bfd422 Add the release tarball to the .gitignore list and the list of files to
clean.
2009-06-07 14:29:45 -07:00
Guy Harris
1d8d0b50dd signature.h is a header file, not a source file, so add it to HDR rather
than CSRC.
2009-04-04 12:33:20 -07:00
Guy Harris
2c28d8f466 From Bert Vermeulen: add a USB printer, and fix the error message
printed when trying to print packets for a DLT_ for which we don't have
a printer to indicate that you can still save to a capture file in that
case.  (Slightly changed not to require DLT_USB_LINUX_MMAPPED to be
defined, for older libpcaps that only define DLT_USB_LINUX.)
2009-04-04 12:30:27 -07:00
Ken Bantoft
1fffe7497a Add signature.h 2009-03-25 21:49:25 -04:00
guy
5261c86a48 Fixes for building in a directory other than the source directory. 2008-11-21 23:17:26 +00:00
guy
3565ec111d Run the tcpdump man page through config, so that it refers to the right
man page sections.  Have it refer to the new pcap-savefile man page for
a description of the savefile format.
2008-10-27 21:12:48 +00:00
hannes
3d3c70fbe9 add infrastructure for verifiying the HMAC-MD5 digest in routing protocols.
The shared secret is passed using the already existing -M option which is
used for TCP-MD5 checking.

add initial supoort for RSVP Integrity object verification.
2008-08-16 11:36:20 +00:00
guy
78c1a663f2 FILES isn't used to make the tarball any more; get rid of it.
Update HDR in Makefile.in to include all headers.

Add an EXTRA_DIST variable to include all the files that should go into
the tarball and that aren't in CSRC or HDR, other than tcpdump.1.

Use CSRC, HDR, and EXTRA_DIST to determine what goes into the tarball,
along with tcpdump.1, rather than doing a "make distclean" and putting
everything into the tarball; that way, you can do "make releasetar"
without cleaning out the current directory.

Given that we're not just tarring up the entire source directory, we can
make the tarball directory as a subdirectory of the current directory and
put the tarball into the current directory, rather than putting it into
a (not-entirely-obvious) ../n directory.  Clean out the tarball
directory when we're done.
2008-05-27 07:13:21 +00:00
guy
0d80ed9209 From Mike Frysinger: have the "install" target depend on "all" so you
can do "make install" without having to do "make" first.
2008-02-26 19:24:14 +00:00
guy
1789f57c36 From Andrew Silent: Realtek Remote Control Protocol support (see
OpenRRCP.org.ru for details).
2008-02-06 10:47:53 +00:00
guy
cfab7ed87f Run ranlib on libnetdissect.a if necessary. Remove it before building
it, so we discard any stuff already in the archive.
2008-02-04 20:33:21 +00:00
mcr
5fa8fc69b2 added "make check"
when optimization is not on, glibc6 doesn't define ntohs(), and our attempt
to optimize it for x86 doesn't work --- the functions need to be static, not
extern.
added decryption of IKE v2 payloads, when keys are provided by -E.
2007-11-24 18:13:33 +00:00
guy
3a34763284 From Paolo Abeni: print some basic Bluetooth information.
Update CREDITS, FILES, and INSTALL appropriately; clean up changes to
Makefile.in to keep the file names in order.
2007-09-24 23:46:26 +00:00
guy
7e5e89df69 From Max Laier: check whether the system has <net/pfvar.h> and:
if it does, use that for the pf definitions;

	if it doesn't, don't compile in pf support;

as both OpenBSD and FreeBSD have changed the pf definitions and header
format without changing the DLT value, so you can't reliably read
pflog-format libpcap files on a machine running an OS version other than
the one on which the file was generated.
2007-09-12 19:36:18 +00:00
mcr
3344dbf254 split sources into regular tcpdump sources, and libnetdissect sources, move print-isakmp.c
to netdissect.
2007-08-29 12:31:27 +00:00
hannes
e7dc0250ec from Carles Kishimoto <carles.kishimoto@gmail.com>: add support for the SFLOW protocol 2007-08-08 17:20:58 +00:00
hannes
bbb4050969 add basic support for the IEEE Link Discovery Protocol as per 802.1ab 2007-08-03 11:03:19 +00:00
hannes
f89e58426d From Carles Kishimoto <carles.kishimoto@gmail.com>:
add initial support for the Light Weight Access Point Protocol
as per draft-ohara-capwap-lwapp-04
2007-07-24 16:07:29 +00:00
mcr
73bdd403e9 releasetar fixed up to be useable. 2007-07-24 02:40:59 +00:00
mcr
ec4de63c6f removed unused tar: target, added releasetar: 2007-07-24 02:21:25 +00:00
hannes
cb08bf9e3e add basic skeleton for printing olsr packets as per rfc3626
add a line break in verbose mode fro the ip printer.
2007-03-27 10:44:09 +00:00
hannes
9f2e33e713 From From Carles Kishimoto <carles.kishimoto@gmail.com>:
add support for the cisco propriatry 'dynamic trunking protocol'
2007-03-23 08:12:00 +00:00
hannes
61fb61ab08 From Carles Kishimoto <carles.kishimoto@gmail.com>:
add support for the cisco proprietary VTP protocol
2007-03-21 07:35:00 +00:00
hannes
b831d743ff From Carles Kishimoto <carles.kishimoto@gmail.com>:
add support for unidirectional link detection as per
http://www.ietf.org/internet-drafts/draft-foschiano-udld-02.txt
2007-03-19 15:42:47 +00:00
guy
909204fd5f Don't assume "echo -n" strips off the newline; it doesn't, if the echo
command behaves like the SV echo.  Instead, strip off the newline with
"tr -d '\012'".
2007-02-01 02:15:19 +00:00
hannes
1226a40cb0 add skeleton support for 802.1ag CFM 2006-10-12 10:26:12 +00:00
guy
81276563fd sed reads its standard input by default, and not all versions understand
"-" as meaning "standard input".
2006-10-04 18:03:15 +00:00
mcr
a048d061b5 install a version stamped version of tcpdump as well. 2006-08-27 18:44:09 +00:00
mcr
6aca5370ae support creating TAGS file for *emacs 2006-06-15 21:44:36 +00:00
hannes
b9a93a401e from Carles Kishimoto <Carles.Kishimoto@bsc.es>:
basic support for Ciscos prop. VQP protocol
2006-03-03 22:31:16 +00:00
hannes
50b4920bc5 move AF specific stuff to dedicated files 2006-02-21 10:27:40 +00:00
hannes
0860434f38 add basic support for MPCP 802.3ah frame printer 2006-02-10 04:52:25 +00:00
hannes
cf3e42b2bf move the crc10 verification to a new file checksum.c (will add other checksumming routines later to this file), init shred checksumming tables with init_checksum(), assume network byte order for tag correlation ID in the ATM OAM cell printer 2006-02-09 21:16:47 +00:00
guy
1c902dcdf3 From Ian McDonald and Arnaldo Carvalho de Melo: DCCP support. 2005-09-20 06:01:20 +00:00
hannes
c56e09a204 add support for the IEEE slow protocols LACP, MARKER as per 802.3ad 2005-07-10 14:41:34 +00:00
hannes
a5370b71fe from Andy Heffernan <ahh@juniper.net>:
add PGM upport as per rfc3208
2005-05-20 21:02:29 +00:00
hannes
115ce6fc62 add support for syslog 2004-10-29 11:42:52 +00:00
hannes
ecd1d49fcd add support for dissecting DLT_JUNIPER_ATM1 (137) and DLT_JUNIPER_ATM2 (135) 2004-10-19 15:59:39 +00:00
hannes
4d399db499 -move the nlpid definitions and tokens to a dedicated file(s)
-make use of it in the ISO, Frame-relay and CDP printers
2004-10-07 14:53:09 +00:00
dyoung
00511ce1cf Add the radiotap capture format to tcpdump. radiotap is an extensible
capture format for 802.11 radio statistics such as signal strength,
rx/tx bit rate, and rx/tx channel.
2004-09-23 21:57:24 +00:00
hannes
5d697464b4 add basic support for the SIP protocol 2004-07-27 17:04:20 +00:00
hannes
9974f43f2f import latest definition for Pseudowires from draft-ietf-pwe3-iana-allocation-04
and put it to its new home l2vpn.{c|h}
rework bgp, ldp, lsp-ping to use the common l2vpn_encaps tokenlist
update FILES list to acommodate the recent file additions
2004-06-15 09:42:40 +00:00
hannes
21480b97d8 add baseline LSP-PING support per draft-ietf-mpls-lsp-ping-05 2004-06-06 19:20:03 +00:00
hannes
8b3d754999 -add baseline support for dissecting EIGRP-IP and EIGRP-IPX messages
-FIXME: complete TLV dissection (today we just show the TLV name and
        hexdump the TLV value)
2004-04-30 22:22:04 +00:00
hannes
b4709d5e6f add infrastructure for host-OS indep. ipproto name resolution 2004-04-26 17:49:44 +00:00
hannes
d89459c923 add support for the Link Management Protocol (LMP) as per
draft-ietf-ccamp-lmp-10
2004-04-19 21:17:13 +00:00
mcr
d2669e52ae update changes file 2004-03-30 14:42:38 +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
3c4f187d36 Add support for Apple's IP-over-IEEE 1394 encapsulation. 2004-03-17 19:40:41 +00:00
guy
cc3207b9af Add support for DLT_ value 99, as used by the Axent Raptor
firewall/Symantec Enterprise Firewall.  Thanks, Axent/Symantec, for not
asking us for a DLT_ value and not telling us about the link-layer type.
2004-03-11 09:36:14 +00:00
guy
def0866994 From Albert Chin <china@thewrittenword.com>:
propagate CPPFLAGS to Makefile.in;

	move the CPPFLAGS and V_INCLS change to the end of the configure
	run so users don't see "-I$(srcdir)/missing" in their config.log
	output.
2003-12-15 02:12:40 +00:00