]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
19 years agoenable support for Address-Withdraw and Label-Withdraw Msgs, fix typos
hannes [Wed, 1 Feb 2006 14:57:43 +0000 (14:57 +0000)] 
enable support for Address-Withdraw and Label-Withdraw Msgs, fix typos

19 years agosquelch warning message for unknown juniper encapulations
hannes [Wed, 1 Feb 2006 14:43:07 +0000 (14:43 +0000)] 
squelch warning message for unknown juniper encapulations

19 years agoadd support for the BFD Discriminator TLV
hannes [Wed, 1 Feb 2006 14:40:39 +0000 (14:40 +0000)] 
add support for the BFD Discriminator TLV

19 years agoadd support for FRF.16 Multilink Frame-Relay (DLT_MFR)
hannes [Wed, 1 Feb 2006 14:39:56 +0000 (14:39 +0000)] 
add support for FRF.16 Multilink Frame-Relay (DLT_MFR)

19 years agoadd support for Cisco style NLPID encapsulation
hannes [Wed, 25 Jan 2006 13:27:24 +0000 (13:27 +0000)] 
add support for Cisco style NLPID encapsulation

19 years agoAdded print-dccp.c to the MSVC and Cygnus makefiles.
gianluca [Sun, 22 Jan 2006 19:12:34 +0000 (19:12 +0000)] 
Added print-dccp.c to the MSVC and Cygnus makefiles.

19 years agobugfix: add hec offset for celltype determination; make use of tok2str() for OAM...
hannes [Sun, 22 Jan 2006 10:23:57 +0000 (10:23 +0000)] 
bugfix: add hec offset for celltype determination; make use of tok2str() for OAM F type printing, unhide OAM elements like (vci,vpi) under eflag

19 years agobugfix: pre-init OUI tokentable to an empty tokentable to prevent a NULL ref and...
hannes [Tue, 17 Jan 2006 17:44:46 +0000 (17:44 +0000)] 
bugfix: pre-init OUI tokentable to an empty tokentable to prevent a NULL ref and subsequent segfault

19 years agoFrom Gisle Vanem: don't use GCC features such as the ability to declare
guy [Mon, 5 Dec 2005 21:48:10 +0000 (21:48 +0000)] 
From Gisle Vanem: don't use GCC features such as the ability to declare
variables in the middle of the block., and #if out dccp_hdr_data()
(which is unused, and defined in such a fashion that it doesn't work on
MSVC++, with the structure name and the function name the same).

19 years agoPropagate from main branch:
guy [Mon, 5 Dec 2005 21:46:37 +0000 (21:46 +0000)] 
Propagate from main branch:

date: 2005-11-04 00:45:39 +0000;  author: hannes;  state: Exp;  lines: +23 -22
from Ian Mc Donald <imcdnzl AT gmail.com>:
  displaying ACKs for close packets

19 years agoAssorted edits.
guy [Mon, 5 Dec 2005 20:11:19 +0000 (20:11 +0000)] 
Assorted edits.

19 years agoadd support for further dissection of the IPCP Compression Option
hannes [Mon, 5 Dec 2005 11:40:36 +0000 (11:40 +0000)] 
add support for further dissection of the IPCP Compression Option

19 years agodisplay I/G bit
hannes [Thu, 1 Dec 2005 18:06:01 +0000 (18:06 +0000)] 
display I/G bit

19 years agobugfix: bogus SS codepoints, display ctrl field correct, added 'Poll' token for I...
hannes [Thu, 1 Dec 2005 17:48:25 +0000 (17:48 +0000)] 
bugfix: bogus SS codepoints, display ctrl field correct, added 'Poll' token for I/S frames

19 years agoadd basic support for keyed authentication TCP option
hannes [Tue, 29 Nov 2005 09:09:26 +0000 (09:09 +0000)] 
add basic support for keyed authentication TCP option

19 years agoclean up the L3 offset calculation for C-HDLC
hannes [Tue, 29 Nov 2005 08:57:10 +0000 (08:57 +0000)] 
clean up the L3 offset calculation for C-HDLC

19 years agoImprove the description of the output of tcpdump.
guy [Thu, 24 Nov 2005 08:15:50 +0000 (08:15 +0000)] 
Improve the description of the output of tcpdump.

