Commit Graph

366 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
9f09ec3ee6 IEEE 802.11: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With a previous fix (3f1c4af001),
the problem no longer exists.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from 4846b3c5d0
in 4.9 branch.
2019-10-24 14:37:36 +00:00
Francois-Xavier Le Bail
30786e36e2 HNCP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With a previous update (511915bef7),
the problem no longer exists.
Thus no fix needed.

The pcap file was renamed from pcapng to pcap because it is.

Update the output of the test accordingly.

Partial update from 83a412a527
in 4.9 branch.
2019-10-24 13:13:00 +00:00
Francois-Xavier Le Bail
1356e69f02 BGP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With some previous updates, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from 13d52e9c0e
in 4.9 branch.
2019-10-24 12:40:04 +00:00
Francois-Xavier Le Bail
84df267205 ICMP6 RPL: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to avoid pcap_loop() error messages.
It was rename from pcapng to pcap because it is.

Update the output of the test accordingly.

Partial update from d750527684
in 4.9 branch.
2019-10-24 09:13:16 +00:00
Francois-Xavier Le Bail
1c9a91b5fe OSPFv3: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With a bounds check previously added, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to avoid pcap_loop() error messages.
It was rename from pcapng to pcap because it is.

Update the output of the test accordingly.

Partial update from e01c9bf767
in 4.9 branch.
2019-10-24 08:46:34 +00:00
Francois-Xavier Le Bail
ecc156b6db LMP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks, keep only the
relevant packets and avoid pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from d97e942237
in 4.9 branch.
2019-10-23 10:01:48 +02:00
Francois-Xavier Le Bail
f29e996df8 VRRP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from a152aebfd1
in 4.9 branch.
2019-10-22 19:20:05 +02:00
Francois-Xavier Le Bail
da348bf0e1 BGP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With a length check previously added, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from e3f3b445e2
in 4.9 branch.
2019-10-22 18:54:34 +02:00
Francois-Xavier Le Bail
47d6af0f93 BGP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With a length check previously added, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from 86326e880d
in 4.9 branch.
2019-10-22 14:47:11 +02:00
Francois-Xavier Le Bail
b934ecef8c VRRP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to avoid pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from 3de07c7721
in 4.9 branch.
2019-10-22 11:29:55 +02:00
Francois-Xavier Le Bail
bc1e7f16e0 RSVP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from bea2686c29
in 4.9 branch.
2019-10-22 10:08:56 +02:00
Francois-Xavier Le Bail
7e5f5a10ab ICMP: Add two test capture files
These capture files triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap files were updated to avoid pcap_loop() error messages.

Update the output of the tests accordingly.

Partial update from 1a1bce0526
in 4.9 branch.
2019-10-21 19:11:48 +02:00
Francois-Xavier Le Bail
1b428d2dca LDP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to avoid pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from aa5c6b710d
in 4.9 branch.
2019-10-21 19:11:37 +02:00
Francois-Xavier Le Bail
13d9421ac8 ISAKMP: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
and was fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from 396e94ff55
in 4.9 branch.
2019-10-20 16:22:12 +02:00
Francois-Xavier Le Bail
b5fbb1f40a RX: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
and was fixed in the 4.9.3 release.

It was fixed in master branch by commit
4154778a26.

The pcap file was updated to pass the sanity checks, keep only the
relevant packets and avoid pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from c24922e692
in 4.9 branch.
2019-10-20 16:22:07 +02:00
Francois-Xavier Le Bail
8f19f1890c FRF.16: Add a test capture file
This capture file triggered a buffer over-read with the 4.9.2 release
and was fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to pass the sanity checks and to avoid
pcap_loop() error messages.

Update the output of the test accordingly.

Partial update from aa3e54f594
in 4.9 branch.
2019-10-19 15:05:46 +02:00
Francois-Xavier Le Bail
2af1e6ca55 AoE: Add a test capture file for the previous fix
This is a followup to commit 46aead6c52.

This capture file was supplied by Bhargava Shastry, SecT/TU Berlin.

