Commit Graph

2549 Commits

Author SHA1 Message Date
Guy Harris
832716b73d Fix a bunch of warnings in the ForCES printer.
Get rid of C++/C99-style comments while we're at it; some C compilers
reject them.
2010-01-10 14:16:41 -08:00
Guy Harris
e00f13631d raw_if_print() isn't yet a new-style print routine. 2010-01-10 13:34:22 -08: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
b45fabd132 This commit makes ipnet_if_print the first NDO aware top-level
printer.
Merge commit 'origin/master'

Conflicts:
	netdissect.h
2010-01-10 14:36:07 -05:00
Guy Harris
878889bc21 ether_encap_print() is a utility for use by printers for protocols that
use Ethernet types, to call the appropriate printer routine for the
encapsulated type.  IPNET is the only protocol using IPNET types, so
ipnet_encap_print() isn't needed.
2010-01-10 14:32:12 -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
Michael Richardson
accfcf9a24 make new list of printers that take ndo argument, and use it as appropriate 2010-01-10 14:27:33 -05:00
Guy Harris
b4883f0947 Update config.guess and config.sub to the latest versions. 2010-01-08 10:37:35 -08:00
Guy Harris
5d2acbcf57 Don't warn about the non-use of some arguments to rsvp_obj_print() if we
don't have libcrypto, as we can't use them if we don't.
2010-01-05 20:24:44 -08:00
Guy Harris
a10a7c2868 Include ipnet.h in the distribution. 2010-01-05 20:17:26 -08:00
Guy Harris
e9eff7f57e Add support for DLT_IPV4 and DLT_IPV6.
While we're at it, clean up some whitespace.
2010-01-04 12:11:04 -08:00
Guy Harris
16e7d6ed56 When removing conftest*, use "-r", to clean up OS X .dSYM turds. 2010-01-02 15:59:43 -08:00
Guy Harris
ebc9a33b11 Fix some problems that show up in autoconf 2.64 and later. 2010-01-02 15:29:06 -08:00
Ken Bantoft
635b50e7ae Update CHANGES for 4.0.2 release 2009-12-21 20:38:10 -05:00
Guy Harris
576af3ab43 When printing a list of link-layer types for -L, give the name of the
device for which they're being reported, so if no -i flag was given
people don't think it's something such as the union of of all link-layer
types supported by all devices, and, if we can determine whether the
device supports monitor mode (with libpcap 1.0.0 and later), indicate
whether the link-layer types are the ones supported when not in monitor
mode (if -I wasn't specified) or when in monitor mode (if -I was
specified), so people don't wonder why some types aren't available (as
some are available only in monitor mode, and others are available only
when not in monitor mode, on some platforms).
2009-12-01 00:39:54 -08:00
Guy Harris
b050a1e4e0 Squelch a couple of compiler warnings. 2009-11-27 12:03:25 -08:00
Guy Harris
d8b1b0fa48 Include "netdissect.h" in print-ip6.c, and move icmp6_print's
declaration out from inside #if 0/#endif, to get it declared in
print-ip6.c.
2009-11-26 15:07:47 -08:00
Guy Harris
5f947ac9b4 XXX_if_print() routines are not passed a "struct netdissect_options *",
so ipnet_if_print() can't expect one.

ipnet_print() isn't called from outside print-ipnet.c, so make it static.
2009-11-26 14:57:38 -08:00
Guy Harris
0c3032509b ether_encap_print() is a utility for use by printers for protocols that
use Ethernet types, to call the appropriate printer routine for the
encapsulated type.  IPNET is the only protocol using IPNET types, so
ipnet_encap_print() isn't needed.
2009-11-25 13:26:52 -08:00
Michael Richardson
8c47da620f netdissect.h did not actually declare ipnet_if_print, make it visible 2009-11-24 21:38:56 -05:00
Michael Richardson
052094d865 updated print-ipnet.c to use netdissect options structure 2009-11-24 21:31:04 -05:00
Darren Reed
b116cd9ac4 The patches attached to this email are required to get a fully working tcpdump
on OpenSolaris, or Solaris Express Community Edition, build 125 and later.

