Commit Graph

1451 Commits

Author SHA1 Message Date
guy
dd729626bf Include "print-enc.c" in the tarball. 2003-12-01 01:10:01 +00:00
guy
7ae8c5b6f9 "win32/Src/w32_fzs.c" was removed; remove it from the list of files in
the tarball.
2003-12-01 01:05:43 +00:00
hannes
274aa0e74e add Vendor OUI resolution 2003-11-30 00:19:21 +00:00
hannes
b526e557fd add Vendor OUI resulution 2003-11-30 00:18:04 +00:00
guy
419347a8e3 Don't stick an extra "RESERVED" in the printout for unknown management
frame subtypes.
2003-11-27 02:51:04 +00:00
guy
cc0ea017e1 Print the subtype of management frames *before* parsing the body, so
that if there's an error parsing the body, we at least see the type (and
so that the code to print the subtype isn't duplicated in every
body-printing routine).
2003-11-27 02:18:53 +00:00
hannes
bf2379cb34 add Management Prefix Color subTLV, plus some references to Internet Drafts 2003-11-26 08:50:48 +00:00
hannes
54e2050ad8 -rework the radius decoder for a decent multiline output
-add print_vendor_attr() for dissecting vendor proprietary attributes
-add global oui.h oui.c files containing vendor IDs/Name tok2str() table
  developers should use this file for resolving OUIs
2003-11-26 08:49:14 +00:00
guy
4bf6f976ab 135 appears to be the current IP protocol number for mobility headers;
support it, as well as 62 (which presumably was one that was used
before, even though it was already assigned to some protocol named
CFTP).
2003-11-24 20:30:51 +00:00
guy
58e719c622 Update the date stamp on the tcpdump man page, and add Gerald to the
list of contributors, for his man page update.
2003-11-23 23:42:16 +00:00
hannes
8f7b7346cd From Gerald Combs <gerald@ethereal.com>:
The change adds left- and right-shift (<< and >>) to the list of
binary operators on the tcpdump man page.  E.g. "tcp[12] >> 4 > 5" will
test for TCP options.  The operators are listed in the '93 Usenix paper,
and appear to have been supported in libpcap since the 0.0 release.
2003-11-23 21:01:50 +00:00
guy
78dd85ab9b Don't check for the OSPF opaque traffic engineering TLV type before
processing the TLV - there might not be any TLVs.  Instead, check before
fetching the type.
2003-11-19 09:44:10 +00:00
guy
259cb9ad02 Add missing bounds checking to the DVMRP and PIM print routines.
Instead of checking that there are 8 bytes available at the beginning of
an IGMP packet - which there might not be, e.g. with some DVMRP packets
- do the checks as necessary before fetching values.
2003-11-19 09:42:04 +00:00
guy
d511b994b9 Use "len", not "payload_len", as we step through the packet; use
"payload_len" to report the raw value from the header.
2003-11-19 06:31:28 +00:00
guy
914cf46872 Keep the remaining payload length in a separate variable from the total
payload length, so we can report the latter at the end of dissection.
2003-11-19 06:17:10 +00:00
guy
01634d3492 Fix a keyboardo. 2003-11-19 05:37:18 +00:00
guy
d69adedc59 Fix a typo (as per NetBSD). 2003-11-19 02:01:40 +00:00
guy
cfe504d07c Fix capitalization of ULTRIX and AppleTalk, as per NetBSD.
Update the date stamp.
2003-11-19 01:59:19 +00:00
guy
d3d2f39461 "icmp6_rrenum_print()" doesn't use its "icmp6len" argument (and, as that
just reflects the payload length, the snapshot length has been trimmed
to correspond to it, so it doesn't need to check it merely to avoid
running past the end of the IPv6 payload); get rid of it.

Pass "icmp6_print()" the IPv6 payload length (i.e., the length of the
ICMPv6 packet), rather than having it compre the length itself.

Make the length argument to "icmp6_cksum()" unsigned, to match the value
passed to it.

Fix the lengths passed to "sctp_print()", "tcp_print()", and
"udp_print()" (we update "len" in the header-processing loop to
correspond to the remaining payload, so we just pass it to those
routines).
2003-11-19 01:27:54 +00:00
guy
5997b27eb6 Put in a long comment explaining what's confusing about this routine,
and explaining that we leave the "unused argument" warning in place as a
reminder that we need to fix this routine someday, when we actually have
a capture against which to test it.
2003-11-19 01:09:48 +00:00
guy
988cd2bb0e Have various routines for printing non-final headers for IPv4/IPv6
return -1 if they run out of data.

Have the IPv4 and IPv6 dissectors check for non-positive return values
from those routines and quit if they see one.
2003-11-19 00:36:06 +00:00
guy
fe0fcd92e3 Fix a signed-vs-unsigned comparison warning. 2003-11-19 00:19:56 +00:00
guy
d6cf0925b2 Cut off "snapend" at the length of the IPv4 or IPv6 payload, so we don't
run past the end of that payload.

Check that the IPv4 total length isn't less than the header length.

Use "%u", not "%d", to print unsigned values.

Properly update "len" in the header-processing loop for IPv6.

Doing so means we can trust the length passed to the TCP and UDP
dissectors when constructing the IPv6 pseudo-header; do so (but fix the
length we pass to the UDP-over-IPv6 checksum routine).