Updated from 2391d53757 in 4.9 branch.
2019-10-16 10:02:31 +02:00
ckishimo
327512e264 add rsvp capability object rfc5063 2019-09-19 19:21:58 +02:00
ckishimo
d9ed02212a add isis router capability TLV 2019-09-04 20:26:44 +02:00
ckishimo
94d1a180c7 add BGP encap ext community 2019-09-03 09:49:40 +02:00
ckishimo
43104d3f8a add bgp LLGR capability 2019-08-20 17:01:54 +02:00
ckishimo
1318f45980 add bgp EVPN SAFI 2019-08-19 11:03:39 +02:00
Bill Fenner
81a8988eee Correct the extraction of the TIPC message size field.
Closes #771
2019-07-15 11:07:34 +02:00
Bill Fenner
64466d7eab Decode the Multiple Labels capability (RFC8277) 2019-07-07 07:44:09 -07:00
Bill Fenner
1f529baabb An assortment of PIMv2 packets for testing 2019-07-05 11:21:47 -07:00
Francois-Xavier Le Bail
b5046f22b9 Rename some tests
They were about 'out of bounds read'.
2019-06-23 19:12:08 +02:00
Francois-Xavier Le Bail
6c7369b89f Fix a test name 2019-06-11 12:54:37 +02:00
Bryce Wood
a645800252 PGM: add POLL/POLR test 2019-06-11 09:40:52 +02:00
niks3089
e2f14ebc87 New ethertype protocol for Arista Networks 2019-05-23 11:06:14 +02:00
Tom Jones
d25274b2a7 Add tests for ICMPv6 Param Problem Frag header messages 2019-05-09 22:16:53 +02:00
Andreas Jaggi
886fcf669f Add dissector for SSH version exchange 2019-05-08 22:15:55 +02:00
Bill Fenner
9aa4f490f4 Add BFD multihop and lag decoding
Put back the bfd_port_values, and use it to distinguish
between destination ports for RFC5883 multihop and
RFC7310 lag sessions.  (The destination port is the only
difference between these messages.)
2019-04-26 11:03:34 -07:00
Francois-Xavier Le Bail
e7cfa5e63a IPoIB: Add the output with -e for a capture test 2019-04-23 11:57:20 +02:00
Alexandr Nedvedicky
65b6376ddd Add a test for ipoib (IP over Infiniband) 2019-04-23 10:55:27 +02:00
Francois-Xavier Le Bail
74ee5b1dbe Add verbose outputs with -v and -vv for a vsock capture test 2019-04-22 11:26:00 +02:00
Francois-Xavier Le Bail
de250d5215 Rename a pcapng test file to .pcapng 2019-04-16 21:01:38 +02:00
Vivien Didelot
a5d37edf38 Add tests for Marvell (E)DSA tags 2019-04-16 12:27:13 -04:00
Vivien Didelot
d5c16b1668 Remove MEDSA ethertype printer
MEDSA (which unofficially stands for Marvell EDSA) relies on the
unregistered 0xDADA ethertype value that was randomly choosen and
currently used by the kernel. But with EDSA this value is programmable,
hence can be changed anytime.

Now that a reliable DLT parser is implemented for both DSA and EDSA
tagged master interfaces, let's get rid for the MEDSA ethertype parser.
2019-04-16 12:27:08 -04:00
Stefan Hajnoczi
032c684850 Add vsock test case
Add a simple vsock packet capture test.
2019-04-16 15:12:13 +01:00
Wang Jian
79c7ffc667 Add support for decoding DNS URI RR (typecode 256, RFC7553) 2019-04-13 16:08:03 +08:00
Bill Fenner
dc36fbcfb3 Print Protocol ID correctly in Application Priority Table
Closes #511
2019-04-12 04:18:12 -07:00
Bill Fenner
550907c4fe Add 4-byte ASN tests, both with -b and without 2019-04-11 22:54:42 +02:00
Ahmed Abdelsalam
a87d6a0448 Fix checksum calculation for IPv6 Segment Routing (SRv6) traffic
The checksum calculation for IPv6 packets is based on a pseudo
header that includes the packet's final Destination Address (DA).

If the IPv6 packet contains a Routing header, the final DA is the
last element of the Routing header [RFC8200].

Currently, tcpdump supports Routing header types 0 and 2.

IPv6 Segment Routing Header (SRH) is a new Routing header type (4).
SRH is defined in draft-ietf-6man-segment-routing-header [1].

This patch fix the checksum calculation for SRv6 packets. It allows
tcpdump to get the final DA value from SRv6 packets.

[1] https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-17
2019-03-29 12:04:21 +01:00
Michael Richardson
2319e2892f
Merge pull request #733 from marka63/dns-get-extended-rcode
Extract extend DNS rcode from OPT record.
2019-03-23 10:32:00 -04:00
Francois-Xavier Le Bail
d6ca6f1111 PPP: Fix two loops for undefined behavior at runtime
The errors were:
print-ppp.c:518:9: runtime error: unsigned integer overflow: 38 - 230
cannot be represented in type 'unsigned int'
print-ppp.c:1138:63: runtime error: unsigned integer overflow: 204 - 220
cannot be represented in type 'unsigned int'

Add a test case.
2019-03-18 23:04:07 +01:00
Francois-Xavier Le Bail
ff10db64d6 NFS: Fix an undefined behavior at runtime
The error was:
print-nfs.c:537:2: runtime error: unsigned integer overflow:
4294967295 + 3 cannot be represented in type 'unsigned int'
print-nfs.c:541:14: runtime error: unsigned integer overflow:
4294967295 + 3 cannot be represented in type 'unsigned int'

Add a test case.
2019-03-17 21:37:01 +01:00
Francois-Xavier Le Bail
a24cccfd4a IPX: Add a length check
This fix an undefined behavior at runtime.

The error was:
print-ipx.c:93:43: runtime error: unsigned integer overflow: 29 - 30
cannot be represented in type 'unsigned int'

Add a test case.
2019-03-11 22:07:06 +01:00
Francois-Xavier Le Bail
d3712a11a5 Add two TFTP tests
There is one pcap file with two outputs, with/without the '-T tftp' option.
2019-03-10 16:17:03 +01:00
Francois-Xavier Le Bail
59868ef671 RIP: Fix two loops for undefined behavior at runtime
1) RIPv2
The error was:
print-rip.c:386:9: runtime error: unsigned integer overflow: 16 - 20
cannot be represented in type 'unsigned int'

Without this change the unsigned integer variable 'len' is assigned a
very high value, because of underflow, and the loop continue incorrectly.

Add a test case.

2) RIPv1
Same bugfix, based on a code inspection, so comes without a test case.
2019-03-09 15:13:51 +01:00
Mark Andrews
a72bfeb193 Add dns-badvers test case. 2019-02-13 14:34:02 +11:00