19 years agoavoid double printing of "unknown proto" message
hannes [Thu, 24 Nov 2005 07:43:57 +0000 (07:43 +0000)] 
avoid double printing of "unknown proto" message

19 years agoMake it clearer that the hex or hex-and-ASCII dump for "-x", "-xx",
guy [Wed, 23 Nov 2005 05:16:51 +0000 (05:16 +0000)] 
Make it clearer that the hex or hex-and-ASCII dump for "-x", "-xx",
"-X", and "-XX" doesn't *replace* the dissected dump, it *augments* it.

19 years agoClarify the syntax of a network number.
guy [Wed, 23 Nov 2005 04:15:40 +0000 (04:15 +0000)] 
Clarify the syntax of a network number.

19 years agoWe've gotten our IP definitions/declarations from our own "ip.h" for a
guy [Sun, 13 Nov 2005 20:30:18 +0000 (20:30 +0000)] 
We've gotten our IP definitions/declarations from our own "ip.h" for a
while, and it defines IP_MF and IP_DF; we don't need to compensate for
system headers lacking them.

19 years agoUse sizeof to get sizes of various structure members, rather than
guy [Sun, 13 Nov 2005 20:23:09 +0000 (20:23 +0000)] 
Use sizeof to get sizes of various structure members, rather than
hardwiring the sizes (which runs the risk that the hardwired size in the
structure definition and code could get out of sync).

19 years agoFix the sense of a test.
guy [Sun, 13 Nov 2005 20:03:53 +0000 (20:03 +0000)] 
Fix the sense of a test.

19 years agoGet rid of a return value in a void function.
guy [Sun, 13 Nov 2005 19:59:39 +0000 (19:59 +0000)] 
Get rid of a return value in a void function.

19 years agoHave print_llc() clear out the extracted_ethertype argument, rather than
guy [Sun, 13 Nov 2005 12:12:58 +0000 (12:12 +0000)] 
Have print_llc() clear out the extracted_ethertype argument, rather than
having its callers do so - some of its callers *weren't* doing so,
leaving random junk in that argument in some cases.

When checking for "802.3-encapsulated" IPX, check the raw values of the
SSAP and DSAP for 0xFF, don't check them after the low-order bit has
been masked off.