The attached patch introduces support for printing out the IPNET headers used
for packet capture inside of zones that share their networking with the global
zone and for packets "transmitted" between zones.

tcpdump 4.0.0 will ship with builds 129 and later of OpenSolaris/SXCE and
when run as root with the '-L' option, should behave as below to indicate that
the system is fully functional:

Data link types (use option -y to set):
 DOCSIS (DOCSIS) (printing not supported)
 IPNET (Solaris IPNET)
 EN10MB (Ethernet)

Cheers,
Darren
2009-11-24 21:20:25 -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
27e7cefadd netdisect converted icmp6_print() 2009-11-14 21:36:05 -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
Michael Richardson
0a029bab08 updated print-flags test case to have new TCP flags 2009-11-14 20:51:44 -05:00
Michael Richardson
42e1277308 updated lmp test case to have no-cksum flag 2009-11-14 20:51:28 -05:00
Michael Richardson
5398dff7bc make check should depend uponi presence of built tcpdump 2009-11-14 20:50:39 -05:00
Guy Harris
7923f06110 When parsing IEs in a management frame, save the *first* IE of a given
type we see, not the *last*, so the first one gets printed.  If,
however, a rates IE has a zero-length list of rates, don't save that
one; some devices send out frames with two rates IEs, one zero-length
and a later one containing the actual rates.

Have parse_elements() return an indication of whether truncation
occurred - and pass it the frame length, so it doesn't just keep parsing
until an end-of-captured-data test fails, as that would make *every*
frame look truncated.
2009-11-04 14:55:05 -08:00
Guy Harris
f26c9ae48e Fix typo. 2009-10-12 16:58:56 -07:00
Hannes Gredler
a0275861d3 modularize ip6 nextlayer checksum generation and
change tcp6 and pim6 to use it.
2009-10-12 10:16:58 +02:00
Guy Harris
359c312cc6 Use tok2strbuf() rather than doing it by hand (with potentially-unsafe
routines).  Thanks and a tip of the Hatlo hat to OpenBSD's linker for
warning about that.
2009-10-11 12:49:05 -07:00
Guy Harris
df3cb44f79 On some platforms we appear to get a warning because dnsname_print() is
declared static and later defined without static.  Define it with
static.
2009-09-21 10:16:14 -07:00
Guy Harris
8d0935ca9b Don't use "uint"; it's not guaranteed to be defined.
Don't define a variable in the middle of a block; not all C compilers
support that.
2009-09-21 10:02:05 -07:00
Guy Harris
eb0f011bb7 Report ps_ifdrop if it's non-zero. 2009-09-07 16:52:15 -07:00
Guy Harris
832d2c7338 From Fang Wang:
RFC 5482 specifies a new TCP option -- the TCP User Timeout
	Option (UTO) -- that allows one end of a TCP connection to
	advertise its current user timeout value.  The Kind of UTO
	option is 28 and the Length is 4.  The tcpdump currently does
	not recognize UTO option.
2009-08-18 15:02:37 -07:00
Guy Harris
c91c13825f Just use a u_char * to go through the packet data; don't try to be
clever and use a u_int16_t * - the generated code will be the same, and
this code works even if the Offset Size field value is odd.
2009-08-18 14:56:06 -07:00
Guy Harris
9da2a96bb5 Check that bytes exist in the captured data before fetching them. 2009-08-18 14:47:13 -07:00
Guy Harris
a82daa17d6 From Karl Norby: print the unsigned packet statistics with %u, not %d. 2009-07-31 18:08:12 -07:00
Guy Harris
0d6ffcf7e6 Make it look more like the FreeBSD tcpdump ethertype.h. 2009-07-25 10:48:32 -07:00