]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
19 years agodo not auto-hexdump loopback packets as the payload is uninteresting
hannes [Fri, 1 Jul 2005 16:16:30 +0000 (16:16 +0000)] 
do not auto-hexdump loopback packets as the payload is uninteresting

19 years agoprint the id field in the echo/echo-reply message
hannes [Fri, 1 Jul 2005 16:13:37 +0000 (16:13 +0000)] 
print the id field in the echo/echo-reply message

19 years agoprint the timestamp in the icmp tstamp reply message in human readable form
hannes [Wed, 22 Jun 2005 13:44:24 +0000 (13:44 +0000)] 
print the timestamp in the icmp tstamp reply message in human readable form

19 years agoJuniper routers do not deliver a heading HEC byte for oam cells: make the OAM printer...
hannes [Mon, 20 Jun 2005 07:45:04 +0000 (07:45 +0000)] 
Juniper routers do not deliver a heading HEC byte for oam cells: make the OAM printer to support both HEC and non-HEC OAM cells

19 years agoThe data in an Echo-Request, Echo-Reply, or Discard-Request packet are
guy [Sat, 18 Jun 2005 23:56:40 +0000 (23:56 +0000)] 
The data in an Echo-Request, Echo-Reply, or Discard-Request packet are
just uninterpreted data; calling it "Unknown Data" makes it sound as if
it's data that shouldn't be there or for which we don't have any code to
interpret it.  Just call it "Data".

The data in a Protocol-Reject packet is the rejected packet; label it as
such.

The data in an Identification packet is a message intended to be
human-readable; print it with "fn_printn()".

19 years agoAdd some sanity checking of the arguments to "print_unknown_data()", as
guy [Thu, 16 Jun 2005 01:19:57 +0000 (01:19 +0000)] 
Add some sanity checking of the arguments to "print_unknown_data()", as
per the problems found by Gerald Combs.

19 years agoAdd some additional length checking, and fix up some other length checks.
guy [Thu, 16 Jun 2005 01:14:52 +0000 (01:14 +0000)] 
Add some additional length checking, and fix up some other length checks.

19 years agoAdd some additional length checking.
guy [Thu, 16 Jun 2005 01:10:35 +0000 (01:10 +0000)] 
Add some additional length checking.

19 years agoWe've already subtracted the fixed 36 bytes from subl, no need to do it
guy [Thu, 16 Jun 2005 01:07:45 +0000 (01:07 +0000)] 
We've already subtracted the fixed 36 bytes from subl, no need to do it
again.

19 years agoAdd some length checking, improve some other length checking, and give
guy [Thu, 16 Jun 2005 00:50:12 +0000 (00:50 +0000)] 
Add some length checking, improve some other length checking, and give
the right error if the RSVP object length isn't a multiple of 4.

19 years agoCheck to make sure PPP options have a minimum length of 2, as the length
guy [Thu, 16 Jun 2005 00:34:20 +0000 (00:34 +0000)] 
Check to make sure PPP options have a minimum length of 2, as the length
includes the lengths of the 1-byte type and length fields.  Thanks and a
tip of the hat to Gerald Combs for catching this one with his
fuzz-testing stuff.

19 years agoupdate the graceful restart TLV printer as per rfc3847
hannes [Mon, 13 Jun 2005 12:58:04 +0000 (12:58 +0000)] 
update the graceful restart TLV printer as per rfc3847

19 years agocheck for cell-relay controlword between the cookie and the OAM payload
hannes [Thu, 9 Jun 2005 08:01:33 +0000 (08:01 +0000)] 
check for cell-relay controlword between the cookie and the OAM payload

19 years agotypo: the codepoint for complete source routing in the sr clnp option is 0x1 and...
hannes [Wed, 8 Jun 2005 06:41:41 +0000 (06:41 +0000)] 
typo: the codepoint for complete source routing in the sr clnp option is 0x1 and not 0x0

19 years agoFrom Albert Chin: handle systems that don't support IPv6.
guy [Tue, 7 Jun 2005 22:06:16 +0000 (22:06 +0000)] 
From Albert Chin: handle systems that don't support IPv6.

