Commit Graph

211 Commits

Author SHA1 Message Date
Guy Harris
3b149607b9 Use AC_CHECK_TOOL to find ar.
On some platforms, such as at least some versions of HP-UX, AR isn't
automatically set by make.
2014-01-16 14:40:46 -08:00
Denis Ovsienko
db8077a114 add a decoder for Loopback/CTP
tcpdump used to print an empty line for a Loopback (CTP) packet, which
many Cisco switches send by default every 10 seconds. This commit adds
a decoder for the protocol and a test case, which uses the sample
capture from Wireshark wiki (configuration_test_protocol_aka_loop.pcap).
2014-01-09 16:59:33 +04:00
Guy Harris
1e506551d1 Include rpl.h in the tarball. 2014-01-08 15:21:40 -08:00
Denis Ovsienko
fe3253b9b8 remove tcpdump's own CVS keywords
Remove lots of $Header's and a few $Id's that all belong to the former
CVS repository of tcpdump itself. These keywords have been frozen since
the migration to git in late 2008.
2014-01-03 00:59:08 +04:00
Michael Richardson
ad7a38341c Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Conflicts:
	enc.h
2014-01-01 21:32:05 -05:00
Michael Richardson
adfd0d8304 move all print-* files into libnetdissect, even though ndo work has not finished 2014-01-01 21:31:18 -05:00
Guy Harris
5af9c5ca76 Move stuff from igrp.h to print-igrp.c. 2013-12-31 02:35:24 -08:00
Guy Harris
393e348df5 Move the contents of arcnet.h to print-arcnet.c.
It's not used by any other file.
2013-12-30 23:33:54 -08:00
Guy Harris
27d428c0a1 Pull a bunch of headers into the only source file that includes them.
For headers included in only one source file, put the header contents in
the source file in question, and get rid of a bunch of stuff from the
header not used in the source file.
2013-12-30 22:52:15 -08:00
Guy Harris
5301862d30 Commit more changes from the previous two. 2013-12-30 15:52:13 -08:00
Denis Ovsienko
d00d1670ce AHCP: add version 1 decoder
Add new decoder for UDP port 5359 and a sample packet capture produced
on a couple of Linux hosts (a server and a client). Besides that, an
existing Babel capture contained AHCP packets and the current AHCP tests
cover 0, 1 and 2 "-v" flags.
2013-11-13 15:49:50 +04:00
Guy Harris
f4eb0472b1 That's README.md, not README.ad. 2013-10-16 12:13:32 -07:00
Guy Harris
47b3d285dc README got renamed to README.ad. 2013-10-16 12:12:54 -07:00
Petar
05ec05a87b IP packet information printing from NFLOG packet
Added nflog.h to Makefile.in

Alphabetical order in Makefile.in
2013-08-14 09:38:49 +02:00
Guy Harris
c951c5012e Fix ForCES warnings, clean up a bit.
Move forces.h into print-forces.c, make a bunch of routines static, and
fix some warnings.
2013-07-23 13:12:54 -07:00
Michael Richardson
9eda8ebfde Merge pull request #324 from lykkja/geonet_and_calmfast
Geonet and calmfast
2013-07-02 12:41:24 -07:00
Denis Ovsienko
aa944dd81d OpenFlow 1.0: rewrite without openflow-1.0.h
The first revision of the header file was copied from the original
distribution tarball intact to use sizeof() instead of adding new
constants on one hand and provide structure definitions for a reference
on the other. But as soon as the structures had a portability issue and
were removed in commit a6c16ed, the remaining fragments of the header
don't justify for a file of its own.

This commit maps all relevant bits of the remaining contents of
openflow-1.0.h to constants in print-openflow-1.0.c (all being specific
to version 1.0 of OpenFlow) and removes the file.
2013-06-26 18:13:23 +04:00
Ola Martin Lykkja
80d038a7b1 Adding support for ISO CALM FAST and ETSI GeoNetworking 2013-06-25 23:43:19 +02:00
Guy Harris
a6c16ed8ab Fix build issues with the OpenFlow printer on some systems.
Don't assume we have <stdint.h>.  Instead, use the AC_TYPE_ macros to
ensure we have the C99 intN_t and uintN_t types; we already include
<inttypes.h> in tcpdump-stdinc.h iff we have it.

Get rid of the structure declarations in openflow-1.0.h, as they have
zero-length arrays (not supported by all the compilers people might be
using) and as

	1) they're only used in sizeof()

and

	2) after each one there's an assertion to check that sizeof()
returns a specific numerical value

so, instead, just #define various _LEN items to those numerical values
and use them.

Add an openflow.h header with a #define for the length of the basic
header, and move the declaration of of10_header_body_print() there.
2013-06-23 14:03:38 -07:00
Denis Ovsienko
05bf9bfc23 Merge remote-tracking branch 'bpf/master'
Conflicts:
	Makefile.in
