Commit Graph

498 Commits

Author SHA1 Message Date
Denis Ovsienko
b39c831bf2 Revert "TCP: add a test case for the previous commit"
This reverts commit cfb06c27a2.
2017-01-18 09:16:35 +01:00
Eliot Lear
01e8e1485f Implement IANA OUI and LLDP MUD option
The changes associated with this commit introduce the IANA subtree
for LLDP and its first element, the MUDURL, as documented in
draft-ietf-opsawg-mud.  This is similar to the changes made for
DHCP and DHCPv6.

[updated to use fn_printn]
2016-12-31 08:17:55 +01:00
Eliot Lear
38fce5474f Updated to include dhcp-mud tests. 2016-12-08 15:00:03 +01:00
Eliot Lear
890cd83ed7 These are test files for Manufacturer Usage Descriptions and an updated test list. 2016-12-08 14:53:46 +01:00
Denis Ovsienko
cfb06c27a2 TCP: add a test case for the previous commit
The SCPS TCP option is malformed as discussed in GitHub issue #516 and
is printed as such. The .pcap file was contributed by Patrik Lundquist.
2016-11-01 15:16:11 +00:00
Pier Carlo Chiodi
e2adb166ec BGP: Update LARGE_COMMUNITY Path Attribute early allocation IANA value
Update test files accordingly
2016-10-27 10:24:36 +02:00
Denis Ovsienko
a8e7abd8ea update a comment in TESTonce 2016-10-17 17:14:02 +01:00
Michael Haardt
d08a095df2 add a test case for the previous commit 2016-10-16 21:45:22 +01:00
Francois-Xavier Le Bail
151c0cb295 Add a test file for BGP LARGE_COMMUNITY Path Attribute 2016-10-13 11:26:47 +02:00
Francois-Xavier Le Bail
90dc6cb575 IPv6 mobility: Fix printing of 'truncated' string
Moreover:
Fix spaces before tabs
2016-10-09 20:38:57 +02:00
Antonin Décimo
0f4d2ff49f HNCP: update test file 2016-09-02 14:18:31 +02:00
Francois-Xavier Le Bail
4e01870063 RPKI-RTR: Remove printing when truncated condition already detected
Moreover:
Remove redundant 'truncated' messages.
Add and use tstr[].
Update output of some tests accordingly.
2016-08-18 13:59:52 +02:00
Francois-Xavier Le Bail
19ea00958b BFD: Update to print optional authentication field
Moreover:
Add test files with 'Simple Password', 'Keyed MD5' and
'Meticulous Keyed SHA1' authentications.
Update specification from draft to RFC 5881 for BFD_CONTROL_PORT and
BFD_ECHO_PORT in udp.h.
Add specification RFC 5881 in print-bfd.c.
2016-08-17 11:46:54 +02:00
Michael Richardson
db752b7f79 Merge pull request #534 from MisterDA/hncp-20160728
HNCP support (RFCs 7787 and 7788)
2016-07-29 16:38:05 +02:00
Jean-Raphaël GAGLIONE
0a9a602a8c Add test for HNCP. 2016-07-28 21:22:31 +02:00
Michael Richardson
292d58b784 dagid is always an IPv6 address, not an opaque 128-bit string 2016-07-09 17:22:18 -04:00
Guy Harris
549aab2173 Use strtol(), not atoi(), to parse integral values.
strtol()'s error behavior is standardized; atoi()'s isn't.
2016-04-26 03:04:21 -07:00
Andrew Darqui
fc213645d4 Initial support for the REdis Serialization Protocol known as RESP.
This commit adds support for RESP as defined in: http://redis.io/topics/protocol.
It also supports inline commands and pipelining. Due to the popularity of RESP,
numerous services are emerging that use this protocol. You may decode RESP packets
on arbitrary ports using the "-T resp" option.

Example captures can be found in tests/resp_*.

A simple way to test this parser is to start redis-server and then run
redis-cli commands such as "redis-cli set key value".

Traditionally, redis-cli monitor is used to debug redis. Unfortunately,
the "monitor" command can cause significant load on a redis-server in
production. This parser may be used as a non-invasive alternative to
redis-cli monitor.
2016-04-26 11:00:21 +02:00
bugyo
ba8a8cd5a3 Add printing function for Generic Protocol Extension for VXLAN
and Network Service Header.

This code stands for following internet drafts:

