tcpdump/tests
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
..
.cvsignore updated test cases for fixed msgid/cookie printing for IKEv2. 2007-11-24 18:10:54 +00:00
.gitignore removed need for uudecode 2011-04-30 18:51:51 -04:00
02-sunrise-sunset-esp.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
08-sunrise-sunset-aes.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
08-sunrise-sunset-esp2.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
babel1.out added babal test cases 2011-04-28 18:51:09 -04:00
babel1v.out added babal test cases 2011-04-28 18:51:09 -04:00
babel.pcap added babal test cases 2011-04-28 18:51:09 -04:00
bgp_vpn_attrset.out update bgp tests with new tcp seq/ack flags 2009-11-14 20:54:59 -05:00
bgp_vpn_attrset.pcap add tests for MP-BGP VPN related attributes and the new Attr Set Attribute 2004-01-08 07:21:20 +00:00
bgp-infinite-loop.pcap add tracefiles for infinite loop testing 2005-04-27 18:58:16 +00:00
chdlc-slarp-short.pcap add testfile for a truncated slarp frame 2005-04-27 14:31:47 +00:00
chdlc-slarp.pcap add testfile for a normal sized slarp frame 2005-04-27 14:50:14 +00:00
dio.out mistype of RPL type codes: off by one. fixed 2010-12-31 12:36:24 -05:00
dio.pcap initial printing of RPL DIO messages 2009-11-14 22:17:12 -05:00
e1000g.out test cases for Solaris print-ipnet. Confirms ndo printer code works 2010-01-10 14:28:33 -05:00
e1000g.pcap test cases for Solaris print-ipnet. Confirms ndo printer code works 2010-01-10 14:28:33 -05:00
eapon1.gdbinit new test cases for EAPol. 2004-03-25 03:29:20 +00:00
eapon1.out updated tests to match patches from Carles Kishimoto 2007-11-22 21:52:31 +00:00
eapon1.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
empty.uu Have empty.uu explicitly be a uuencoding of /dev/null. 2011-04-04 01:18:04 -07:00
esp0.out updates to test cases, "length" added. 2005-04-06 21:27:33 +00:00
esp1.gdbinit ESP decoding test 1 2003-02-25 04:35:57 +00:00
esp1.out updated test case output 2005-10-02 22:24:31 +00:00
esp2.gdbinit test case for decrypting co-axial ESP encapsulations 2003-02-26 03:21:46 +00:00
esp2.out updated test case output 2005-10-02 22:24:31 +00:00
esp3.gdbinit test of using "file" directive 2003-02-26 04:44:33 +00:00
esp4.gdbinit test of using "file" directive 2003-02-26 04:44:33 +00:00
esp5.gdbinit test case for AES256 ESP. 2004-04-05 00:09:36 +00:00
esp5.out updated test case output 2005-10-02 22:24:31 +00:00
esp-secrets.txt test case for AES256 ESP. 2004-04-05 00:09:36 +00:00
espudp1.out changed test subsystem to be more table driven, and to save the outputs 2007-08-29 02:36:04 +00:00
espudp1.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
forces1.out updated forces test cases 2011-04-28 18:27:24 -04:00
forces1.pcap updated forces test cases 2011-04-28 18:27:24 -04:00
forces1vvv.out updated forces test cases 2011-04-28 18:27:24 -04:00
forces1vvvv.out updated forces test cases 2011-04-28 18:27:24 -04:00
forces2.out IETF FORCES protocol printer, from Jamal Hadi Salim <hadi at cyberus.ca. 2010-01-10 14:49:46 -05:00
forces2.pcap IETF FORCES protocol printer, from Jamal Hadi Salim <hadi at cyberus.ca. 2010-01-10 14:49:46 -05:00
forces2v.out IETF FORCES protocol printer, from Jamal Hadi Salim <hadi at cyberus.ca. 2010-01-10 14:49:46 -05:00
forces2vv.out changed output of -vvv and -vvvv flags for forces 2010-03-05 11:41:39 -05:00
forces3.pcap Add test pcap+output for nested and recursive pathdata 2011-01-25 19:59:46 -05:00
forces3vvv.out Add test pcap+output for nested and recursive pathdata 2011-01-25 19:59:46 -05:00
ikev2.puu preliminary patch to support decoding IKEv2 packets. 2007-08-29 02:38:14 +00:00
ikev2four.out updated ikev2 test cases to show initiator/responder flag 2009-11-14 20:55:24 -05:00
ikev2four.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
ikev2fourv4.out Handle UDP checksums more like TCP checksums. 2011-06-16 22:10:36 -07:00
ikev2fourv.out Handle UDP checksums more like TCP checksums. 2011-06-16 22:10:36 -07:00
ikev2pI2-secrets.txt updated test cases for fixed msgid/cookie printing for IKEv2. 2007-11-24 18:10:54 +00:00
ikev2pI2.out fixed up auth payload printing code. 2007-11-27 03:57:20 +00:00
ikev2pI2.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
isakmp1.out changed test subsystem to be more table driven, and to save the outputs 2007-08-29 02:36:04 +00:00
isakmp2.out isakmp test cases 2004-01-06 04:00:15 +00:00
isakmp3.out updated test cases for fixed msgid/cookie printing for IKEv2. 2007-11-24 18:10:54 +00:00
isakmp4.out changed test subsystem to be more table driven, and to save the outputs 2007-08-29 02:36:04 +00:00
isakmp4500.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
isakmp-delete-segfault.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
isakmp-identification-segfault.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
isakmp-pointer-loop.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
isis-infinite-loop.pcap add tracefiles for infinite loop testing 2005-04-27 18:58:16 +00:00
ldp-infinite-loop.pcap add tracefiles for infinite loop testing 2005-04-27 18:58:16 +00:00
lmp.out updated lmp test case to have no-cksum flag 2009-11-14 20:51:28 -05:00
lmp.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
lmp.sh Fix some problems with the tests. 2011-06-12 18:08:55 -07:00
lspping-fec-ldp.pcap update the lspping test samples 2004-06-16 08:39:15 +00:00
lspping-fec-rsvp.pcap update the lspping test samples 2004-06-16 08:39:15 +00:00
mpls-ldp-hello.out changed test subsystem to be more table driven, and to save the outputs 2007-08-29 02:36:04 +00:00
mpls-ldp-hello.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
mpls-traceroute.pcap add a .pcap sample to test MPLS/ICMP extensions 2004-06-14 15:13:00 +00:00
ospf-gmpls.out changed test subsystem to be more table driven, and to save the outputs 2007-08-29 02:36:04 +00:00
ospf-gmpls.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
print-A.out updated print-flags test case to have new TCP flags 2009-11-14 20:51:44 -05:00
print-AA.out updated print-flags test case to have new TCP flags 2009-11-14 20:51:44 -05:00
print-capX.out Propagate 2009-11-16 16:35:24 -08:00
print-capXX.out Propagate 2009-11-16 16:32:21 -08:00
print-flags.pcap removed need for uudecode 2011-04-30 18:51:51 -04:00
print-flags.sh Fix some problems with the tests. 2011-06-12 18:08:55 -07:00
print-x.out updated print-flags test case to have new TCP flags 2009-11-14 20:51:44 -05:00
print-xx.out updated print-flags test case to have new TCP flags 2009-11-14 20:51:44 -05:00
QinQpacket.out added support and test case for QinQ packets 2010-10-07 14:47:22 -04:00
QinQpacket.pcap added support and test case for QinQ packets 2010-10-07 14:47:22 -04:00
QinQpacketv.out added support and test case for QinQ packets 2010-10-07 14:47:22 -04:00
rsvp-infinite-loop.pcap add tracefiles for infinite loop testing 2005-04-27 18:58:16 +00:00
sflow_multiple_counter_30_pdus.out Update sflow test output to reflect recent changes to print-sflow.c. 2011-06-12 18:39:11 -07:00
sflow_multiple_counter_30_pdus.pcap added sflow test cases 2011-04-27 15:21:21 -04:00
TESTLIST added babal test cases 2011-04-28 18:51:09 -04:00
TESTonce removed need for uudecode 2011-04-30 18:51:51 -04:00
TESTrun.sh updated test cases for fixed msgid/cookie printing for IKEv2. 2007-11-24 18:10:54 +00:00