2013-06-17 00:02:15 +04:00
Michael Richardson
feb50f8483 Merge remote-tracking branch 'mcrhub/master' 2013-05-31 11:06:16 -04:00
Petar
20ad83658d Added IP information printing from NFLOG packet 2013-05-31 12:16:13 +02:00
Denis Ovsienko
fd35562d7e add OpenFlow 1.0 decoder (no SSL)
The new file openflow-1.0.h is a verbatim copy of the file openflow.h
from the openflow-1.0.0.tar.gz distribution. The new file
print-openflow-1.0.c contains a set of functions for OpenFlow 1.0 (wire
protocol 0x01) decoding. Of these functions only
of10_header_body_print() is exported and used by the minimal OpenFlow
decoder.

It is intended that future (1.1, 1.2, 1.3.0) OpenFlow version decoders
are implemented the same way (in modules of their own), since different
versions of OpenFlow specification reuse the same symbols for different
numeric values. This way, print-openflow-1.1.c would include
openflow-1.1.h and so on.

The new test case "of10_p3295-vv" was produced using a Pica8 P-3295
switch and Trema controller running a purpose-built sample application.
2013-05-29 13:03:23 +04:00
Denis Ovsienko
ceeea95918 add minimal OpenFlow decoding framework
This change registers OpenFlow TCP port number and adds processing of
respective packets with openflow_print(), a new function that
understands the minimal OpenFlow header format and can iterate over
messages within a snapshot that starts with the header.
2013-05-29 13:03:23 +04:00
Guy Harris
a332503d7d Get rid of acconfig.h. 2013-05-12 15:28:28 -07:00
Guy Harris
122e1529b7 Support dependency generation with some non-GCC compilers.
Also, if we don't support it with a given compiler, have "make depend"
not run mkdep, as it won't do anything useful.
2013-05-08 00:08:12 -07:00
Guy Harris
902a44da19 Put mptcp.h into the release tarball. 2013-05-05 15:51:57 -07:00
Gregory Detal
578dd316f3 Multipath TCP (RFC 6824) support
This commit adds the support of Multipath TCP (MPTCP). MPTCP is a new
extension to TCP standardized at the IETF. MPTCP allows to use several IP
addresses at the same time by distributing data across several subflows (TCP
connections) while still presenting the standard TCP socket API to the
application. Its benefits are better resource utilization, better throughput
and smoother reaction to failures.
2013-04-14 18:20:26 -04:00
Francesco Fondelli
8eb218c755 - Add support for OTV (draft-hasmit-otv-04).
- Use the packettype infrastructure (-T vxlan) for VXLAN parsing (waiting for a well known dest port)
2013-02-26 13:44:11 +01:00
Francesco Fondelli
d268291346 Merge remote-tracking branch 'upstream/master' 2013-02-25 18:12:33 +01:00
Francesco Fondelli
769d730e80 Add support for VXLAN (draft-mahalingam-dutt-dcops-vxlan-03) 2013-02-25 17:56:44 +01:00
Romain Francoise
66c1d1031b Add MS NLB heartbeat ethertype, as well as a basic printer
The protocol is undocumented but Wireshark extracts some useful bits of
info from the packet, so it was used as a reference.
2013-02-23 18:48:52 +01:00
Michael Richardson
1fffc2c5e4 make list of all relevant files in tests/ rather than explicitly list them 2013-02-22 11:29:16 -05:00
Denis Ovsienko
ad7171ca02 ZeroMQ initial support (ZMTP/1.0 framing)
This change adds support for ZMTP/1.0 (ZeroMQ Message Transport Protocol
1.0) framing in TCP packets, as defined in http://rfc.zeromq.org/spec:13
and implemented in zeromq library.

Since there is no assigned port number for ZeroMQ, the user is left
responsible for making only the related TCP packets captured and
enforcing ZMTP/1.0 decoding through the "-T zmtp1" option.

Each ZMTP/1.0 frame of a packet will produce a single additional line of
output. The "-v" flag will add up to 8 lines (128 bytes) worth of
hex+ASCII dump of the frame body, and "-vv" and higher will dump the
full frame body, however long.

Beware that this code handles neither IP fragmentation nor TCP
segmentation and will incorrectly decode segments not starting at a
frame boundary.

The included sample capture stands for a short ZeroMQ session between a
REQ/REP socket pair doing 3 anonymous 2-way exchanges. It was produced
using version 2.1.9 of zeromq library patched to fix its bug #293, so
that all MBZ bits of the flags field are set to 0.
2013-02-11 15:16:35 +04:00
Guy Harris
1f7ba54a78 "lmp.new" isn't a checked-in file; don't make it part of the distribution. 2012-06-08 00:41:09 -07:00
Michael Richardson
2a5efbae38 added missing test files to releasetar 2012-04-07 21:26:15 -04:00
Michael Richardson
788bb9bb10 do not ship bittypes.h 2012-04-07 20:48:11 -04:00
Guy Harris
2886b89df6 Back out DLT_PFSYNC support.
Unfortunately, the DLT_PFSYNC support depends on header files included
from the pfctl command's source tree, and trying to arrange to find that
would be too much trouble.
2012-02-29 21:14:50 -08:00
Guy Harris
0d2d222ffb Add DLT_PFSYNC support.
From FreeBSD PR bin/124825: tcpdump(8) does not support pfsync(4) data,
which in turn was ported over from OpenBSD.  We already have CARP
support, so we did not port that part over.
2012-02-29 01:51:27 -08:00
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