The "flag" values in the LLC header aren't bits, they're combinations of
bits, including the combination "no bits"; don't use "bittok2str()" on
them.  Also, combine the proper bits, namely the C/R bit (which we
weren't combining) and the P/F bit (which we were).

19 years agoHave parse_elements() flag each item as "present (and not truncated)",
guy [Sun, 13 Nov 2005 12:07:44 +0000 (12:07 +0000)] 
Have parse_elements() flag each item as "present (and not truncated)",
"present but truncated", and "not present", and don't have it return an
indication of whether we ran past the end of a packet - instead, have
the routines that handle particular management frame types use macros
that check what the status of a particular tagged parameter is and:

print it if present and not truncated;

skip it if not present;

return a "packet truncated" indication if present but truncated.

This means we handle tagged parameters that aren't present, and print
parameters that are present and not truncated even if there's a
present-but-truncated field after them.

Add some additional bounds checks.

Make the table of rates bigger - there can be more than 8 rates in a
rates tagged parameter.

19 years agoClear out the flags field when parsing the Frame Relay header, rather
guy [Sun, 13 Nov 2005 11:53:56 +0000 (11:53 +0000)] 
Clear out the flags field when parsing the Frame Relay header, rather
than leaving random junk in the lower 16 bits.

19 years agoProperly pass the MF flag and fragment offset to the UDP, TCP, and ICMP
guy [Sun, 13 Nov 2005 11:51:52 +0000 (11:51 +0000)] 
Properly pass the MF flag and fragment offset to the UDP, TCP, and ICMP
print routines.

19 years agoGet rid of an #ifdef - to zero something out with memset, just use
guy [Sat, 12 Nov 2005 22:23:23 +0000 (22:23 +0000)] 
Get rid of an #ifdef - to zero something out with memset, just use
"sizeof something" as the size argument.

19 years agoIf you're going to stuff the result of EXTRACT_32BITS() into a variable,
guy [Thu, 10 Nov 2005 00:43:52 +0000 (00:43 +0000)] 
If you're going to stuff the result of EXTRACT_32BITS() into a variable,
making the variable 32 bits or longer might be a good idea.

19 years agoAdd -Wpointer-arith to the list of warnings we enable with GCC.
guy [Tue, 8 Nov 2005 03:00:52 +0000 (03:00 +0000)] 
Add -Wpointer-arith to the list of warnings we enable with GCC.

19 years agoThe ANSI C Committee sayeth "Thou shalt not add to a pointer to void,
guy [Tue, 8 Nov 2005 02:49:03 +0000 (02:49 +0000)] 
The ANSI C Committee sayeth "Thou shalt not add to a pointer to void,
for a void hath no size".

19 years agoresolve CHDLC proto to name, remove tok2str() lookalive
hannes [Fri, 4 Nov 2005 18:31:08 +0000 (18:31 +0000)] 
resolve CHDLC proto to name, remove tok2str() lookalive

19 years agoadd support for PPP over Frame-Relay
hannes [Fri, 4 Nov 2005 07:17:40 +0000 (07:17 +0000)] 
add support for PPP over Frame-Relay

19 years agocalculate correct length of LCP echo/echo-reply Magic-Num trailing data
hannes [Thu, 3 Nov 2005 07:31:01 +0000 (07:31 +0000)] 
calculate correct length of LCP echo/echo-reply Magic-Num trailing data

19 years agoadd cisco prop. eigrp related, extd. communities
hannes [Wed, 19 Oct 2005 09:28:13 +0000 (09:28 +0000)] 
add cisco prop. eigrp related, extd. communities

19 years agoUniformly use IEEE802_11_TSTAMP_LEN as the 802.11 timestamp length and
guy [Mon, 17 Oct 2005 07:59:17 +0000 (07:59 +0000)] 
Uniformly use IEEE802_11_TSTAMP_LEN as the 802.11 timestamp length and
IEEE802_11_AP_LEN as the length of the previous AP in reassociation
frame.

Before copying variable-length fields from a management frame IE, make
sure the length isn't too large.

19 years agoBefore subtracting a value from a prefix length, make sure the prefix
guy [Sun, 16 Oct 2005 18:17:12 +0000 (18:17 +0000)] 
Before subtracting a value from a prefix length, make sure the prefix
length is >= the value.  (In theory, if that check isn't done, the
prefix length will overflow, and, as it's unsigned, that'd make it very
large, and rejected by the other sanity check - but it's cleaner to
check explicitly.)

In decode_rt_routing_info(), fix the checks for the prefix length -
according to draft-marques-ppvpn-rt-constrain-01, the default route
target has a 0-length prefix, and all others have a length between 32
and 96.

19 years agoFrom Markus Schoepflin: don't use "struct in6_addr" if INET6 isn't
guy [Sun, 16 Oct 2005 08:18:18 +0000 (08:18 +0000)] 
From Markus Schoepflin: don't use "struct in6_addr" if INET6 isn't
defined, because, in that case, "struct in6_addr" probably isn't
defined, either.

Check for too-large bit lengths in TLVs.

19 years agoFrom Noritoshi Demizu: memcmp() returns a value = 0 if the two memory
guy [Sun, 16 Oct 2005 06:05:46 +0000 (06:05 +0000)] 
From Noritoshi Demizu: memcmp() returns a value = 0 if the two memory
regions are =, < 0 if the first memory region is < the second, or > 0 if
the first memory region is > the second, so to check whether two memory
regions are equal, check whether memcmp()'s return value is == 0.

19 years agoPropagate
uid2056 [Thu, 13 Oct 2005 09:17:39 +0000 (09:17 +0000)] 
Propagate

revision 1.3.2.1
date: 2005/10/02 22:29:54;  author: mcr;  state: Exp;  lines: +0 -0
pullup of working test results

for print-X.out and

revision 1.3.2.1
date: 2005/10/02 22:29:55;  author: mcr;  state: Exp;  lines: +0 -0
pullup of working test results

for print-XX.out to print-capX.out and print-capXX.out, and re-remove
print-X.out and print-XX.out, so that they don't collide with
"print-x.out" and "print-xx.out" on systems with case-insensitive file
systems (not only are modern Windows file systems case-insensitive but
case-preserving, so, by default, is HFS+ on OS X, so you can even have
case-insensitivity on UN*X systems).

19 years agobugfix: don't mask the more-fragments bit for ICMP checksum suppression
hannes [Fri, 7 Oct 2005 10:49:28 +0000 (10:49 +0000)] 
bugfix: don't mask the more-fragments bit for ICMP checksum suppression

19 years ago pullup of working test results tcpdump-3.9.5
mcr [Sun, 2 Oct 2005 22:29:51 +0000 (22:29 +0000)] 
pullup of working test results

19 years agodepreciate llcsap_string() as LLC SAP name resolution is now done via a single tokent...
hannes [Thu, 29 Sep 2005 07:46:45 +0000 (07:46 +0000)] 
depreciate llcsap_string() as LLC SAP name resolution is now done via a single tokentable in the LLC printer

19 years agorework the LLC printer:
hannes [Thu, 29 Sep 2005 07:40:12 +0000 (07:40 +0000)] 
rework the LLC printer:
  -remove tok2str() and bittok2str() lookalikes
  -print length field
  -print more self-describing tokensstring
    e.g. "Receiver not ready" instead of "rnr"
  -add codepoint for SNA

19 years agoDon't set the length of the attributes based on the snapshot length,
guy [Mon, 26 Sep 2005 01:02:40 +0000 (01:02 +0000)] 
Don't set the length of the attributes based on the snapshot length,
just add some additional TCHECK/TCHECK2 bounds checks to the code that
dissects attributes and let that handle the snapshot length checks.

Do the length check once per attribute, rather than doing a single check
up front.

Use TCHECK/TCHECK2 and TTEST/TTEST2, so that we print "too short"
indications.  Make the "too short" indications all look the same.

Rename "radius_attr_print()" to "radius_attrs_print()" to make it
clearer that it has a loop to print all attributes, rather than just
printing one attribute.

Add in a bunch of additional bounary/length checks, and do the

As per Steiner Haug, the length of a vendor-specific attribute includes
the type and length bytes, so subtract two from the length to get the
length of the attribute's data.

19 years agoupdate the diffserv-te error-spec codepoints (and retain the old ones)
hannes [Thu, 22 Sep 2005 14:52:40 +0000 (14:52 +0000)] 
update the diffserv-te error-spec codepoints (and retain the old ones)

19 years agoFrom David Smith: let the path for the crypto headers and libraries be
guy [Wed, 21 Sep 2005 16:50:01 +0000 (16:50 +0000)] 
From David Smith: let the path for the crypto headers and libraries be
set explicitly by setting Xprefix as an environment variable, for use
when cross-compiling.

19 years agoretain the old diffserv-te codepoints for a transition period
hannes [Tue, 20 Sep 2005 10:15:21 +0000 (10:15 +0000)] 
retain the old diffserv-te codepoints for a transition period

19 years agoAlso give Yoshifumi Nishida credit for the DCCP printer.
guy [Tue, 20 Sep 2005 07:03:08 +0000 (07:03 +0000)] 
Also give Yoshifumi Nishida credit for the DCCP printer.

19 years agoAdd RCS IDs.
guy [Tue, 20 Sep 2005 06:25:45 +0000 (06:25 +0000)] 
Add RCS IDs.

19 years agoFrom Ian McDonald and Arnaldo Carvalho de Melo: DCCP support.
guy [Tue, 20 Sep 2005 06:05:34 +0000 (06:05 +0000)] 
From Ian McDonald and Arnaldo Carvalho de Melo: DCCP support.

19 years agoList another of Hannes' changes.
guy [Tue, 6 Sep 2005 21:22:11 +0000 (21:22 +0000)] 
List another of Hannes' changes.

19 years agoUpdate to include Hannes' IS-IS changes.
guy [Tue, 6 Sep 2005 21:17:11 +0000 (21:17 +0000)] 
Update to include Hannes' IS-IS changes.

19 years agoBut the PDU length checks back, so "tmp" doesn't go negative.
guy [Mon, 5 Sep 2005 18:21:22 +0000 (18:21 +0000)] 
But the PDU length checks back, so "tmp" doesn't go negative.

At least as I read RFC 3847, you won't get a system ID without the
remaining hold time field; after printing the flags field, check whether
there's anything else after the flag field and, if not, quit, otherwise
print the remaining hold time field and, if present, the system ID field.

19 years agorework the restart signaling TLV printer:
hannes [Mon, 5 Sep 2005 11:16:25 +0000 (11:16 +0000)] 
rework the restart signaling TLV printer:
  -accept TLV length of 1 as this is now perfectly valid as per rfc 3847
  -only attempt to print a trailing system-ID and not a node-ID

19 years agoFrom Michael Shields <[email protected]> via Roman Francoise: spelling
guy [Mon, 5 Sep 2005 09:29:27 +0000 (09:29 +0000)] 
From Michael Shields <[email protected]> via Roman Francoise: spelling
fixes.

19 years agoMention documentation for "pppoed" and "pppoes" filter expressions.
guy [Mon, 5 Sep 2005 09:19:32 +0000 (09:19 +0000)] 
Mention documentation for "pppoed" and "pppoes" filter expressions.

19 years agoDocument the new "pppoed" and "pppoes" filter expressions.
guy [Mon, 5 Sep 2005 09:14:37 +0000 (09:14 +0000)] 
Document the new "pppoed" and "pppoes" filter expressions.

19 years agoClean up documentation of "vlan" filter expression, and document "mpls"
guy [Mon, 5 Sep 2005 08:57:11 +0000 (08:57 +0000)] 
Clean up documentation of "vlan" filter expression, and document "mpls"
filter expression.

19 years agoupdate diffserv-TE codepoints as per rfc4124, code cosmetics: add a few TLV_MINLEN...
hannes [Tue, 23 Aug 2005 11:16:28 +0000 (11:16 +0000)] 
update diffserv-TE codepoints as per rfc4124, code cosmetics: add a few TLV_MINLEN #defines

19 years agoadd support for DLT_JUNIPER{PPP,ETHER,FRELAY,CHDLC} printers
hannes [Tue, 23 Aug 2005 10:29:41 +0000 (10:29 +0000)] 
add support for DLT_JUNIPER{PPP,ETHER,FRELAY,CHDLC} printers

19 years agoAdd some more fixes to the list of changes.
guy [Tue, 23 Aug 2005 03:40:34 +0000 (03:40 +0000)] 
Add some more fixes to the list of changes.

Remove trailing white space.

19 years agoClean up white space, to match main branch.
guy [Tue, 23 Aug 2005 03:18:46 +0000 (03:18 +0000)] 
Clean up white space, to match main branch.

19 years agoFix a test (as per a compiler warning).
guy [Tue, 23 Aug 2005 03:15:51 +0000 (03:15 +0000)] 
Fix a test (as per a compiler warning).

19 years agoUpdate with list of changes for 3.9.4
ken [Fri, 19 Aug 2005 15:28:06 +0000 (15:28 +0000)] 
Update with list of changes for 3.9.4

19 years agoadd support for detection of the extension bit
hannes [Wed, 10 Aug 2005 14:23:07 +0000 (14:23 +0000)] 
add support for detection of the extension bit

19 years ago-share some code between the FRF.15 and FRF.16 printer
hannes [Tue, 9 Aug 2005 20:10:32 +0000 (20:10 +0000)] 
-share some code between the FRF.15 and FRF.16 printer
-display B, E & C header flags in the FRF.16 printer
-evaluate the correct data [!flags] in the FRF.15 printer
  for deciding if the frame is a end-to-end frag or an interface frag

-hexdump MFR middle or last fragments

19 years agoadd support for RSVP integrity objects as per rfc 2747, update fast-reroute obj print...
hannes [Mon, 1 Aug 2005 09:12:39 +0000 (09:12 +0000)] 
add support for RSVP integrity objects as per rfc 2747, update fast-reroute obj printer to latest spec

19 years agoPut calls to print the management frame type in the switch statement,
guy [Sat, 30 Jul 2005 21:37:50 +0000 (21:37 +0000)] 
Put calls to print the management frame type in the switch statement,
rather than having a separate table; this makes it clearer that unknown
manaagement frame types already have a message printed, and that you
have to add a call to print that if a new management frame type is
created.

19 years agoWe already print "Unhandled Management subtype(N)" for management frames
guy [Sat, 30 Jul 2005 18:49:29 +0000 (18:49 +0000)] 
We already print "Unhandled Management subtype(N)" for management frames
we don't handle; there's no need to print "Unknown subtype N" as well.

Revert to using null strings for the unknown management frame types -
that way we don't have to check for a null pointer.

19 years agoMake "subtype_text[]" have 16 elements, for all 16 possible subtypes,
guy [Sat, 30 Jul 2005 00:05:53 +0000 (00:05 +0000)] 
Make "subtype_text[]" have 16 elements, for all 16 possible subtypes,
and make all unknown subtypes have null pointers and, if the pointer for
a subtype is null, print the subtype as "Unknown subtype".

Compute the sizes of the tables of authentication algorithm names,
status code strings, and reason code strings at compile time, and use
those values to check whether the value is in the table or not.  Get rid
of trailing NULL pointers in those tables.

Fix a typo in one reason code string.

19 years ago#ifdef references to various Juniper DLT_ values, so that we can build
guy [Fri, 29 Jul 2005 23:51:37 +0000 (23:51 +0000)] 
#ifdef references to various Juniper DLT_ values, so that we can build
even on systems with older libpcaps that lack them.  (tcpdump isn't
supposed to *require* the corresponding version of libpcap, although it
works best with that version or later.)

19 years agoPointers into packet data should usually be pointers to unsigned 1-byte
guy [Wed, 27 Jul 2005 00:26:39 +0000 (00:26 +0000)] 
Pointers into packet data should usually be pointers to unsigned 1-byte
values.

19 years agoFix the buffer size argument to "snprintf()" in "etheraddr_string()", as
guy [Tue, 26 Jul 2005 17:34:54 +0000 (17:34 +0000)] 
Fix the buffer size argument to "snprintf()" in "etheraddr_string()", as
per Red Hat bug 164227 (although the buffer *should* be big enough).

Clean up indentation, improve a comment, and make a variable that can go
negative, and that doesn't need to be unsigned, signed.

19 years agodon't print the null-termination byte in FRF.16 link/bundle msgs
hannes [Tue, 26 Jul 2005 13:22:30 +0000 (13:22 +0000)] 
don't print the null-termination byte in FRF.16 link/bundle msgs

19 years agolink codeset 1 (lmi messages) to codeset 5, add IE = 0 sanity check, print codeset
hannes [Thu, 21 Jul 2005 11:50:45 +0000 (11:50 +0000)] 
link codeset 1 (lmi messages) to codeset 5, add IE = 0 sanity check, print codeset

19 years agoupdate length,caplen fields when determining the cookie length
hannes [Thu, 21 Jul 2005 11:43:12 +0000 (11:43 +0000)] 
update length,caplen fields when determining the cookie length

19 years agoadd support for MFR FRF.16 IE Message printing, add boundary checks
hannes [Thu, 21 Jul 2005 08:28:28 +0000 (08:28 +0000)] 
add support for MFR FRF.16 IE Message printing, add boundary checks

19 years agoadd support for Frame-Relay over AS-PIC dissector
hannes [Wed, 20 Jul 2005 22:20:54 +0000 (22:20 +0000)] 
add support for Frame-Relay over AS-PIC dissector

19 years agoadd basic support for FRF.16 Frame-Relay dissector, fix garbled output from twice...
hannes [Wed, 20 Jul 2005 22:18:47 +0000 (22:18 +0000)] 
add basic support for FRF.16 Frame-Relay dissector, fix garbled output from twice calling fr_q933_print_ie_codeset

19 years agobugfix: an empty AS-PIC cookie will be interpreted as IPv4 but could be IS-IS
hannes [Wed, 20 Jul 2005 13:13:20 +0000 (13:13 +0000)] 
bugfix: an empty AS-PIC cookie will be interpreted as IPv4 but could be IS-IS

19 years ago fix version for next iteration
mcr [Fri, 15 Jul 2005 19:26:38 +0000 (19:26 +0000)] 
  fix version for next iteration

19 years agoAdded a missing source file (print-slow.c) in the Cygnus and VC6 projects. tcpdump-3.9.3
risso [Wed, 13 Jul 2005 05:58:34 +0000 (05:58 +0000)] 
Added a missing source file (print-slow.c) in the Cygnus and VC6 projects.

19 years agocode cosmetics:
hannes [Mon, 11 Jul 2005 20:24:32 +0000 (20:24 +0000)] 
code cosmetics:
  at places where the entity to print / or increment
  shares the semantics of an IPv4 or IPv6 address
  use sizeof(in_addr) and sizeof(in6_addr),
  rather than a hardcoded 4 or 16

19 years ago adjusted version tcpdump-3.9.2
mcr [Mon, 11 Jul 2005 20:10:32 +0000 (20:10 +0000)] 
   adjusted version

19 years agoInclude the new "slow protocol" printer.
guy [Mon, 11 Jul 2005 17:28:28 +0000 (17:28 +0000)] 
Include the new "slow protocol" printer.

19 years agoupdate change log: add support for LACP, MARKER as per 802.3ad
hannes [Mon, 11 Jul 2005 13:29:58 +0000 (13:29 +0000)] 
update change log: add support for LACP, MARKER as per 802.3ad

19 years agoadd boundary check for CLNP segment header
hannes [Mon, 11 Jul 2005 13:20:35 +0000 (13:20 +0000)] 
add boundary check for CLNP segment header

19 years agoadd support for the IEEE slow protocols LACP, MARKER as per 802.3ad tcpdump-3.9.1
hannes [Sun, 10 Jul 2005 14:47:56 +0000 (14:47 +0000)] 
add support for the IEEE slow protocols LACP, MARKER as per 802.3ad

19 years agoRemoved the inclusion of IP6_misc.h. It's no more needed and it upsets cygnus gcc.
risso [Sat, 9 Jul 2005 21:19:45 +0000 (21:19 +0000)] 
Removed the inclusion of IP6_misc.h. It's no more needed and it upsets cygnus gcc.

19 years agoUpdated a library so that tcpdump links correctly under cygnus.
risso [Sat, 9 Jul 2005 21:18:48 +0000 (21:18 +0000)] 
Updated a library so that tcpdump links correctly under cygnus.

19 years agoFix whitespace to match the main line.
guy [Thu, 7 Jul 2005 01:26:01 +0000 (01:26 +0000)] 
Fix whitespace to match the main line.

19 years agoAdd a flag to suppress the "default_print()" call made in various
guy [Thu, 7 Jul 2005 01:24:32 +0000 (01:24 +0000)] 
Add a flag to suppress the "default_print()" call made in various
link-layer print routines if no other print routine claimed the packet.
Test whether that flag is set rather than testing whether neither of -x
or -q were specified, and have -x, -q, *and* -X set that flag, so that
-X suppresses it just as -x does.  That way you don't get those pckets
dumped twice if -X was specified.

19 years agoHave "ascii_print()" do the "-A" output, and nothing but the "-A"
guy [Wed, 6 Jul 2005 20:54:48 +0000 (20:54 +0000)] 
Have "ascii_print()" do the "-A" output, and nothing but the "-A"
output.  Have "hex_and_ascii_print_with_offset()" and
"hex_and_ascii_print()" to the "-X"-style offset, leaving
"hex_print_with_offset()" and "hex_print()" doing the "-x"-style output.
Don't have any of them check "xflag", "Xflag", or "Aflag" - they print
what they're intended to print, and the caller should check the flags in
question.

Don't have "-A" set "xflag" or "Xflag".

This cleans up some problems with "-A" printing hex informatioin - it's
not supposed to.

19 years agoPropagate to the x.9 branch the change
guy [Wed, 6 Jul 2005 06:49:00 +0000 (06:49 +0000)] 
Propagate to the x.9 branch the change

revision 1.18
date: 2005/06/04 22:08:26;  author: risso;  state: Exp;  lines: +2 -2
Defined INET6 in the Windows project to prevent compilation errors of print-dhcp6.c

19 years ago undo incorrect changes to tcpdump.c
mcr [Tue, 5 Jul 2005 21:09:05 +0000 (21:09 +0000)] 
   undo incorrect changes to tcpdump.c

19 years ago final changes to 3.9.1
mcr [Tue, 5 Jul 2005 21:08:01 +0000 (21:08 +0000)] 
   final changes to 3.9.1

19 years ago-code cosmetics: improve readability by replacing "v" by "label_entry"
hannes [Tue, 5 Jul 2005 09:39:29 +0000 (09:39 +0000)] 
-code cosmetics: improve readability by replacing "v" by "label_entry"
-do multiline formatting for label-stacks deeper than 1
-hide the IPv4/IPv6 printer under the vflag for explicit NULL labels

19 years agoadd GRE and RSVP to the supported IPv6 protos
hannes [Sun, 3 Jul 2005 20:36:33 +0000 (20:36 +0000)] 
add GRE and RSVP to the supported IPv6 protos