Commit Graph

254 Commits

Author SHA1 Message Date
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