19 years agoFrom Albert Chin: get rid of zero-length arrays, not all compilers
guy [Tue, 7 Jun 2005 21:58:47 +0000 (21:58 +0000)] 
From Albert Chin: get rid of zero-length arrays, not all compilers
support them.

19 years agoFrom Albert Chin: don't call "ip6_print()" if it's not available.
guy [Tue, 7 Jun 2005 21:54:33 +0000 (21:54 +0000)] 
From Albert Chin: don't call "ip6_print()" if it's not available.

19 years agoRe-generate with 2.57, just to minimize the changes at this point.
guy [Sat, 4 Jun 2005 09:32:24 +0000 (09:32 +0000)] 
Re-generate with 2.57, just to minimize the changes at this point.

19 years agoUpdate definitions to match libpcap 0.9 as it'd be on Windows.
guy [Fri, 3 Jun 2005 22:34:09 +0000 (22:34 +0000)] 
Update definitions to match libpcap 0.9 as it'd be on Windows.

19 years agoUse pcap_dump_ftell() rather than casting a pcap_dumper_t * to a FILE *
guy [Fri, 3 Jun 2005 22:10:14 +0000 (22:10 +0000)] 
Use pcap_dump_ftell() rather than casting a pcap_dumper_t * to a FILE *
and using ftell(); that won't necessarily work on Windows (if libpcap
was built with a different version of the C runtime library than tcpdump
is), and, even on UN*X, would break if a pcap_dumper_t * were ever made
something other than a FILE *.

Provide a pcap_dump_ftell() implementation that does that cheating cast
for use if libpcap doesn't have it (a pcap_dumper_t * is just a FILE *
on those older versions of libpcap).

19 years agoProtect code for particular Juniper DLT_ values with #ifdefs, so this
guy [Fri, 3 Jun 2005 22:03:48 +0000 (22:03 +0000)] 
Protect code for particular Juniper DLT_ values with #ifdefs, so this
can be compiled with older versions of libpcap.

19 years agoFix to work with autoconf 2.59.
guy [Fri, 3 Jun 2005 21:38:16 +0000 (21:38 +0000)] 
Fix to work with autoconf 2.59.

19 years agobugfix: we truncate the iso nsap strings by one byte, print next-hop length in the...
hannes [Fri, 3 Jun 2005 07:31:43 +0000 (07:31 +0000)] 
bugfix: we truncate the iso nsap strings by one byte, print next-hop length in the MP_REACH attribute

19 years agosplit up the frame-relay printer into
hannes [Fri, 27 May 2005 14:56:52 +0000 (14:56 +0000)] 
split up the frame-relay printer into
fr_if_print and fr_print similar to PPP;
fr_print can be called from outside without supplying a pcap_header;

19 years agoAnd add checks of the NSAP offset.
guy [Wed, 25 May 2005 22:06:41 +0000 (22:06 +0000)] 
And add checks of the NSAP offset.

19 years agoAdd some more length checking.
guy [Wed, 25 May 2005 22:00:00 +0000 (22:00 +0000)] 
Add some more length checking.

19 years agoadd support for the CLNP Security,RR,SR and Padding Options
hannes [Wed, 25 May 2005 07:24:32 +0000 (07:24 +0000)] 
add support for the CLNP Security,RR,SR and Padding Options

20 years agoEXTRACT_32BITS(), like EXTRACT_16BITS(), takes a pointer to the value
guy [Tue, 24 May 2005 07:57:27 +0000 (07:57 +0000)] 
EXTRACT_32BITS(), like EXTRACT_16BITS(), takes a pointer to the value
being extracted as its argument.

For PGM messages, always advance "bp" to point to the beginning of the
options.

The length of OPT_FRAGMENT is 16, not 12.

Show the option type without the "end of options" bit.

Fix the message type in "Bad XXX option" messages.

20 years agoDo some additional sanity checking.
guy [Mon, 23 May 2005 21:39:16 +0000 (21:39 +0000)] 
Do some additional sanity checking.