That length is unsigned; make the corresponding arguments to the TCP and
UDP checksum routines unsigned.
2003-11-19 00:17:32 +00:00
guy
8a42f11ab0 Get rid of unused arguments to "dhcp6_print()". 2003-11-18 23:26:37 +00:00
guy
0cf35b497d Print both the name and the description of a link-layer type (the name
isn't always very suggestive - for example, somebody might think
"EN10MB" is always 10 MB/s, and might not know that "IEEE802" is Token
Ring), using "pcap_datalink_val_to_description()".  Supply our own
"pcap_datalink_val_to_description()" if libpcap doesn't have it (even if
it has "pcap_datalink_name_to_val()").
2003-11-18 23:09:42 +00:00
guy
a954cd69a6 In MSVC++'s C library, _IOLBF is the same as _IOFBF; use _IONBF instead.
Fix the timeout in the "pcap_open_live()" call - I accidentally checked
in a larger value I was using while testing pcap_breakloop().
2003-11-18 08:53:19 +00:00
guy
03996bff00 Latest config.guess and config.sub from
http://savannah.gnu.org/projects/config/
2003-11-18 06:30:12 +00:00
guy
dfacb7904a Update the RCS tag information for 3.8. 2003-11-16 10:17:15 +00:00
guy
ea8077fb78 From Brian Ginsbach: add the Cray NV1 CPU to the list of CPUs that don't
support unaligned accesses.
2003-11-16 10:13:34 +00:00
guy
a74e1506eb Give it a proper RCS ID. 2003-11-16 09:57:04 +00:00
guy
2683dab266 From Brian Ginsbach: add the Cray NV1 CPU to the list of CPUs that don't
support unaligned accesses.
2003-11-16 09:44:20 +00:00
guy
ae71d1db52 Have the configure script arrange that the Makefile define _U_
appropriately, and that GNUmakefile and the MSVC++ project file define
it apppriately, as we do with libpcap, rather than defining it in
"interface.h".

Undo the rcsid-shuffling and addition of extra #includes, as we no
longer need to arrange that "interface.h" be included before using _U_
in an RCS ID or copyright.
2003-11-16 09:42:39 +00:00
guy
b1749baac2 Give it a proper RCS ID. 2003-11-16 09:41:29 +00:00
guy
d1bb11814a Undo the previous checkin - it got rid of two recent changes. 2003-11-16 09:39:21 +00:00
guy
bbc1cfa669 Have the configure script arrange that the Makefile define _U_
appropriately, and that GNUmakefile and the MSVC++ project file define
it apppriately, as we do with libpcap, rather than defining it in
"interface.h".

Undo the rcsid-shuffling and addition of extra #includes, as we no
longer need to arrange that "interface.h" be included before using _U_
in an RCS ID or copyright.
2003-11-16 09:36:07 +00:00
guy
7d83ad1ef8 Escape question marks, to avoid warnings about trigraphs. 2003-11-15 01:08:37 +00:00
guy
65eedd691a Use the right format to print a value as 2 hex digits. 2003-11-15 01:02:02 +00:00
guy
3824a6c041 From Neil Spring:
use "_U_" in the definitions of "rcsid[]", to eliminate
	complaints about those variables being unused;

	move the definitions after the include of "interface.h", or add
	an include of "interface.h", so that "_U_" is defined.

Include "config.h" before including "tcpdump-stdinc.h" in
"missing/datalinks.c".
2003-11-15 00:39:12 +00:00
mcr
0a27c291d0 draft CHANGES file for 3.8. 2003-11-13 04:06:02 +00:00
mcr
78d1d17368 removed people who shouldn't be bugged since they aren't
actively committing code now.
2003-11-13 03:14:55 +00:00
mcr
58b04f7f36 ignore pcap files which are generated from .puu files. 2003-11-12 15:56:22 +00:00
guy
e6174e7742 Fix a typo. 2003-11-08 09:00:51 +00:00
hannes
9005058518 do not attempt to verify the TLV #12 checksum if it is zero - change the way how the authentication start offset for LSPs is determined 2003-11-05 23:11:03 +00:00
risso
36f32e06a3 added print-bfd.c to the Windows VC project 2003-11-05 20:36:16 +00:00
hannes
85175500a1 streamline variables and defines# to a common scheme 2003-11-05 16:40:57 +00:00
guy
f4d64fe38b In mDNS, report IN-class records with the "cache flush" bit set as such,
rather than as "Class 32769".
2003-11-05 06:02:58 +00:00
guy
8f34a01034 Check whether we have "pcap_breakloop()", and use it if we do - it's a
safer way to terminate "pcap_loop()" in a signal handler (it just sets a
flag, it doesn't muck with data structures that might have been in the
middle of being updated).

Have "setsignal()" not request SA_RESTART, so that if we call
"pcap_breakloop()" in a signal handler and then return, we don't restart
a call that was waiting for captured packets, we just make that call
EINTR out.
2003-11-04 07:29:15 +00:00
guy
2b8d32af12 Put in the entry for Scott Rose:
The test for DNS message dnssec bit flags in the query and
	response are backwards.  The CD bit has meaning in a query, and
	the AD bit has meaning in a response.
2003-11-04 01:43:20 +00:00
hannes
3d443ef296 do not attempt to checksum if the LSP has been purged 2003-10-30 00:55:51 +00:00
itojun
9a5f197f7a update from suz@kame.net
* RFC3315: DHCPv6
* supported DHCPv6 options:
*  RFC3319,
*  draft-ietf-dhc-dhcpv6-opt-dnsconfig-04.txt,
*  draft-ietf-dhc-dhcpv6-opt-prefix-delegation-05.txt
*  draft-ietf-dhc-dhcpv6-opt-timeconfig-02.txt,
2003-10-29 03:54:14 +00:00