Commit Graph

6000 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
a0d6dc5065 PKTAP: Update the link-layer dissector to a void function
Moreover:
Remove trailing "_if" from protocol name.
Update the output of a test accordingly.
2020-03-28 10:44:30 +01:00
Francois-Xavier Le Bail
a80bcdd550 PPI: Update the link-layer dissector to a void function
Moreover:
Merge ppi_if_print() and ppi_print() in one function.
Remove two useless ND_TCHECK_ tests (GET_ used).
Remove a no longer used 'trunc' label.
2020-03-28 08:50:00 +01:00
Francois-Xavier Le Bail
b2e294e55c PPI: Add a length check 2020-03-27 20:00:04 +01:00
Francois-Xavier Le Bail
ef53a557d7 PPI: Add specification, update summary, add some comments
[skip ci]
2020-03-22 12:10:27 +01:00
Francois-Xavier Le Bail
ad2b380c5b CIP: Standardize how we refer to "Linux Classical IP over ATM"
Use in the summary the same string as in libpcap.

[skip ci]
2020-03-12 23:39:51 +01:00
Francois-Xavier Le Bail
6a66f11096 IPv4/IPv6 demux: Rename a printer
Rename ip_print_demux() to ip_demux_print(), with _print suffix like
in most similar cases.

Moreover:
Rename a test.
2020-03-08 14:07:37 +01:00
Francois-Xavier Le Bail
8c88f9f54a ESP: Rename two printers
Rename esp_print_decodesecret() to esp_decodesecret_print() and
esp_print_decrypt_buffer_by_ikev2() to esp_decrypt_buffer_by_ikev2_print()
with _print suffix like in most similar cases.
2020-03-08 13:41:07 +01:00
Francois-Xavier Le Bail
19a7707e79 Ethernet: Rename a printer
Rename ether_print_switch_tag() to ether_switch_tag_print(), with _print
suffix like in most similar cases.
2020-03-08 12:36:46 +01:00
Francois-Xavier Le Bail
2c5d114baa Cirrus CI: Add the freebsd-version command 2020-03-06 12:52:20 +01:00
Guy Harris
273c23a52e $srcdir suffices.
It's "the name of the top source directory, assuming that the working
directory is the top build directory"; when running the configure
script, the working directory will, in fact, be the top build directory.
2020-03-02 17:07:43 -08:00
Guy Harris
a2c5888cf6 Look for Makefile-devel-adds in the top-level source directory.
If you're doing an out-of-tree build, that's *not* the current
directory.
2020-03-02 16:56:17 -08:00
Guy Harris
91e2aa9b13 Look for mkdep in the top-level source directory.
Not currently a problem for tcpdump, as we have no subdirectories, but
this will leave us prepared for subdirectories if we ever add any.
2020-03-02 16:15:07 -08:00
Guy Harris
f763b30f67 Fix "make depend" for out-of-tree builds.
Have mkdep take a -s argument, giving the source directory, and have it
prepend that directory to all source files before running them through
the compiler's make-dependencies operation.
2020-03-02 15:23:13 -08:00
Francois-Xavier Le Bail
9736efeb96 Add "domain" as an option for -T
This allows tcpdump to handle DNS running on non-standard ports.

Add two test files with DNS over TCP and DNS over UDP, port 8053.
2020-03-02 20:53:23 +01:00
Francois-Xavier Le Bail
fc84133d47 Document "-T ptp" and "-T someip".
Moreover:
Sort by type.

[skip ci]
2020-03-02 15:16:07 +01:00
Peter Krystad
fdd065fb0f MPTCP: parse v1 ADD_ADDR option
RFC6824bis-18 (MPTCP version 1) makes changes to the MPTCP
ADD_ADDR option format.

An HMAC field is added to the option and the IP version field is
removed and replaced with an Echo bit that provides a reliability
mechanism.

This change allows either v0 or v1 ADD_ADDR options
to be parsed and displayed correctly.

Signed-off-by: Peter Krystad <peter.krystad@linux.intel.com>
2020-03-02 11:26:30 +01:00
Francois-Xavier Le Bail
1dc8113bf7 ARCNET: Replace 0 by NULL for a pointer 2020-03-01 16:22:03 +01:00
Guy Harris
989d838117
Merge pull request #837 from rscheff/master
Remove historic ECN definitions from IPv6
2020-02-29 20:33:41 -08:00
Michael Richardson
6f6a66d390 Revert "Print decoded attributes from NFLOG message"
This reverts commit 5ed759e023.
2020-02-29 18:49:41 -05:00
Michael Richardson
9d046ee050
Merge pull request #492 from vel21ripn/nflog-print
Print attributes from NFLOG message
2020-02-29 18:39:13 -05:00
Richard Scheffenegger
7f304d2869 Remove historic ECN definitions from IPv6 2020-02-29 23:43:49 +01:00
Jeff Chan
8380f5ff00 Dispatch the PTP ethertype to ptp_print()
This implements "IEEE 802.3/Ethernet" mode as described in annex F of
the PTP standard. This uses the same format packets, but directly over
Ethernet instead of encapsulated in UDP.
2020-02-29 19:01:20 +01:00
Francois-Xavier Le Bail
e2256b4f25 SOME/IP: Fix terminating a "struct tok" array
Moreover:
Declare static and const the "struct tok" arrays.
2020-02-29 16:21:12 +01:00
Francois-Xavier Le Bail
cd0857c3b1 PTP: Fix the "not implemented" message for version 1
This avoids: PTPv1ptp version 1: not implemented
2020-02-29 15:40:04 +01:00
Francois-Xavier Le Bail
0c4c8c7818 VJC: Use GET macros to fetch packet data
This change should avoid doing unaligned accesses on some instruction
sets that don't support it, e.g. SPARC.