The first option must be an OPT_LENGTH option; make sure it is, and use
that length when processing the option list, rather than just running to
the end of the packet or an OPT_END, whichever comes first.

20 years agoadd basic support for DLT_JUNIPER_{GGSN,ES,MONITOR,SERVICES}, better boundary checkin...
hannes [Mon, 23 May 2005 06:28:56 +0000 (06:28 +0000)] 
add basic support for DLT_JUNIPER_{GGSN,ES,MONITOR,SERVICES}, better boundary checking when parsing the juniper headers

20 years agoadd basic support for DLT_JUNIPER_{GGSN,ES,MONITOR,SERVICES}, better boundary checkin...
hannes [Sun, 22 May 2005 21:25:41 +0000 (21:25 +0000)] 
add basic support for DLT_JUNIPER_{GGSN,ES,MONITOR,SERVICES}, better boundary checking when parsing the juniper headers

20 years agoAdded print-pgm.c to the WinDump gcc project.
risso [Sun, 22 May 2005 17:12:42 +0000 (17:12 +0000)] 
Added print-pgm.c to the WinDump gcc project.

20 years agoAdded print-pgm.c to the WinDump VC6 project.
risso [Sun, 22 May 2005 17:09:52 +0000 (17:09 +0000)] 
Added print-pgm.c to the WinDump VC6 project.