- VXLAN GPE: draft-ietf-nvo3-vxlan-gpe-01
- NSH: draft-ietf-sfc-nsh-01
2016-03-22 16:59:03 +01:00
Francois-Xavier Le Bail
35e410ca1f Add three test cases for already fixed CVEs
CVEs by Steffen Bauch
CVE-2014-8767: OLSR
CVE-2014-8768: Geonet
CVE-2014-8769: AODV
2016-02-06 15:26:14 +01:00
Francois-Xavier Le Bail
fdc13e28cf VXLAN: Add a test case 2016-01-31 11:34:39 +01:00
Guy Harris
ea1182b7f3 Fix the radiotap printer to handle the special bits correctly.
Process bits 29, 30, and 31 in code that's independent of what namespace
we're in:

  If we're switching to the radiotap namespace, reset the bit numbers to
  start back at 0.

  If we're switching to a vendor namespace, get the vendor OUI and
  subspace, and the skip length.

  Keep trace of which namespace we're in.

  If we're *in* a vendor namespace, skip over the data specified by the
  skip length (and reset it, as we've processed all the vendor namespace
  data and, if there's a subsequent bitmap in the same namespace,
  there's nothing more to process.  Use cpack_align_and_reserve() to
  skip that, so we check that we don't go past the end of the packet
  data.

Fixes GitHub tcpdump issue #498.

This removes some bogus errors; update the test output to reflect that.
2016-01-11 15:47:31 -08:00
Francois-Xavier Le Bail
b713410ff2 Ethernet: Print the Length/Type field as length when needed
Reference: IEEE Std 802.3-2012
"If the value of this field is less than or equal to 1500 decimal
(05DC hexadecimal), then the Length/Type field indicates the number
of MAC client data octets contained in the subsequent MAC Client Data
field of the basic frame (Length interpretation)."

Update the output of a test accordingly.
2015-12-16 15:59:39 +01:00
Herwin Weststrate
266720f258 Translate UDP/1700 as RADIUS
Used for Cisco CoA/Disconnect, as shown on https://supportforums.cisco.com/discussion/11719766/ise-112-change-authorization-avaya-switches-5520. The RFC says port 3799, but Cisco does this otherwise, which means this is not an officially reserved port for RADIUS.
2015-12-15 18:42:04 +01:00
Francois-Xavier Le Bail
4b870b6496 Add missing output files for MPLS/ICMP extensions capture file
Add the test cases accordingly.
Complete Hannes's commit fad6704f63.
2015-11-27 15:25:35 +01:00
Francois-Xavier Le Bail
ba983e34ca LISP: Add and use istr[] and tstr[] strings
Update the output of a test accordingly.

Moreover:
Delete extra blank lines.
2015-11-21 10:41:05 +01:00
Francois-Xavier Le Bail
9759a5bc71 UDLD: Fix an infinite loop
Moreover:
Update reference from draft to RFC5171.
Add bounds and length checks.
Fix TLV length printout. It is the length of the type, length, and value
fields.
Filter out non-printable characters.
Print the Echo TLV with fn_printn(). Note: The format of this list of ID
pairs is not documented in the RFC.
Update the output of a test accordingly.
Add and use istr[] and tstr[] strings.
Comment on the TLV format.
Update some comments.
2015-11-20 20:23:11 +01:00
Francois-Xavier Le Bail
f06ad54406 RADIUS: Filter out non-printable characters
Update a test according to this change.
2015-11-09 20:09:04 +01:00
Francois-Xavier Le Bail
8db57a4b90 ISOCLNS: Fix two segmentation faults
Moreover:
Add/fix a lot of bounds and length checks.
Add and use tstr[] string.
Fix some typos.
Update the output of a test according to these changes.
2015-10-17 22:54:47 +02:00
Gisle Vanem
2862abfda0 Fix a test name 2015-10-15 16:55:22 +02:00
Francois-Xavier Le Bail
8e23441356 Add missing output files for LSP-Ping capture files 2015-10-13 16:31:45 +02:00
Francois-Xavier Le Bail
5ef7141caa Add test files for pcap-ng invalid versions 2015-10-10 18:54:46 +02:00
Francois-Xavier Le Bail
9cb72d9469 Add test files for pcap invalid versions 2015-10-10 18:22:22 +02:00
Francois-Xavier Le Bail
e32088572e Fix the pcap version in tests/cve2015-0261-crash.pcap
It will be always usable with the upcoming libpcap versions sanity checks.
(old version: 12336.12336, new version: 2.4)
2015-10-10 14:36:08 +02:00
Francois-Xavier Le Bail
eea2b6d5dd LISP: We always support IPv6 addresses now
INET6 is no more used.
2015-10-05 09:25:46 +02:00
ritsz
823644a72d Initial commit for support of Type 3 and Type 4 LISP packets.
Fixing Travis CI build for LISP commit

Adding testcases for lisp notify and register

Fixing build warnings

Added ND_TCHECK for relevant headers

Fixing ND_TCHECK2 issues

Adding support for multiple LOC records for same EID entry

Fixing review issues, adding detailed tests

Adding support for verbose outputs

Adding RFC information for UDP PORT defination

Removing Spaces in type names

Print EID record related flags in verbose mode

Using tok2str

Fixing -Wpedantic issues

Negative testcases, Packet structure comments, verbose mode flag printing

Printing Map Version

Print auth_data, decouple type and xtr_present extraction, handle malformed packets correctly

Tests for latest code changes

Printing useful info incase not built with IPv6 support
2015-10-04 12:47:13 +02:00
Guy Harris
c632b5f3d1 Fix check for MCS field being present.
Fix test file while we're at it.
2015-09-28 20:09:53 -07:00
Guy Harris
5da6c2b8c9 Update tests for 11n fix. 2015-09-28 18:50:40 -07:00
Francois-Xavier Le Bail
d52f811775 The Option -n is useless in TESTLIST
This option is already set in TESTonce.
2015-09-17 10:16:59 +02:00
Francois-Xavier Le Bail
7ea344d76a Use the word 'invalid' for 'malformed' or 'corrupted' packets
An invalid packet could be:
1) built malformed originally by the sender or a fuzz tester,
2) became corrupted in transit.
2015-09-06 13:44:54 +02:00
Guy Harris
668e3cf744 Fix to reflect dBm radiotap values now being displayed as "dBm" rather than "dB". 2015-08-26 12:01:28 -07:00
Guy Harris
05c341d86b Add a test that makes unaligned accesses.
From GitHub issue #478, in which tcpdump crashed on SPARC due to making
an unaligned access.
2015-08-25 11:18:38 -07:00
Denis Ovsienko
a128ac4e04 update the DNSSEC test case after the last change 2015-07-10 11:57:24 +01:00
Denis Ovsienko
47294c7678 add a DNSSEC test case
This is related to GH #445 and GH #467.
2015-07-10 11:53:33 +01:00
Francois-Xavier Le Bail
ab941c35f9 BGP: Add support for the AIGP attribute (RFC7311)
Based on a patch from Hannes Gredler
2015-05-22 12:41:40 +02:00
Hannes Gredler
9ab2f17922 Merge branch 'master' of github.com:the-tcpdump-group/tcpdump 2015-05-20 19:30:11 +02:00
Hannes Gredler
f449a39c38 add testcases for IS-IS POI (rfc6232) 2015-05-20 19:29:29 +02:00
Francois-Xavier Le Bail
ce1470b1ac Update test output for the previous change 2015-05-19 20:25:16 +02:00
Ferry Huberts
672112b1f4 olsr: add a test to cover a HNA sgw case
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2015-05-03 17:30:47 +02:00
Francois-Xavier Le Bail
8da466fa75 MEDSA: fix indent 2015-04-25 22:44:15 +02:00
Andrew Lunn
d729eb478e Add support for the Marvell Extended Distributed Switch Architecture header
This header can be used with Marvell switches to direct packets in/out
of a specific port in a tree of interconnected switches. The header
uses its own Ethertype of 0xdada.

By default, only brief output is printed, showing the switch device,
port, and vlan the packet is to/from. However if -e is given, to print
the link-level header, all fields are printed.
2015-04-25 22:44:15 +02:00
Guy Harris
5170957d27 With -e, print the LLC header before the SNAP header; without it, cut the SNAP header.
With -e, write out everything; without -e, just write the SNAP header
and, if the OUI is 000000, don't report it, and report the PID as an
ethertype.
2015-04-18 00:08:52 -07:00
Guy Harris
7f664c43c7 Update test output for the previous change. 2015-04-17 19:01:14 -07:00
Guy Harris
5d11d5212a Update test output to reflect previous change. 2015-04-17 13:14:22 -07:00
Guy Harris
8275fd8117 The FC flag is now "protected", not "WEP".
It's also used for WPA/WPA2, so it's a generic "protected by encryption"
flag.  Update the name of the macro that checks it, and report it as
"Protected" rather than "WEP Encrypted".
2015-04-15 20:11:41 -07:00
Guy Harris
102922077b Reflect the results of recent changes.
We don't print anything from the MAC header without -e, even with -v -
except for the Protected flag, which we print regardless of -e or -v.
2015-04-15 20:07:52 -07:00
Guy Harris
52b57d962d We're not copying the string to buf, so print the string, not buf.
Get rid of the now-unused buf array while we're at it.
2015-04-08 11:37:08 -07:00
Guy Harris
7a35ea87c1 Print strings with fn_printn().
That filters out non-printable characters.
2015-04-08 11:06:50 -07:00
Francois-Xavier Le Bail
fb6e5377f3 RPKI to Router Protocol: Fix Segmentation Faults and other problems
-Fix/add ND_TCHECK2 tests,
-Fix a buffer overflow,
-Remove a debug printf
2015-03-13 14:27:39 +01:00
Guy Harris
b63073388b Reflect the addition of a space before "(unverified)". 2015-03-11 14:00:56 -07:00
Guy Harris
c27d2e08e2 Fix previous checkins of test output. 2015-03-10 23:22:47 -07:00
Michael Richardson
0e5490dd43 make sure that EXIT code is appended to results file 2015-03-10 23:21:04 -07:00
Michael Richardson
eec7c9e757 in some cases we expect tcpdump to fail with an error code 2015-03-10 23:20:52 -07:00
Michael Richardson
0e1d1bb1c2 annotate kday packets with CVE numbers 2015-03-10 23:19:50 -07:00
Michael Richardson
5af85c5ca4 update cve-2015-0261 test packets with expected output 2015-03-10 23:19:32 -07:00
Michael Richardson
dcf43a05fe broken packets from Kevin Day 2015-03-10 23:19:05 -07:00
Michael Richardson
192fabf4bd test case for cve2015-0261 -- corrupted IPv6 mobility header
Author:    Michael Richardson <mcr@sandelman.ca>
2015-03-10 23:15:50 -07:00
Michael Richardson
364b00185b some patches to deal with kday pcap files
Author:    Michael Richardson <mcr@sandelman.ca>
2015-03-10 23:13:30 -07:00
Denis Ovsienko
88d16c2dc6 OpenFlow 1.0: improve BSN extensions support
Improve decoding of BSN vendor commands: update printing of commands
that set/get mirror port reporting flag, add decoding of shell exec
commands. Introduce decoding of vendor-specific actions with BSN as the
first such vendor and "mirror" as the first such BSN action.