Update a comment.
2020-02-29 13:19:15 +01:00
Francois-Xavier Le Bail
2ff501f549 PTP: Fix header field 'Port Identity' variable size
'Port Identity' size is 16 bits, thus use uint16_t type.
2020-02-28 21:23:02 +01:00
Francois-Xavier Le Bail
fbaf18d80a PTP: Fix printing the Reserved2 field
Probably a copy & paste error.

Moreover:
Add some missing commas in output.
Fix some typos.

Update the output of a test accordingly.
2020-02-28 20:33:03 +01:00
Francois-Xavier Le Bail
8a04e7d4ca SOME/IP: Add a 'summary' comment with the protocol name
[skip ci]
2020-02-28 17:14:52 +01:00
Davide Caratti
4738c1fa73 MPTCP: parse MP_CAPABLE v1 options
A new version of MPTCP protocol (RFC8684) has been published, with some
changes to the MP_CAPABLE options handling. Let tcpdump print the protocol
version, and adjust parsing of MP_CAPABLE options according to RFC8684.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
2020-02-28 14:34:47 +01:00
Francois-Xavier Le Bail
3520ce0057 man: Add the long-options --micro and --nano in the SYNOPSIS section
Moreover:
Update the date.

[skip ci]
2020-02-28 12:08:23 +01:00
Francois-Xavier Le Bail
dbe598a05d Update the date in tcpdump.1.in
[skip ci]
2020-02-27 15:58:56 +01:00
Francois-Xavier Le Bail
1922524577 Don't show in the usage the removed in 2003 -a option 2020-02-27 14:30:44 +01:00
Francois-Xavier Le Bail
f7d6567191 Cirrus CI: Fix mismatch error with freebsd-13-0-snap
The error was like:
Newer FreeBSD version for package nagios-check_redis:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1300081
- running kernel: 1300078
2020-02-27 12:46:33 +01:00
Francois-Xavier Le Bail
052b90a52e Add doc/README.Win32.md to the release tarball
[skip ci]
2020-02-27 10:42:27 +01:00
Francois-Xavier Le Bail
4d810e062d Print an optional packet count on stderr instead of printing packets
This change add an option to print only on stderr the packet count
when reading capture file(s) instead of parsing/printing the packets.

If a filter is specified on the command line, tcpdump counts only
packets that were matched by the filter expression.

The option name is '--count'.
2020-02-26 20:12:30 +01:00
Francois-Xavier Le Bail
a3bbf1e278 Travis CI: Update printing the list of devel libs in Linux builds
This change improves readability.
2020-02-25 12:02:18 +01:00
Francois-Xavier Le Bail
52d28f3570 Add fptype.h to the release tarball 2020-02-25 11:40:23 +01:00
Francois-Xavier Le Bail
214f235bee Remove trailing spaces 2020-02-25 11:14:39 +01:00
fxlb
a022ed3a9d
Merge pull request #829 from fenner/isis-rfc8202
Parse the IS-IS Instance Identifier TLV from RFC8202
2020-02-24 10:55:27 +01:00
Guy Harris
12cf799245 -W has an argument.
Should fix GitHub issue the-tcpdump-group/tcpdump-htdocs/#15.
2020-02-22 01:58:16 -08:00
Manoharan Sundaramoorthy
4157af94f2 Parse the IS-IS Instance Identifier TLV from RFC8202 2020-02-21 04:45:24 -08:00
Guy Harris
344e610236 Add newline to the end of the last line. 2020-02-19 02:52:05 -08:00
Guy Harris
8ece0a663f
Merge pull request #828 from ffatghub/master
Autosar SOME/IP protocol support
2020-02-19 02:48:27 -08:00
Francesco Fondelli
246ca110d1 Autosar SOME/IP protocol support 2020-02-19 10:05:32 +01:00
Guy Harris
1a1ac1d694
Merge pull request #827 from NanXiao/patch-1
Fix typo in tcpdump.1.in
2020-02-17 09:15:28 -08:00
Nan Xiao
3d257628df
Fix typo in tcpdump.1.in 2020-02-17 21:41:16 +08:00
Michael Richardson
d57927e134 merge testfuncs.pm into TESTrun 2020-02-11 18:07:08 +01:00
Francois-Xavier Le Bail
03f2479999 Remove trailing spaces
[skip ci]
2020-02-10 10:33:20 +01:00
Guy Harris
f0bd777302 Oops, one more space is needed. 2020-02-09 10:33:28 -08:00
Guy Harris
96c4db35ab Update pkg itself.
There's apparently a pkg bug in 11.x:

	https://code.wireshark.org/review/c/36055/

Updating it should fix this, so re-enable the 11.x builds.
2020-02-09 10:28:37 -08:00