Commit Graph

37 Commits

Author SHA1 Message Date
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
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
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
c9105c011c add dhcpv6-aftr-name test in tests/TESTLIST 2012-11-21 11:26:20 +01:00
Ajith Adapa
0b3ef304c3 Added-bpduv4-test-files 2012-10-04 20:48:22 +05:30
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
8872bb6fdf Added test files for spb. 2012-06-04 09:25:13 +05:30
Michael Richardson
2a5efbae38 added missing test files to releasetar 2012-04-07 21:26:15 -04:00
Michael Richardson
02da8c74d9 added icmpv6 test case 2012-03-29 16:04:51 +02: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
Bill Fenner
d0ab6a50a7 Add a test for IGMPv3 query response times 2012-02-25 07:21:38 -08:00
Michael Richardson
1118847da5 permit -n flag to affect print-ip for protocol numbers 2012-01-23 14:10:16 -05:00
Matt Dainty
d57e91f0fd Add simple PPPoE test case 2011-12-11 01:57:56 +00: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
76bbd5f9ea added sflow test cases 2011-04-27 15:21:21 -04:00
Michael Richardson
28b293f330 added support and test case for QinQ packets 2010-10-07 14:47:22 -04: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
83f828aa57 test cases for Solaris print-ipnet. Confirms ndo printer code works 2010-01-10 14:28:33 -05:00
Michael Richardson
d6791458c7 initial test case for decoding RPL messages 2009-11-14 21:21:58 -05:00
mcr
c51a2d7a9a updated test cases for fixed msgid/cookie printing for IKEv2.
added test case for encrypted IKEv2 payload.
2007-11-24 18:10:54 +00:00
mcr
1db958bded changed test subsystem to be more table driven, and to save the outputs
and diffs into a consistent place
2007-08-29 02:36:04 +00:00