Add a new test case based on a packet capture produced using Trema
controller and an Arista 7050SX-64 switch in Arista Networks' test lab.
Besides the structures above the capture contains the following items:

* OFPT_QUEUE_GET_CONFIG_REPLY with 0 queues (a valid edge case)
* OFPT_FEATURES_REPLY with ports 21 and 23 having bogus "config" field
  (a violation of the protocol, which required temporary patching of the
  controller to avoid the session shutdown)
* a set of IP mask manipulation BSN-specific commands
2015-02-18 19:51:57 +00:00
Michael Richardson
6094d2890e minor changes to detect core dumps better 2015-02-17 20:20:53 -05:00
Jesse Gross
e513b92334 Add additional test cases for Geneve.
The test cases exercise both more varied traffic and new libpcap
filters.
2015-02-17 16:37:04 +01:00
Gisle Vanem
6802dd63c5 condition DOS/UNIX newline styles for Windows test 2015-01-09 13:39:39 +00:00
Denis Ovsienko
b1be2eab1f amend recent changes to fix tests on Solaris
Solaris /bin/sh does not support the "!" operator, I forgot about it
again (see commits 9ac4b76 and f4252a1). Now should be OK.
2015-01-08 11:08:57 +00:00
Denis Ovsienko
0e0eff9525 update the LMP test case for a Windows build
This is a side trip of GH #418.
2015-01-04 12:44:21 +00:00
Denis Ovsienko
d0fab6bf83 ICMPv6: fix RPL DAGID printing (GH #418)
Allow an extra byte in the buffer for snprintf()'s null character,
otherwise it does not work as intended (issue spotted by Gisle Vanem on
Windows, where snprintf() behaviour seems to be different). Update the
tests.
2015-01-03 07:29:12 +00:00
Denis Ovsienko
a9f03bd038 skip some tests when compiled with Capsicum
When compiled with Capsicum, tcpdump -E 'file filename' fails to read
the secret from the file with the "Not permitted in capability mode"
error and exits with code 3. Skip respective tests until this logic is
handled in a better way.
2014-12-30 20:48:10 +00:00
Denis Ovsienko
78a0b1c982 OpenFlow: improve vendor message decoding
Introduce a new function that tries to dispatch an OFPT_VENDOR message
to a vendor-specific printer function. Add such a function for Big
Switch Networks vendor with about as little decoding as necessary to
cover the existing 7050Q OF1.0 capture.
2014-12-13 18:34:15 +00:00
Denis Ovsienko
94b4c01e1d OpenFlow: add vendor name printing
The new function goes into print-openflow.c as vendor name decoding is
the same in all versions of OpenFlow (although in 1.0 it is "vendor"
and in subsequent versions it is "experimenter"). The mapping is from:

https://rs.opennetworking.org/wiki/display/PUBLIC/ONF+Registry
2014-12-13 18:06:04 +00:00
Francois-Xavier Le Bail
6cdbddabf8 DHCP: decoder for the TFTP Server Address option (RFC5859) 2014-12-01 16:56:30 +01:00
Francois-Xavier Le Bail
93d4e71b8d DHCP: decoder for the User Class option (RFC3004) 2014-11-28 11:10:24 +01:00
Francois-Xavier Le Bail
936afd7d46 tests/dccp_partial_csum_v*.out: update according two previous changes 2014-11-20 16:02:00 +01:00
Francois-Xavier Le Bail
aa8104a94c TESTonce & others: 'make check' need to do a strict comparison, including spaces
Currently, TESTonce uses 'diff -w' so it ignores all white space.
We need a strict comparison, else there is no difference between, for example,
'Association Setup' and 'AssociationSetup' => removing  the option '-w'
2014-11-14 20:14:29 +01:00
Guy Harris
59b9406a45 Merge pull request #411 from jessegross/geneve
Add support for Generic Network Virtualization Encapsulation (Geneve).
2014-11-10 20:49:04 -08:00
Francois-Xavier Le Bail
0a1a287385 Radius: update Packet Type Codes and Attribute Types with RFC/IANA names 2014-11-06 14:40:56 +01:00
Jesse Gross
e240710e25 Add support for Generic Network Virtualization Encapsulation (Geneve).
Defined in http://tools.ietf.org/html/draft-gross-geneve-02
2014-11-05 21:44:29 -08:00
Guy Harris
15d235ca60 Fix length fields in UDP headers to be what they should be.
The value of the length field in a UDP header includes the length of the
header itself; the values in this capture didn't.  The length fields in
the IP headers and the RADIUS headers were correct and consistent with
each other, and the length fields in the UDP headers are now correct and
consistent with both of them.
2014-10-20 14:44:47 -07:00
Guy Harris
0639f5fd08 Update to reflect that BGP no longer prints a redundant length value. 2014-10-20 02:45:06 -07:00
Guy Harris
5492b22a2c Update tests to reflect the new HTTP dissector. 2014-10-20 02:43:58 -07:00
Herwin Weststrate
6db4fd5348 Added support for RADIUS Change of Authorization messages
Defined in RFC 5176
2014-10-10 11:39:08 +02:00
Herwin Weststrate
d9037be695 Added RFC4675 attributes to RADIUS dissector 2014-10-09 16:49:48 +02:00
Guy Harris
822fd00501 Update to reflect the output format changes and bug fixes for CDP. 2014-08-14 18:21:23 -07:00
Michael Richardson
817ec9f27e RPL: print DAO flags (acK, DagID)
remove DAO messages from DIO test data
2014-07-02 18:00:30 -04:00
Baptiste Jonglez
633441a08a Add a decoder for the babel-rtt extension
Also add a simple testcase.
2014-06-01 17:29:31 +09:00
Denis Ovsienko
35043f3507 AoE: add version 1 decoder (GH #298)
The sample capture was produced with two Linux hosts (aoetools version
36, kernel module version 85, vblade version 21). One of the hosts
exported a 1MB block device containing a freshly created filesystem and
the other mounted it, wrote a small file and then unmounted.
2014-05-04 20:48:03 +04:00
Gisle Vanem
4686d6601e Update TESTonce
Adapt script for Strawberry Perl and possibly other Win32 Perls. The program is windump.exe on Windows.
2014-05-02 05:14:44 -07:00
Guy Harris
e02b9c9f65 Just use #! /usr/bin/env perl.
That's a simpler way to deal with the Perl interpreter not being in
/usr/bin.
2014-05-01 19:56:26 -07:00
Guy Harris
2708ee9830 Don't assume the Perl interpreter is in /usr/bin/perl.
It's not necessarily there on all platforms.  Explicitly invoke the
interpreter to run the TESTonce script; that requires that, when you run
"make check", your path includes the directory in which the Perl
interpreter resides.
2014-05-01 19:50:19 -07:00
Francois-Xavier Le Bail
5d6d557df4 Enable check with various versions of gcc (e.g. CC=gcc-4.8 ./configure)
This change avoid:
    lmp-v : TEST SKIPPED (compiler is not GCC)

works also with: CC=/path/to/gcc ./configure
2014-04-28 15:41:50 +02:00
Denis Ovsienko
d491e08087 make NFLOG test case conditional
Not all libpcap copies have the support for NFLOG (added in 2013), thus
only run the test when tcpdump was compiled for it.
2014-04-23 23:55:50 +04:00
Vyacheslav Trushkin
a97e56cb11 M3UA support added (GH #342)
SCTP's payload protocol identifiers added.

M3UA tests provided by wireshark
http://wiki.wireshark.org/SampleCaptures#Sigtran_Protocol_Family
But RFC4666 tells that parameter 0x0002 aren't carried by M3UA, so
it's OK that tcpdump doesn't know about this identifier.

Conflicts:
	Makefile.in
	interface.h
	print-sctp.c
	sctpConstants.h

-----------------------------------------------------------------------
The change to sctp_print() does three things:
* makes detection of ForCES consider PPID, not just port number
* verifies chunk length of all SCTP_DATA chunks, not just of ForCES
* adds PPID-specific dispatching with a particular case of M3UA

-- Denis
2014-04-21 18:53:40 +04:00
Francois-Xavier Le Bail
7141a856c5 fix incorrect IPv6 UDP and ICMPv6 checksums with routing headers
- in this case the destination address used in the pseudo-header is
  that of the final destination : the last address of the routing header

- add a pcap file
2014-04-17 15:18:41 +02:00
Denis Ovsienko
6832edd28f add PacketLife captures for HSRP and IS-IS 2014-04-17 14:27:22 +04:00
Denis Ovsienko
f2dfbc7af8 EIGRP: add IPv4 test cases from PacketLife 2014-04-16 12:29:54 +04:00
Denis Ovsienko
4c021bbf2a OSPFv3: add PacketLife sample captures 2014-04-15 19:47:52 +04:00
Denis Ovsienko
c661f8b23d use more PacketLife captures for test cases
Improve coverage for ISAKMP, IGMP and HDLC. Add initial coverage for STP
variants, DECnet, RADIUS, DTP, LACP, LLDP, CDP, VTP and UDLD.
2014-04-14 14:16:59 +04:00
Denis Ovsienko
9477a20847 put Hannes' prior captures to work
Add test cases for the .pcap files added in 2005 (complements commits
279c3bd, 80d7284 and 0dcd9ac).
2014-04-14 14:16:59 +04:00
Denis Ovsienko
92987badd6 PIM: add some v2 test cases
The sample captures come from packetlife.net through courtesy of Jeremy
Stretch.
2014-04-12 10:51:48 +04:00
Denis Ovsienko
341c69d5d3 OSPFv3: add authentication test case
The sample capture was produced with RFC6506 implementation by Jyotsna
Priya of TCS (work in progress).
2014-04-01 10:49:54 +04:00
Denis Ovsienko
8a3d3809f3 VRRP: top off the previous change
Update the test cases and squelch a compiler warning.
2014-03-06 14:24:27 +04:00
Denis Ovsienko
32d5e449e6 VRRP: add a sample capture and two test cases
The sample capture consists of VRRPv2/IPv4, VRRPv3/IPv4 and VRRPv3/IPv6
packets. It was produced using 7 MikroTik devices running RouterOS 6.10
and configured for the same set of virtual addresses with different
priorities per device. The devices were powered on one after another
with a ~30 seconds delay in the order of VRRP priority ascending. The
test cases decode the capture with and without "-v".
2014-03-06 14:16:33 +04:00
Baptiste Jonglez
1fc130d880 Fix commit 833425ab: babel uses 1/100th of seconds, not 1/10th
Also update affected testcases.
2014-03-05 13:19:58 +01:00
Denis Ovsienko
9e2042ebe8 make OpenSSL-specific tests conditional 2014-02-17 00:24:08 +04:00
Francois-Xavier Le Bail
3625533c9a fix partial checksum errors in DCCP decoder, IPv6 case 2014-02-16 18:29:37 +01:00
Francois-Xavier Le Bail
e0d19bbebc DCCP tests: more verbosity (from -v to -vv) 2014-02-16 09:46:57 +01:00
Francois-Xavier Le Bail
c025e64b9e fix partial checksum errors in DCCP decoder, IPv4 case 2014-02-15 12:36:02 +01:00
Guy Harris
a961192e4f Not all OSes have a diff that supports "diff -u". 2014-01-30 18:49:56 -08:00
Denis Ovsienko
6383b5c54a fix more Solaris testing issues
echo doesn't support "-n"
grep doesn't support "-q" and "-e"
2014-01-20 17:27:18 +04:00
Denis Ovsienko
f4252a1ac2 the bugfix missing from the previous commit 2014-01-20 16:07:31 +04:00
Denis Ovsienko
9ac4b762ef fix some shell mistakes after a Solaris run
It worked on Linux and FreeBSD but OpenCSW build produced the following:

./lmp-v.sh: !: not found
./TESTrun.sh: local: not found
./TESTrun.sh: test: unknown operator ==
2014-01-20 16:03:50 +04:00
Denis Ovsienko
2eb86da603 LMPv1: make the "-v" test GCC-specific (GH #333) 2014-01-20 15:48:28 +04:00
Denis Ovsienko
3cf6fb361f test scripts overhaul
Rewrite TESTonce to do only one thing (run a test with given parameters)
but do it well. Split TESTrun.sh into functions and extend it to do only
a specific test if requested. Justify format of the test results and
move most of the test results printing from TESTrun.sh to TESTonce.
2014-01-20 15:48:27 +04:00
Guy Harris
371c41a074 Fix test files to match byte-order fix for the RPL dissector. 2014-01-15 12:05:08 -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
Michael Richardson
67ce15cc7e RPL: rename test case files to be more clear as to their purpose 2014-01-05 11:41:28 -05:00
Michael Richardson
5637910a9d RPL: test data and fix for printing DAO messages 2014-01-05 11:38:28 -05:00
Michael Richardson
9df6f2ccb4 make sure that DAOACK option printer gets accurate length, and does not indicate truncated spuriously 2014-01-05 00:20:52 -05:00
Michael Richardson
defc20085e added test case for a DAO-ACK with no options 2014-01-04 23:31:47 -05:00
Michael Richardson
1658db5ec3 added decoding of RPL DAO and DAOACK sub-options 2014-01-04 10:56:41 -05:00
Michael Richardson
2f1714e728 added RPL decode for DAO and DAOACK, refactor out option printer 2014-01-04 10:52:11 -05:00
Michael Richardson
b02da273e5 provide proper pcap file for test case 2014-01-03 11:04:36 -05:00
Michael Richardson
df9a394126 correct typo in RPL DIO PRF mask.
updated 19-pickdag, as this pcap file now has correct PRF/MOP value to show this fault.
2014-01-02 22:39:14 -05:00
Michael Richardson
35e21565de added hexprint of suboptions payload on three -v
move rpl dio print to subfunction to keep it at 80columns
2014-01-02 22:07:38 -05:00
Michael Richardson
82ede46025 updated RPL printer from draft-07 to rfc6550 for DIO message.
Decode the DIO suboptions as well, added new test case
2014-01-02 21:33:26 -05:00
Denis Ovsienko
219e43a95f ICMPv6: restore Route Information option decoding
In May 2001 commit ea3df10 implemented support for then-current I-D on
the Route Information ICMPv6 option using type 9. In June 2001 type 9
was assigned to a completely different ICMPv6 option (Source Address
List, RFC3122). In 2005 the I-D became RFC4191 with the same option
encoding and assigned option type 24.

Update a macro to fix decoding and add a test case for it (produced
with an unconfigured instance of a development build of OpenWrt).
2013-11-28 19:17:08 +04:00
Denis Ovsienko
de2552832f OpenFlow 1.0: add OFPT_VENDOR messages test case
This capture was produced using an Arista DCS-7050Q-16 switch running
EOS-4.10.4 software. The controller sends two vendor messages
(BSN_GET_IP_MASK_REQUEST and BSN_GET_MIRRORING_REQUEST) and the switch
sends a reply for each (BSN_GET_IP_MASK_REPLY and
BSN_GET_MIRRORING_REPLY respectively).
2013-11-28 11:18:48 +04: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
fxlb
7be1e976c9 print-ip6: add a test on the header version value 2013-11-12 11:01:20 +01:00
Denis Ovsienko
9272876f57 remove some stray files
.gitignore supercedes .cvsignore. The uuencoded test file is of no use
since commit acd66de.
2013-10-29 13:30:07 +04:00
Denis Ovsienko
c9569fd10a fix flags printing tests
The test cases included the timestamp (due to missing -t) and failed
unless run in the same timezone as produced. The failures printed by
print-flags.sh did not make it into the final report because the script
always returned 0.

Strip the timestamps and replace print-flags.sh with some contents in
TESTLIST.
2013-10-26 11:28:15 +04:00
Denis Ovsienko
833425ab80 Babel: improve printing of time intervals
All Babel intervals are encoded in centiseconds and must not be 0. In an
Update TLV the interval value 0xFFFF means infinity (RFC6126 Section
4.4.9). Update the test cases.
2013-10-18 09:24:37 +04:00
Denis Ovsienko
950bee6ca0 add a TCP Fast Open test case
The sample capture is a subset of the capture downloaded from
http://cloudshark.org/captures/5c1fa7f9ae91
2013-10-03 11:28:57 +04:00
Denis Ovsienko
1db497c317 LMP: amend tests/.gitignore 2013-09-18 19:27:11 +04:00
Bram
d44f963e59 fix parsing of syslog priority (GH #264)
...the code

* first looks for '<' and advances to the next character,
* it looks for a number between 0 and 9 and advances to the next
  character, (it finds 7)
* it looks for '>' and advances to the next character,
* it looks for a number between 0 and 9 and advances to the next
  character, (it finds the '2' of '2010')

=> result: prio is 72 instead of 7.

The code that checks if the character is '>' should be outside the loop
that checks if the character is a number. The attached patch moves this
check.
2013-09-12 21:14:16 +04:00
Denis Ovsienko
f5acc04bef add a test case for syslog over UDP
The new capture contains two datagrams produced by logger utility
(syslog default timestamp format) and two datagrams produced by rsyslog
(RFC3339 timestamp format). One of the rsyslog datagrams has priority
consisting of two figures and the other -- of one figure.
2013-09-12 21:14:06 +04:00
Denis Ovsienko
af23176926 NFLOG: remove header dependency, add a test case
This change removes detection of linux/netfilter/nfnetlink_log.h, which
was only used to provide two constants. The constants are now defined in
print-nflog.c, making it possible to compile (and test) the NFLOG
decoder on all systems, not only Linux.

There is now a test case for the decoder, it was produced on a Linux
host with:

iptables -A INPUT -p udp --source 74.82.42.42 -j NFLOG --nflog-group 20
dig @74.82.42.42 ...
2013-09-09 14:45:31 +04:00
Denis Ovsienko
ee87840d97 LMP: fix some minor output issues
Fix a typo and suppress trailing spaces/tabs in a few cases.
2013-09-09 14:17:27 +04:00
Denis Ovsienko
44f6dd92c1 OpenFlow 1.0: enable decoding of nested frames
The packet that may be contained in an OFPT_PACKET_IN or OFPT_PACKET_OUT
OpenFlow message is a plain Ethernet frame. Make it possible to have
ether_print() process that frame, with a controlled verbosity level (see
a comment in print-openflow-1.0.c for details). Update an existing test
case to employ the new feature.
2013-09-09 13:48:11 +04:00
Denis Ovsienko
eadd71d493 LMP: add -T override and fix version 1 test(s)
The Link Management Protocol version 1 sample capture added to the tests
directory in commit 212eef2 was produced using non-standard UDP port
49998. Later assignment of port 701 reflected in commit 960aee5 made it
impossible to decode the capture.

This change adds a -T override for LMP, uses it to replace the broken
test with two working tests and dismisses the custom test script,
lmp.sh.
2013-09-07 12:24:02 +04:00
Michael Richardson
3a46bcf7af Merge pull request #331 from audaya/master
Support for DCB and EVB TLVs
2013-08-29 06:28:41 -07:00
Udayakumar
3d09422d86 Test pcap files for DCB and EVB TLVs with their output 2013-08-29 10:34:10 +05:30
Udayakumar
7fe25f8348 Added Test cases for DCB and EVB TLVs. 2013-08-29 10:01:41 +05:30
Denis Ovsienko
39c95ea6e9 Babel: sub-TLV 2 is Diversity, not ChanInfo 2013-08-28 19:55:00 +04:00
Denis Ovsienko
15d2c20ca4 OpenFlow 1.0: add a test case for NEC PF5240
This capture was produced using a NEC PF5240 switch running OS-F3PA
V4.0.1.0 and configured for one OpenFlow instance with 8 ports. A short
exchange covers features not seen in previous OF1.0 captures. It
installs 8 flows that hit 3 of the 11 tables present on the device:
"normal 1", "expanded" and "emergency". This is correctly reflected in
subsequent flow/table stats reply messages. The queue
stats/configuration messages (typically absent from most other
implementations) cover 2 ports with 8 queues each. After the exchange
completes the controller shuts down.
2013-08-28 17:22:15 +04:00
Denis Ovsienko
dee6a8c361 OpenFlow 1.0: add another test case
The capture was produced using a Dell Force10 S4810 switch running FTOS
9.1 and configured for two OpenFlow instances. Both instances try to
connect to a Trema controller. Instance 1 connects and proceeds to a
protocol exchange driven by a test script. Besides other messages
instance 1 produces a malformed OFPT_STATS_REPLY message (there are
multiple table descriptors with table_id set to 0) and an OFPT_PACKET_IN
message with xid set to 0. Instance 5 tries to connect, but its
OFPT_FEATURES_REPLY contains a malformed bitmap and the controller
closes the connection. The controller is shut down soon thereafter.
2013-07-10 12:25:00 +04:00
Ola Martin Lykkja
0c78d433d9 Improved quality, bug fixes, typos. Added test case 2013-06-27 13:28:10 +02:00
Ola Martin Lykkja
80d038a7b1 Adding support for ISO CALM FAST and ETSI GeoNetworking 2013-06-25 23:43:19 +02:00
Denis Ovsienko
847858ce7a justify the previous 802.11 test case name 2013-06-06 23:15:56 +04:00
Oleksij Rempel
9d987198f6 add test for rx-stbc flag
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2013-06-06 20:38:15 +02:00
fxlb
e3e04d2c8c DHCPv6 decoder fix
- fix the tests for DH6OPT_SIP_SERVER_D, DH6OPT_DOMAIN_LIST and DH6OPT_NTP_SERVER,
- add missing ")".
2013-05-31 15:25:29 +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
cac189b9e3 initial support for Babel sub-TLVs decoding
Babel sub-TLVs are a work in progress, a backward-compatible extension
to Babel version 2 protocol encoding. This update implements encoding
explained by Juliusz Chroboczek to decode ChanInfo sub-TLV of the Update
TLV.
2013-05-29 13:03:23 +04:00
Denis Ovsienko
d0b48b5108 fix iteration over Babel Pad1 TLVs
The Pad1 TLV consists only of the Type field (RFC6126 Section 4.4.1),
thus the check for Pad1 type must be done before the Length field is
consumed, if ever. This change brings tcpdump decoder into line with the
spec and Babel implementation's own TLV iterator.
2013-05-29 13:03:23 +04:00
Denis Ovsienko
dbd9d385cc add a test case for Babel protocol with Pad1 TLVs
The packet capture consists of two datagrams produced with a modified
version of Quagga-RE babeld, such that each TLV of the datagrams is
followed with one Pad1 TLV. This encoding is not what a Babel speaker
would typically send, but it is otherwise valid and up to the spec
(RFC6126 Sections 4.2 onwards).

The current version of the decoder has a bug iterating over Pad1.
2013-05-29 13:03:23 +04:00
Jorge Boncompte [DTI2]
1ed68a5cfe add a test case por PPPoE session ID filtering 2013-05-17 17:09:00 +02:00
fxlb
c86e4bd09c DHCPv6 decoder update (RFC3646, DNS options)
- Add decoder for option 24 (DOMAIN_LIST)
- Rename option 23 as DNS_SERVERS
- Rename option 24 as DOMAIN_LIST
- In dhcp6opt_print() constify dh6o
2013-05-06 17:44:01 +02:00
fxlb
b674109a41 DHCPv6 decoder update
- In dhcp6opt_print() constify tp
- Add decoder for option 21 (SIP_SERVER_D - RFC3319)
2013-04-29 14:33:18 +02:00
Denis Ovsienko
b766ec9d3b fix bug #303 (DLT_IEEE802_11_RADIO ext. bitmaps)
This bug was discovered and pinned down by Wim Torfs.

The code in question handles DLT_IEEE802_11_RADIO datalink type, which
consists of a variable-sized header, a variable number of fields and the
actual 802.11 frame. The integers contained in the fields are aligned,
properly extracting them is exactly the purpose of the existing "cpack"
module. The issue with the current code is that it sets alignment base
for cpack at the end of the variable-sized header, in other words,
64-bit integers would be properly extracted only so long as the header
is 64-bit long, which only happens when the total number of bitmaps in
it is odd (the minimum number of bitmaps is one). Once this condition
isn't met, as is with two bitmaps, decoding becomes incorrect. The
reporter's point that the alignment base must be the beginning of the
variable-sized header is accurate.

This commit adds a new cpack_advance() function to fast-forward the
"c_next" pointer of a cpack_state context by an arbitrary number of
octets. The ieee802_11_radio_print() function now uses it to skip the
header and all its bitmaps, and the alignment base is now the header
start.
2013-04-28 18:26:53 +04:00
Wim Torfs
3e3cc1fce3 new test for DLT_IEEE802_11_RADIO w/ext. bitmap
I modified the mac80211 and ath9k kernel module such that extra
information regarding rssi, etc are available, which is why I needed the
extra bitmap. Capturing the packets is simply a matter of using tcpdump
-i wlan0 -w dumpfile.
2013-04-28 18:26:26 +04:00
fxlb
af7a65c643 DHCPv6 decoder update
- Rename option 31 as SNTP_SERVERS (see RFC4075)
- Add decoder for option 56 (NTP_SERVER) from RFC5908
2013-04-25 17:44:14 +02:00
Gregory Detal
e2c6675ddb Fix MPTCP support
Added:
 * option length check
 * option type and TCP flags check
 * more information printed

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
2013-04-19 09:22:04 +02: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
Denis Ovsienko
0e2f72760d improve ZeroMQ support (ZMTP/1.0 inside PGM/EPGM)
This change adds new code to decode ZeroMQ datagrams, couples it with
the PGM decoder and extends the -T option to make all this work.

There are two new test cases based on existing captures of ZMTP/1.0
inside [E]PGM to decode the ZMTP/1.0 part of these.

This functionality enables decoding of the traffic zeromq library
produces for "pgm://" and "epgm://" protocol schemas.
2013-04-14 18:20:26 -04:00
Denis Ovsienko
b10f46c2d6 use existing PGM decoder for UDP-encapsulated PGM
The original PGM uses its own IP protocol number. "EPGM" or "PGM/UDP"
stands for UDP-encapsulated PGM, which has no assigned UDP port number
and can be decoded only by means of -T option, which now accepts "pgm"
protocol type for this purpose. There is also a sample capture of EPGM
now (similar to the one of native PGM, but produced using the "epgm://"
protocol schema) and a respective test case.
2013-04-14 18:20:26 -04:00
Denis Ovsienko
fac122dea6 add a test case for native PGM
This commit adds a capture of a few PGM (IP protocol 113) packets
produced with version 2.2.0 of zeromq library built with PGM support
(using the "pgm://" protocol schema). Each of the three ODATA packets in
the capture contains a ZeroMQ datagram in the "Data" (application data)
field. There is a new test case covering the PGM part of the capture.
2013-04-14 18:20:26 -04:00
Ruben Kerkhof
5080a9a012 Add tests for wrong agent-id 2013-03-22 14:15:35 +01:00
Michael Richardson
85cf448c65 Merge pull request #51 from orebokech/msnlb-printer
Add MS NLB heartbeat ethertype, a basic printer, and 2 test files
2013-02-25 07:26:26 -08:00
Romain Francoise
850e47990a Add two MS NLB test captures
msnlb1.pcap contains two heartbeat packets from a single cluster (two
nodes). msnlb2.pcap is the same capture with a lower snaplen to exercice
the truncation code path.
2013-02-23 18:50:06 +01:00
Bill Fenner
a945058fa7 Merge branch 'master' of git://github.com/mcr/tcpdump
Conflicts:
	tests/TESTLIST
2013-02-22 11:51:33 -08:00
Michael Richardson
cf6018bf77 Merge pull request #49 from ajithadapa/master
Support SPB BPDUv4 version
2013-02-12 16:25:18 -08: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
Ajith Adapa
cb85addfd6 Fixes-for-test-results 2013-02-07 11:07:29 +05:30
Ajith Adapa
6fa35c192e Merge remote branch 'upstream/master' 2013-02-07 10:54:02 +05:30
Tillmann Karras
d632d08fa7 Add some MLDv2 test packets
The added packets are: a join, a regular query and reply, and a leave.
2013-01-19 08:53:37 +01:00
fxlb
2c4de02c06 print-dhcp6.c: Fix bugs in DH6OPT_IA_NA, DH6OPT_IA_PD, DH6OPT_IA_TA, DH6OPT_IA_ADDR and DH6OPT_IA_PD_PREFIX option cases. Add test files 2012-11-26 17:39:09 +01:00
fxlb
9e2d0e4316 dhcpv6-AFTR-Name-RFC6334.out: update needed after adding TCHECK in print-dhcp6.c 2012-11-26 11:08:19 +01:00
FXLB
c9105c011c add dhcpv6-aftr-name test in tests/TESTLIST 2012-11-21 11:26:20 +01:00
FXLB
c9f3872e20 add tests/dhcpv6-AFTR-Name-RFC6334.out file 2012-11-21 11:18:53 +01:00
FXLB
150674f171 add tests/dhcpv6-AFTR-Name-RFC6334.pcap file 2012-11-21 10:25:36 +01:00
Marc Abramowitz
f8a96c9317 Do more verbose logging to the console of output when tests fail so that
I can figure out why some tests are failing in Travis CI.
2012-10-12 08:14:45 -07:00
Ajith Adapa
0b3ef304c3 Added-bpduv4-test-files 2012-10-04 20:48:22 +05:30
Bill Parker
c88b482ebc Added options to gitattributes 2012-09-04 09:58:28 -07:00
Denis Ovsienko
91830ddd6c update for current Babel auth spec
This change updates Babel decoder output format to match terminology of
draft-ovsienko-babel-hmac-authentication-00 and reverts recent addition
of DLen field to TLV type 12.
2012-08-21 18:36:56 +04:00
Denis Ovsienko
13223554b8 update Babel decoder for DLen in HD TLV
This change reflects a new Digest Length field added to Hash Digest TLV
in the current draft of Babel authentication spec. babel_print_v2() is
updated to fetch and validate the new field. Test files too.
2012-06-29 22:29:04 +04:00
Denis Ovsienko
33808c6690 decode RIPv2 authentication up to RFC4822
This change addresses a few issues in rip_entry_print_v2() and
rip_print():

1. In the case of Simple Password (RFC2453) authentication the last
(16th) character of a password was never printed. Other password
characters were printed regardless of existing isprint() test.

2. In the case of Cryptographic (RFC4822) authentication there were no
details available for fixed-size auth header and variable-size auth
trailer.

3. Depending on particular hash function used, a normal authentication
trailer "RTE" may be 20 or more bytes long. Iteration over packet RTEs
should stop once a trailer is decoded. Exact number of RTEs in a message
cannot be told from message size any more.

Test cases are added for Request and Response messages with Simple
Password, Keyed-MD5, HMAC-SHA-1, HMAC-SHA-256, HMAC-SHA-384 and
HMAC-SHA-512 authentication modes. Earlier test case is updated to match
new "number of routes" output format.
2012-06-12 14:10:05 +04:00
Denis Ovsienko
c4830eb85e fix RIP Request/full table decoding issues
RIP Request and Response messages have the same structure. Update a
switch block in rip_print() to proceed with decoding of both.

A Request message may contain an AFI 0 RTE standing for a full table
request, normally sent on a router start. Update rip_entry_print_v1()
and rip_entry_print_v2() to treat IPv4 and AFI 0 as two valid,
distinguishable cases.
2012-06-12 13:59:06 +04:00
Denis Ovsienko
78a8be4700 add decoding of Babel authentication TLVs
This change extends existing Babel protocol decoder to recognise
experimental authentication TLVs (types 11 and 12) and includes
a respective test case for the new code.
2012-06-06 17:57:20 +04:00
Ajith Adapa
5fc542f5b6 Adding the test files for SPB 2012-06-05 12:03:01 +05:30
Ajith Adapa
8872bb6fdf Added test files for spb. 2012-06-04 09:25:13 +05:30
Denis Ovsienko
8c31bfcebe add DNSSL (RFC6106) support
The most notable difference between RFC5006 and RFC6106 is the addition
of DNSSL RA option. This commit adds DNSSL handling code to make tcpdump
fully RFC6106-aware. This code has been tested against RA packets
generated by Quagga and radvd.
2012-04-13 16:32:40 +04:00
Michael Richardson
2a5efbae38 added missing test files to releasetar 2012-04-07 21:26:15 -04:00
Michael Richardson
3cc6f4ea2a updated test case outputs 2012-04-03 15:57:13 -04:00
Michael Richardson
02da8c74d9 added icmpv6 test case 2012-03-29 16:04:51 +02:00
Michael Richardson
4944846e5d error in passed calculation 2012-03-29 16:04:02 +02:00
Bill Fenner
4d4f42a37b Merge remote-tracking branch 'upstream/master' 2012-03-06 08:26:26 -08:00
Bill Fenner
a0da0ec38c Separate multiple nexthops.
Multiple nexthops in MP-BGP were not getting separated, so you are
left wondering "what kind of address is dead:beef::1fe80::1ff:fe01:0"?
Separate them with ", " so that it is more clear that they are
multiple nexthops.
2012-03-01 05:38:25 -08:00
Dagobert Michelsen
5d61759b24 Use expr instead of bashisms.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2012-02-28 15:31:38 -08:00
Bill Fenner
d0ab6a50a7 Add a test for IGMPv3 query response times 2012-02-25 07:21:38 -08:00
Michael Richardson
a50985b582 added test packet for icmpv6 advertisement interval fix 2012-02-23 20:11:32 -05:00
Michael Richardson
1118847da5 permit -n flag to affect print-ip for protocol numbers 2012-01-23 14:10:16 -05:00
Michael Richardson
ac2a34f19c Merge pull request #3 from bodgit/master
Test case for PPPoE & RFC 4638 Payload Tag
2011-12-12 05:44:40 -08:00
Matt Dainty
d57e91f0fd Add simple PPPoE test case 2011-12-11 01:57:56 +00:00
Michael Richardson
104160e0b5 Merge remote branch 'github/master' 2011-12-09 20:04:11 -05:00
zilog80a
026147c336 Fix test output - IP protocol 72 is in /etc/services on at least some UN*Xes.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2011-10-13 19:44:07 -07:00
Michael Richardson
8b6ba58727 Merge pull request #1 from jhsmt/master
restore some test cases for forces
2011-09-13 07:18:40 -07:00
Michael Richardson
e933eb54cd removed unnecessary file 2011-08-27 16:54:26 -04:00
Jamal Hadi Salim
d3d17f3d06 Restore forces3 pcap and associated output
Signed-off-by: Jamal Hadi Salim <hadi@mojatatu.com>
2011-07-26 13:28:06 -04:00
Jamal Hadi Salim
38efca1a71 Restore forces2 pcap and associated output
Signed-off-by: Jamal Hadi Salim <hadi@mojatatu.com>
2011-07-26 13:26:31 -04:00
Jamal Hadi Salim
95e85c82a5 Fwd: pcap files
On Tue, Jun 28, 2011 at 3:52 PM, Michael Richardson <mcr@sandelman.ca> wrote:

> I'm not aware of a new file.

The email i responded to had 4 attachments sent by Evangelos.
Those were supposed to replace the files with those exact names.

> Please send github tree, ideally.

You mentioned github to me last time and offered to get me to
learn it in 5 minutes;->  I havent had time and the old school stuff i do
still works.
How about i send you patch #1 to delete the old files (as attached)
and another to re-add with new ones.
Alternatively: I could send one that overrides the existing ones.

cheers,
jamal
> --
> ]       He who is tired of Weird Al is tired of life!           |  firewalls  [
> ]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
> ] mcr@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
>   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
>                       then sign the petition.
>

commit d93443f24bfb5fd982ff33deb66979bae811db57
Author: Jamal Hadi Salim <jhs@mojatatu.com>
Date:   Tue Jun 28 16:15:49 2011 -0400

    [PATCH] Remove test files using old ForCES ports

    Signed-off-by: Jamal Hadi Salim <hadi@mojatatu.com>
2011-07-03 16:22:00 -04:00
Michael Richardson
e7b58ef90b removed unneeded pcap file 2011-07-03 16:14:19 -04:00
Guy Harris
7074f77080 Handle UDP checksums more like TCP checksums.
Instead of printing the result of udp_cksum() if it's non-zero, print
the checksum field value and the value it should have had.  That means
that what we print is the same regardless of whether we're running on a
big-endian or little-endian machine.

Also, just as we did with TCP:

Check -v and -K, and the fragmented flag, up front; then check the IP
version etc..  Don't check for IPv6 if we already know it's IPv4.  Fetch
the checksum field only once.

Update some test files for the new output format.
2011-06-16 22:10:36 -07:00
Guy Harris
26d81cbe26 Update sflow test output to reflect recent changes to print-sflow.c. 2011-06-12 18:39:11 -07:00
Guy Harris
d53e50ef24 Fix some problems with the tests.
Get rid of some no-longer-necessary uudecodes (Git can store binary
files such as pcap files, so we no longer need to uuencode them, and the
uuencoded files are no longer around), and handle the "-X" and "-XX"
flag tests (where we had to rename the "should be" output files to avoid
collisions on case-insensitive file systems such as the default local
file system on the desktop UN*X with the biggest market share).
2011-06-12 18:08:55 -07:00
Michael Richardson
acd66dee76 removed need for uudecode 2011-04-30 18:51:51 -04:00
Michael Richardson
9a7206907f added babal test cases 2011-04-28 18:51:09 -04:00
Michael Richardson
f827ce45ad updated forces test cases 2011-04-28 18:27:24 -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
Michael Richardson
76bbd5f9ea added sflow test cases 2011-04-27 15:21:21 -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
Jamal Hadi Salim
1f4fe57314 Add test pcap+output for nested and recursive pathdata
Signed-off-by: Jamal Hadi Salim <hadi@mojatatu.com>
Signed-off-by: Michael Richardson <mcr@sandelman.ca>
2011-01-25 19:59:46 -05:00
Michael Richardson
3e508b0074 mistype of RPL type codes: off by one. fixed 2010-12-31 12:36:24 -05:00
Michael Richardson
d1088041e2 updated RPL type code to RPL-17 draft
added secure bit
updated single test case
2010-12-31 12:28:43 -05:00
Michael Richardson
91021f01ab make test cases a bit quieter 2010-10-07 14:47:42 -04:00
Michael Richardson
28b293f330 added support and test case for QinQ packets 2010-10-07 14:47:22 -04:00
Michael Richardson
0cd4e1d659 updated test with extra length printed 2010-10-07 14:44:45 -04:00
Michael Richardson
4239b5a727 changed output of -vvv and -vvvv flags for forces 2010-03-05 11:41:39 -05:00
Michael Richardson
83344948fe added -vv/-vvv and -vvvv test output 2010-01-10 14:59:18 -05:00
Michael Richardson
d0e01819c0 IETF FORCES protocol printer, from Jamal Hadi Salim <hadi at cyberus.ca. 2010-01-10 14:49:46 -05:00
Michael Richardson
94feff51db Look for core dumps, and fail test if some are found 2010-01-10 14:28:59 -05:00
Michael Richardson
83f828aa57 test cases for Solaris print-ipnet. Confirms ndo printer code works 2010-01-10 14:28:33 -05:00
Guy Harris
1b15c42270 Remove print-X.out, as it collides with print-x.out on systems with
case-insensitive file systems; print-capX.out has the same contents as
the most recent version of print-X.out, and doesn't collide with
print-x.out.
2009-11-16 16:36:37 -08:00
Guy Harris
5cd3a3c6af Propagate
commit 0a029bab08
	Author: Michael Richardson <mcr@sandelman.ottawa.on.ca>
	Date:   Sat Nov 14 20:51:44 2009 -0500

	    updated print-flags test case to have new TCP flags

to print-capXX.out, prior to removing print-XX.out (again - see previous
commits; it collides with print-xx.out on systems with case-insensitive
file systems).
2009-11-16 16:35:24 -08:00
Guy Harris
db7d0eec88 print-XX.out collides with print-xx.out on systems with case-insensitive
file systems; we've propagated the latest version of print-XX.out to
print-capXX.out, so get rid of print-XX.out.
2009-11-16 16:34:14 -08:00
Guy Harris
fa84e75d96 Propagate
commit 0a029bab08
	Author: Michael Richardson <mcr@sandelman.ottawa.on.ca>
	Date:   Sat Nov 14 20:51:44 2009 -0500

	    updated print-flags test case to have new TCP flags

to print-capXX.out, prior to removing print-XX.out (again - see previous
commits; it collides with print-xx.out on systems with case-insensitive
file systems).
2009-11-16 16:32:21 -08:00
Michael Richardson
71e0924eeb ignore lmp.new file 2009-11-14 22:17:25 -05:00
Michael Richardson
1a2cbb1112 initial printing of RPL DIO messages 2009-11-14 22:17:12 -05:00
Michael Richardson
d6791458c7 initial test case for decoding RPL messages 2009-11-14 21:21:58 -05:00
Michael Richardson
5ea4fcb713 ignore generated files from tests 2009-11-14 20:58:41 -05:00
Michael Richardson
25d387d8af updated ikev2 test cases to show initiator/responder flag 2009-11-14 20:55:24 -05:00
Michael Richardson
bfbd2a4f31 update bgp tests with new tcp seq/ack flags 2009-11-14 20:54:59 -05:00