20 years agoAdd the new print-pgm.c file to the FILES file (so that it's included in
guy [Sat, 21 May 2005 20:19:03 +0000 (20:19 +0000)] 
Add the new print-pgm.c file to the FILES file (so that it's included in
the release tarball) and the INSTALL file.

20 years agofrom Andy Heffernan <[email protected]>:
hannes [Fri, 20 May 2005 21:15:44 +0000 (21:15 +0000)] 
from Andy Heffernan <[email protected]>:
 add PGM upport as per rfc3208

20 years agoPrint the link-layer header for packets with an unknown AF value, as it
guy [Thu, 19 May 2005 07:26:18 +0000 (07:26 +0000)] 
Print the link-layer header for packets with an unknown AF value, as it
used to do.

When printing the link-layer header, interpret the "-q" flag, and print
the packet length, similarly to the way the Ethernet print routine does.

20 years agoFrom Manu Pathak: add support for LMP Service Discovery extensions
guy [Thu, 19 May 2005 06:44:02 +0000 (06:44 +0000)] 
From Manu Pathak: add support for LMP Service Discovery extensions
(defined in the UNI 1.0 spec).

20 years agoGet rid of duplicate DLT_JUNIPER_PPPOE entry.
guy [Thu, 19 May 2005 00:57:27 +0000 (00:57 +0000)] 
Get rid of duplicate DLT_JUNIPER_PPPOE entry.

20 years agowrong offset for functype calculation
hannes [Wed, 18 May 2005 20:25:47 +0000 (20:25 +0000)] 
wrong offset for functype calculation

20 years agocopy&paste error: decode_labeled_clnp_ was intended to be decode_clnp_
hannes [Wed, 18 May 2005 20:03:19 +0000 (20:03 +0000)] 
copy&paste error: decode_labeled_clnp_ was intended to be decode_clnp_

20 years agoremove null_print() and make use of tok2str() instead; proto names taken from etherty...
hannes [Wed, 18 May 2005 13:56:28 +0000 (13:56 +0000)] 
remove null_print() and make use of tok2str() instead; proto names taken from ethertype_values

20 years agoadd support for the atm-cell-relay control word
hannes [Tue, 17 May 2005 09:38:49 +0000 (09:38 +0000)] 
add support for the atm-cell-relay control word

20 years ago"ipproto.h" uses "struct tok", and "interface.h" defines it; always
guy [Sat, 14 May 2005 00:42:53 +0000 (00:42 +0000)] 
"ipproto.h" uses "struct tok", and "interface.h" defines it; always
include "interface.h" before "ipproto.h".

20 years agoFix up the bounds checking for NetBIOS-over-TCP. Among other things,
guy [Fri, 13 May 2005 23:39:28 +0000 (23:39 +0000)] 
Fix up the bounds checking for NetBIOS-over-TCP.  Among other things,
this means that we don't go past the end of the captured data when
dumping raw packet data and that we distinguish between "this packet was
cut off by the snapshot length" and "this packet is continued in a
subsequent TCP segment".

20 years agoadd support for AS-PIC cookies
hannes [Thu, 12 May 2005 08:42:46 +0000 (08:42 +0000)] 
add support for AS-PIC cookies

20 years agoadd support for DLT_JUNIPER_PPPOE_ATM printer
hannes [Thu, 12 May 2005 07:23:04 +0000 (07:23 +0000)] 
add support for DLT_JUNIPER_PPPOE_ATM printer
replace the JUNIPER_ enums with real DLT_JUNIPER types
  (does this break environments where an old libpcap is present ?)

20 years agodo not dependend on eflag setting wether to copy cookie data or not - e.g. the atm...
hannes [Tue, 10 May 2005 10:47:47 +0000 (10:47 +0000)] 
do not dependend on eflag setting wether to copy cookie data or not - e.g. the atm printer needs to access the cookies

20 years ago-make the PPP printer multiline (behind vflag)
hannes [Sun, 8 May 2005 21:01:25 +0000 (21:01 +0000)] 
-make the PPP printer multiline (behind vflag)
-make more use of tok2str()
-improve unknown option hexprinting

20 years agoFix up the bounds checking for NetBIOS-over-TCP. Among other things,
guy [Sun, 8 May 2005 20:01:09 +0000 (20:01 +0000)] 
Fix up the bounds checking for NetBIOS-over-TCP.  Among other things,
this means that we don't go past the end of the captured data when
dumping raw packet data and that we distinguish between "this packet was
cut off by the snapshot length" and "this packet is continued in a
subsequent TCP segment".

20 years agoFix the bounds check for the chunk.
guy [Fri, 6 May 2005 10:53:20 +0000 (10:53 +0000)] 
Fix the bounds check for the chunk.

20 years agoBounds-check the individual components of a SAP reply.
guy [Fri, 6 May 2005 08:27:00 +0000 (08:27 +0000)] 
Bounds-check the individual components of a SAP reply.

Make "fn_printzp()" return 0 if we don't run past the end of the packet
and we don't find any padding NULs.

20 years agoAdd an "fn_printzp()" routine for printing null-padded strings (strings
guy [Fri, 6 May 2005 07:57:17 +0000 (07:57 +0000)] 
Add an "fn_printzp()" routine for printing null-padded strings (strings
with a maximum length, where a string shorter than that length is padded
with NULs), as "fn_print()" won't handle the maximum length *and* the
snapshot length and "fn_printn()" won't stop on a null string.  Use it
where appropriate.

Always pass "snapend" to "fn_print()" and "fn_printn()" if they're
passed a pointer into the packet data; only pass NULL if they're being
handed a pointer into a buffer that's not part of the packet data.

Always check the return value of "fn_print()", "fn_printn()", and
"fn_printzp()" if they're passed "snapend", and do the appropriate
string termination and "packet truncated" indication if they return 1.

20 years agoDo more bounds checking.
guy [Fri, 6 May 2005 04:19:39 +0000 (04:19 +0000)] 
Do more bounds checking.

20 years agoUse TCHECK2() rather than "if(!TTEST()) goto trunc".
guy [Fri, 6 May 2005 02:53:41 +0000 (02:53 +0000)] 
Use TCHECK2() rather than "if(!TTEST()) goto trunc".

Make some length and type values unsigned, as they can't be negative.
Don't check for them being negative.

Check for a TLV length less than the TLV header length.

20 years agoAdd a bunch of bounds checks.
guy [Fri, 6 May 2005 02:16:53 +0000 (02:16 +0000)] 
Add a bunch of bounds checks.

Don't bother copying the route header - we're using the EXTRACT_ macros,
so we don't have to worry about alignment.

Use the length field from the packet, not just the length of the
containing packet, and check to make sure the containing packet is long
enough to contain it.

Add a bunch of checks against the packet length.

In "default_print()" calls, cut the length off at the captured data
length.  In other calls, don't - let the bounds checks handle caplen <
length.

20 years agoAdd more bounds checks, and check for bogus chunk lengths (too short).
guy [Thu, 5 May 2005 23:08:59 +0000 (23:08 +0000)] 
Add more bounds checks, and check for bogus chunk lengths (too short).

20 years agoAdd bounds checking and other sanity checking.
guy [Thu, 5 May 2005 22:49:34 +0000 (22:49 +0000)] 
Add bounds checking and other sanity checking.

If "decode_prefix4()" returns -1, quit any loop using it to return the
length of an item.

20 years agoAlways check for "smb_fdata()" returning null - for example, check it on
guy [Thu, 5 May 2005 22:30:40 +0000 (22:30 +0000)] 
Always check for "smb_fdata()" returning null - for example, check it on
every iteration of a loop.

20 years agoAdded some new files to the cygnus and MSVC makefiles. The cignus makefile
risso [Wed, 4 May 2005 19:22:50 +0000 (19:22 +0000)] 
Added some new files to the cygnus and MSVC makefiles. The cignus makefile
still doesn't work because of the missing support for getnameinfo() into the
official release of cygwin.

20 years agoAdded again some #define's for MSVC compilers that were wrongly removed.
risso [Wed, 4 May 2005 19:20:20 +0000 (19:20 +0000)] 
Added again some #define's for MSVC compilers that were wrongly removed.

20 years agoadd support for DLT_JUNIPER_PPPOE, fix zero-length cookies
hannes [Tue, 3 May 2005 20:39:25 +0000 (20:39 +0000)] 
add support for DLT_JUNIPER_PPPOE, fix zero-length cookies

20 years agoadd boundary, infinite loop checks
hannes [Tue, 3 May 2005 08:23:07 +0000 (08:23 +0000)] 
add boundary, infinite loop checks

20 years agochange vendor private codepoint
hannes [Tue, 3 May 2005 08:12:31 +0000 (08:12 +0000)] 
change vendor private codepoint

20 years agoDocument "radio[M:N]".
guy [Mon, 2 May 2005 21:27:34 +0000 (21:27 +0000)] 
Document "radio[M:N]".

20 years agoauthentication present flag is 0x04 and not 0x40
hannes [Thu, 28 Apr 2005 09:28:47 +0000 (09:28 +0000)] 
authentication present flag is 0x04 and not 0x40

20 years agodo proper masking and shifting of the flag bits
hannes [Thu, 28 Apr 2005 07:31:02 +0000 (07:31 +0000)] 
do proper masking and shifting of the flag bits

20 years agoboundary check for authentication header
hannes [Wed, 27 Apr 2005 23:15:27 +0000 (23:15 +0000)] 
boundary check for authentication header

20 years agoadd support for BFDv1 as per draft-ietf-bfd-base-02
hannes [Wed, 27 Apr 2005 23:01:38 +0000 (23:01 +0000)] 
add support for BFDv1 as per draft-ietf-bfd-base-02

20 years agoGet rid of the multiple-include protection in our RPC headers, so we
guy [Wed, 27 Apr 2005 21:44:06 +0000 (21:44 +0000)] 
Get rid of the multiple-include protection in our RPC headers, so we
include them even if we also happen to have included system RPC headers,
as we want *our* versions of the structures (which use types with
explicit sizes for structure members, as we use them for on-the-wire
data).

Change pmap_prot.h to prefix all #defines and structure names with
"SUNRPC_" or "sunrpc_", to avoid collisions with any definitions and
structure names from the system header files.

20 years agoadditional check against zero length messages
hannes [Wed, 27 Apr 2005 18:56:51 +0000 (18:56 +0000)] 
additional check against zero length messages

20 years agoadd tracefiles for infinite loop testing
hannes [Wed, 27 Apr 2005 18:53:12 +0000 (18:53 +0000)] 
add tracefiles for infinite loop testing

20 years agoadd testfile for a normal sized slarp frame
hannes [Wed, 27 Apr 2005 14:50:45 +0000 (14:50 +0000)] 
add testfile for a normal sized slarp frame

20 years agomake sure that there are the full four timestamp bytes available
hannes [Wed, 27 Apr 2005 14:35:56 +0000 (14:35 +0000)] 
make sure that there are the full four timestamp bytes available

20 years agoadd testfile for a truncated slarp frame
hannes [Wed, 27 Apr 2005 14:34:25 +0000 (14:34 +0000)] 
add testfile for a truncated slarp frame

20 years agoFrom Alexander Dupuy: don't define our own [hn]to[nh][sl] macros if
guy [Wed, 27 Apr 2005 01:13:46 +0000 (01:13 +0000)] 
From Alexander Dupuy: don't define our own [hn]to[nh][sl] macros if
__ntohl is defined; __ntohl is defined in some OSes as a special asm
function that does the same sort of fast byte swapping, and that gets in
the way of our so defining it.

20 years agoAccording to RFC 2516, use of the End-Of-List tag is not required, and
guy [Tue, 26 Apr 2005 19:48:56 +0000 (19:48 +0000)] 
According to RFC 2516, use of the End-Of-List tag is not required, and
at least one PPPoE implementation doesn't put that tag into the tag
list, so we can't ignore the payload length.

20 years agoCall the maximum length #define SLARP_MAX_LEN rather than SLARP_LEN, to
guy [Tue, 26 Apr 2005 19:08:45 +0000 (19:08 +0000)] 
Call the maximum length #define SLARP_MAX_LEN rather than SLARP_LEN, to
better reflect what it is.

20 years agodifferentiate between SLARP_LEN and SLARP_MIN_LEN - otherwise we do print the trailin...
hannes [Tue, 26 Apr 2005 09:42:44 +0000 (09:42 +0000)] 
differentiate between SLARP_LEN and SLARP_MIN_LEN - otherwise we do print the trailing-junk message for all short frames (and we should it print for frames > 18

20 years agoMake "snap_print()" handle fetching and printing the OUI.
guy [Tue, 26 Apr 2005 07:27:15 +0000 (07:27 +0000)] 
Make "snap_print()" handle fetching and printing the OUI.

Don't copy the LLC header to a "struct llc", just construct the
individual fields.

Fetch the control field early in the dissection process, and check to
make sure we have at least 4 bytes of LLC header if it's not a U frame.
Fetch both bytes of the control field for I and S frames, and display
all 4 hex digits of it.

Only dissect UI frames as BPDUs, and pass the BPDU dissector a pointer
to the beginning of the BPDU, not the beginning of the LLC header - not
all BPDUs are encapsulated in LLC headers.

Only dissect UI frames as IP packets.

Do bounds checking in "snap_print()".

20 years agoDon't print ", " before the length if we're printing the link-layer
guy [Tue, 26 Apr 2005 07:14:25 +0000 (07:14 +0000)] 
Don't print ", " before the length if we're printing the link-layer
header, as the ", " isn't necessary, and looks ugly, in that case.

Use TCHECK() and TCHECK2() for bounds checking, and do more bounds
checking.

20 years agoDon't print the LLC header stuff if it's an 802.3 IPX frame - there
guy [Tue, 26 Apr 2005 03:52:00 +0000 (03:52 +0000)] 
Don't print the LLC header stuff if it's an 802.3 IPX frame - there
isn't an LLC header on those frames.

20 years agoDon't run past the end of the data when printing unknown data.
guy [Tue, 26 Apr 2005 03:44:36 +0000 (03:44 +0000)] 
Don't run past the end of the data when printing unknown data.

20 years agoProperly terminate a "struct tok" list.
guy [Tue, 26 Apr 2005 03:38:45 +0000 (03:38 +0000)] 
Properly terminate a "struct tok" list.

Add more "struct tok" tables for SNAP PIDs.

Don't print the source and/or destination addresses and SAPs for
undecoded packets if we printed them already with the "-e" flag.

20 years agoDon't show the packet type as an Ethernet type if it's not one.
guy [Tue, 26 Apr 2005 00:16:43 +0000 (00:16 +0000)] 
Don't show the packet type as an Ethernet type if it's not one.

20 years agoAdd some missing braces.
guy [Mon, 25 Apr 2005 19:28:56 +0000 (19:28 +0000)] 
Add some missing braces.

20 years agoDereference the *right* function pointer.
guy [Mon, 25 Apr 2005 19:17:50 +0000 (19:17 +0000)] 
Dereference the *right* function pointer.

20 years agoFrom Albert Chin: IBM's C compiler, at least for AIX 4.3.3, doesn't
guy [Mon, 25 Apr 2005 18:55:01 +0000 (18:55 +0000)] 
From Albert Chin: IBM's C compiler, at least for AIX 4.3.3, doesn't
allow a trailing comma on the last member of an enum.

20 years agoAdd a bunch of error checking.
guy [Mon, 25 Apr 2005 18:51:52 +0000 (18:51 +0000)] 
Add a bunch of error checking.

20 years agoHave separate "struct tok" PID-to-name tables for different OUIs; don't
guy [Mon, 25 Apr 2005 17:57:15 +0000 (17:57 +0000)] 
Have separate "struct tok" PID-to-name tables for different OUIs; don't

20 years agoGet rid of some extra blanks.
guy [Mon, 25 Apr 2005 17:30:16 +0000 (17:30 +0000)] 
Get rid of some extra blanks.

20 years agoBase all interpretion of IE contents on the code set.
guy [Mon, 25 Apr 2005 16:29:18 +0000 (16:29 +0000)] 
Base all interpretion of IE contents on the code set.

Get rid of an extra blank.

20 years agoDon't dump core if a null "struct tok" array pointer is passed to
guy [Mon, 25 Apr 2005 16:15:07 +0000 (16:15 +0000)] 
Don't dump core if a null "struct tok" array pointer is passed to
"tok2strbuf()".

20 years agobugfix: prevent infinite loop in ERO processing, print ERO subtype length
hannes [Mon, 25 Apr 2005 13:19:34 +0000 (13:19 +0000)] 
bugfix: prevent infinite loop in ERO processing, print ERO subtype length

20 years agocheck against min. TLV length / get if logic right
hannes [Mon, 25 Apr 2005 10:43:24 +0000 (10:43 +0000)] 
check against min. TLV length / get if logic right

20 years agobugfix: do not attempt to decode zero-length TLVs, only attempt to decode IS-REACH...
hannes [Mon, 25 Apr 2005 09:11:04 +0000 (09:11 +0000)] 
bugfix: do not attempt to decode zero-length TLVs, only attempt to decode IS-REACH (varlength) TLVs if the TLV length indicates that there is at least a single byte on the wire

20 years agoDon't exit just because an NSAP had a length of 0 or a too-long length;
guy [Mon, 25 Apr 2005 08:43:05 +0000 (08:43 +0000)] 
Don't exit just because an NSAP had a length of 0 or a too-long length;
just report it as an illegal length.

Check for some zero-length or too-short TLVs not already checked for.

20 years agoSplit a line to match the way it's split in libpcap's configure.in.
guy [Sun, 24 Apr 2005 01:36:19 +0000 (01:36 +0000)] 
Split a line to match the way it's split in libpcap's configure.in.

20 years agoAlbert Chin's patch to libpcap's configure.in:
guy [Sun, 24 Apr 2005 01:26:27 +0000 (01:26 +0000)] 
Albert Chin's patch to libpcap's configure.in:

AC_CHECK_DECLS will define the HAVE_DECL_xxx variable whether it
succeeds or fails, so you can't erase a "no" result and try
again with a different header.  Use AC_CHECK_DECL, which doesn't
define HAVE_DECL_xxx, and then explicitly define it based on
whether we found a declaration or not.

is required for tcpdump's configure.in as well.

20 years agoGive a URL for the Zephyr protocol spec.
guy [Thu, 21 Apr 2005 06:51:24 +0000 (06:51 +0000)] 
Give a URL for the Zephyr protocol spec.

20 years agoSquelch some unsigned vs. signed warnings.
guy [Thu, 21 Apr 2005 06:44:57 +0000 (06:44 +0000)] 
Squelch some unsigned vs. signed warnings.