Commit Graph

4093 Commits

Author SHA1 Message Date
Guy Harris 80d72f8cf3 First tvbuffication change, from Ronnie Sahlberg. Also changes SMB
command names to match later SMB specs.

svn path=/trunk/; revision=4138
2001-11-03 06:56:56 +00:00
Guy Harris f5054cff0d In "addStaticAVP()", add the new entry to the list of AVP types after
it's filled in.

svn path=/trunk/; revision=4137
2001-11-03 04:09:46 +00:00
Guy Harris f62a97cf2d TVBUFF_SUBSET tvbuffs share a "ds_name" with the parent tvbuff, so their
"ds_name"s shouldn't be freed when the tvbuff is freed.  (Thanks and a
tip of the Hatlo hat to the FreeBSD memory allocator for complaining
about multiple frees of the same string.)

svn path=/trunk/; revision=4136
2001-11-03 03:49:34 +00:00
Guy Harris ba06fa6490 More indentation fixes.
svn path=/trunk/; revision=4135
2001-11-03 03:41:35 +00:00
Guy Harris 7adba9a672 Put the error code into the Info column symbolically, if possible.
Put the error message string into the Info column as well.

svn path=/trunk/; revision=4134
2001-11-03 02:25:26 +00:00
Guy Harris 2e0d083172 Put stuff in the Info column regardless of whether we're building a
protocol tree or not.

svn path=/trunk/; revision=4133
2001-11-03 02:19:10 +00:00
Guy Harris 2b2bc176e2 Small fix to include the arrow pixmaps in the distribution, from Andrew
C. Feren.

svn path=/trunk/; revision=4132
2001-11-03 01:56:11 +00:00
Guy Harris 66c2940031 When freeing the "gpa_hfinfo" pointer array, free the array itself, as
well as the structure containing it.

svn path=/trunk/; revision=4131
2001-11-03 01:19:59 +00:00
Guy Harris 0c13da5c70 Rename the "private" member of the "packet_info" structure to
"private_data", to keep C++ compilers from getting heartburn.

svn path=/trunk/; revision=4130
2001-11-03 00:58:52 +00:00
Guy Harris 6d24afcb1f Fix the indentation.
svn path=/trunk/; revision=4129
2001-11-03 00:19:26 +00:00
Gilbert Ramirez 920b294065 Fix leak of ds_name. Thanks to Sirop Erable <matrix_ottawa@yahoo.ca>
svn path=/trunk/; revision=4128
2001-11-02 21:39:34 +00:00
Richard Sharpe 257d8398d1 Ahhh,
That feels better. Some real programming for once.

Guided by Guy, I have cleaned up tftp a bit and added some useful stuff to
the summary line.

svn path=/trunk/; revision=4127
2001-11-02 20:52:59 +00:00
Gilbert Ramirez 0326e32563 Support DLT_CISCO_IOS.
svn path=/trunk/; revision=4126
2001-11-02 13:00:30 +00:00
Guy Harris 5511e79593 Add support for 64-bit signed integers in "int-64bit.[ch]", add an
FT_INT64 type, and make the Diameter dissector use it.

Handle the 64-bit integer types in the display filter semantics checks.

svn path=/trunk/; revision=4125
2001-11-02 10:09:51 +00:00
Guy Harris f1b98e60bc Don't assume that all UNIX platforms have <iconv.h> - explicitly check
whether it's present.

This puts HAVE_ICONV_H in the "config.h" file, so put in an entry for it
in "config.h.win32" - an entry that doesn't define it - and get rid of
the check for WIN32 in "xmlstub.h".

svn path=/trunk/; revision=4124
2001-11-02 10:01:00 +00:00
Guy Harris 4ce74359eb Install the files for the XML Diameter dictionary.
svn path=/trunk/; revision=4123
2001-11-01 21:55:08 +00:00
Guy Harris be7e31be0e From David Frascone: duUpdate to Diameter dissector to load the
dictionary as an XML file rather than building it in, and various
Diameter updates.

svn path=/trunk/; revision=4122
2001-11-01 21:52:44 +00:00
Guy Harris f9ff2a9ab3 Fix some declarations to match the signatures of "tvb_find_guint8()" and
"tvb_pbrk_guint8()".

svn path=/trunk/; revision=4121
2001-11-01 09:53:13 +00:00
Gilbert Ramirez a81c03816c Add an option to show the File Offset of a frame. Not useful for
general packet analyzing, but useful when developing wiretap code or
other such low-level development.
Default preference is *not* to show File Offset.

svn path=/trunk/; revision=4120
2001-11-01 04:00:56 +00:00
Guy Harris b987cb3e5c Display unknown extension types in decimal, not hex (the RFCs give them
in decimal, and the "Extension Type" field is BASE_DEC).

svn path=/trunk/; revision=4119
2001-10-31 22:16:25 +00:00
Guy Harris bb113a607b Support for Mobile IP's use of ICMP Router Advertisements, from David
Frascone.

Small white-space fix.

Display the preference level in router advertisements as signed, not
unsigned, as per RFC 1256, which says it's a "signed, twos-complement
value".

svn path=/trunk/; revision=4118
2001-10-31 22:03:53 +00:00
Guy Harris 97a05828cd Sigh. Well, if you make the function declarations external, that means
that they're external when the plugin is compiled, and there's no
definition to satisfy the extern, so plugins fail to compile.

Add a "plugins/plugin_api_defs.h" header file that defines them, and
include that in one (and only one) source file for a particular plugin.

svn path=/trunk/; revision=4117
2001-10-31 10:40:58 +00:00
Guy Harris e829a56e24 Update the code for the DHCP authentication option to match RFC 3118,
and update the URL for the DHCP parameter value assignments; support a
code of 90 for DHCP authentication, as that's what RFC 3118 specifies.

Show symbolic values for some of the fields in the DHCP authentication
option, and base the decision on whether to dissect the authentication
data as HMAC-MD5 data on whether that's what the protocol and algorithm
field specified.  Show the replay detection value as a 64-bit number
only if it's specified to be a monotonically-increasing counter;
otherwise, just show it as bytes.

svn path=/trunk/; revision=4116
2001-10-31 08:43:09 +00:00
Guy Harris aeb213c55c Bug fixes and enhancements to Mobile IP, from David Frascone.
svn path=/trunk/; revision=4115
2001-10-31 07:58:43 +00:00
Guy Harris 4b0bce7f97 Put "extern" in front of a pile of function declarations.
It makes no difference if they really are function declarations;
however, in plugins, when building on OSes that don't let
dynamically-loaded modules access functions in the main program (e.g.,
Windows), when compiling a plugin, <plugin_api.h> defines the names of
those functions as (*pointer_name), so they turn into declarations of
pointer variables pointing to the functions in question, and, on
platforms with a def/ref model in the linker, if a plugin has more than
one source file that gets linked into the plugin, the linker may get
upset at two definitions of the same variable.

svn path=/trunk/; revision=4114
2001-10-31 07:47:27 +00:00
Guy Harris 8b16a79d8f Add the Ethereal Web site's mirror of WinPcap to the dialog popped up if
you try to capture on Windows without having WinPcap installed.

svn path=/trunk/; revision=4113
2001-10-31 07:11:08 +00:00
Guy Harris dffa2a989a Get rid of a bunch of stuff that was there to support non-tvbuffified
dissectors and that's no longer needed.

svn path=/trunk/; revision=4112
2001-10-31 05:59:20 +00:00
Guy Harris c132bad423 Fix to desegmentation crash, from Ronnie Sahlberg.
svn path=/trunk/; revision=4111
2001-10-30 22:22:26 +00:00
Guy Harris 36facef286 Put in a note telling people NOT to use "tvb_get_ntohl()" or
"tvb_get_letohl()" to fetch IPv4 addresses.

svn path=/trunk/; revision=4110
2001-10-30 21:35:09 +00:00
Guy Harris c31d8f839e Fix a bunch of places where "tvb_get_letohl()" was being used to fetch
IP addresses - either use "tvb_memcpy()", or just use
"proto_tree_add_item()" and leave the fetching up to the core Ethereal
code.

In the DVMRP dissector, replace a bunch of other "proto_tree_add_XXX()"
calls with "proto_tree_add_item()", and use
"tvb_reported_length_remaining()" rather than "tvb_length_remaining()"
(if we didn't capture enough data because the snapshot length was too
low, we *want* an exception to be thrown, so that the frame is marked as
a "Short Frame").

svn path=/trunk/; revision=4109
2001-10-30 21:31:15 +00:00
Guy Harris e3292ecb7c IPv4 addresses should be entered in host byte order, not forced
little-endian byte order.

Use "proto_tree_add_item()" wherever possible.

Get rid of line commented out with a C++ comment, as not all C compilers
accept C++ comments.

Don't put the user name into the protocol tree if it's not there (we
really should do TCP segment reassembly for this, but this is at least a
good first cut).

When checking whether data exists in the packet, use
"tvb_offset_exists()", don't compare the offset in the tvbuf with
"pinfo->len" - "pinfo->len" is the length of the entire packet, not of
the tvbuff.

Fix some references to "pi" to refer to "*pinfo" instead.

svn path=/trunk/; revision=4108
2001-10-30 10:40:38 +00:00
Guy Harris 958b4d6d2c IPv4 addresses should be entered in host byte order, not forced
little-endian byte order.

svn path=/trunk/; revision=4107
2001-10-30 10:18:47 +00:00
Guy Harris 493f2a8279 Small fix to previous patch, from Motonori Shindo.
svn path=/trunk/; revision=4106
2001-10-30 10:16:51 +00:00
Guy Harris 4608fd788f Squelch a GCC complaint.
svn path=/trunk/; revision=4105
2001-10-30 10:15:53 +00:00
Guy Harris 62719c2344 From Shinsuke Suzuki: fix IPv6 PIM checksum computation code to match
draft-ietf-pim-sm-v2-new-03.

svn path=/trunk/; revision=4104
2001-10-30 10:11:00 +00:00
Guy Harris 752e079f12 In "u64toa()":
If the byte being investigated is 0, don't just do a "continue";
	this might be one of the passes on which we have to propagate
	carries, so skip the processing of that byte's bits, but fall
	through to the carry processing.

	In the carry processing loop, don't use "i" as the loop index,
	as we're already using it as the outer loop index.

In "u64toh()", use lower-case letters rather than upper-case letters, as
we use "%x" rather than "%X" to print 8, 16, 24, and 32-bit integral
values in the "proto.c" code.

svn path=/trunk/; revision=4103
2001-10-30 08:39:02 +00:00
Guy Harris 62d224011d Stop using "tvb_get_ntohll()" and "%llX" in the BOOTP dissector, as the
former depends on having "guint64" and the latter depends on
"%ll[douxX]" being what's used to print 64-bit integers, and there are
platforms on which Etheeal runs that don't have "guint64" or that don't
use "%ll[douxX]" to print 64-bit integers.

Get rid of the routines to extract 64-bit integers into "gint64"s and
"guint64"s, as per Ronnie Sahlberg's suggestion, to discourage people
from writing code that won't work on all platforms; they should be using
FT_UINT64, or the routines in "int-64bit.c", instead.

svn path=/trunk/; revision=4102
2001-10-29 21:56:50 +00:00
Guy Harris d850e01b43 Constify arguments and variables.
svn path=/trunk/; revision=4101
2001-10-29 21:53:58 +00:00
Jeff Foster 1afe1af211 Dissector converted to TVBuffers. The changes are originally from
Pia Sahlberg <piabar@hotmail.com.

svn path=/trunk/; revision=4100
2001-10-29 21:45:12 +00:00
Guy Harris d82c74d757 From Ronnie Sahlberg: FT_UINT64 support, code to handle 64-bit integers
without requiring compiler support for them, and updates to the
Diameter, L2TP, NFS, and NLM dissectors to use it and to the ONC RPC
dissector to allow ONC RPC subdissectors to use it.

svn path=/trunk/; revision=4099
2001-10-29 21:13:13 +00:00
Guy Harris e5eee0bd76 Updates from Mike Frisch to reflect NFSv4 protocol changes.
svn path=/trunk/; revision=4098
2001-10-29 20:49:28 +00:00
Guy Harris e157646119 The previous checkin also added PPP compressed datagram support.
svn path=/trunk/; revision=4097
2001-10-29 19:50:53 +00:00
Guy Harris e5276cd0b4 PPP CCP support, from Motonori Shindo.
svn path=/trunk/; revision=4096
2001-10-29 19:48:45 +00:00
Guy Harris 9d75336e38 Clean up another signed vs. unsigned comparison warning - if
"snprintf()" returns a negative number, that's an error, and we assume
"errno" was set and return NULL, otherwise we cast its return value to
"size_t" and compare it with the size of the buffer we were given, and,
if it was bigger, we know that "snprintf()" didn't generate all the
characters it could be cause they wouldn't have fit, so we set "errno"
to ENOSPC and return NULL.

svn path=/trunk/; revision=4095
2001-10-28 01:55:10 +00:00
Guy Harris 1b526aa894 Include <unistd.h>, if we have it, to declare "unlink()".
svn path=/trunk/; revision=4094
2001-10-28 01:51:46 +00:00
Guy Harris 594c839f55 Check, in the configure script in the epan directory, whether we have
"strptime()" and, if not, define NEED_STRPTIME_H.

svn path=/trunk/; revision=4093
2001-10-28 01:27:59 +00:00
Guy Harris 6eb4ae7a7d From Mike Frisch: Win32 systems don't have "strptime()", so we need to
use a replacement "strptime()" on those systems, and thus need to
include "strptime.h" to declare "strptime()".

svn path=/trunk/; revision=4092
2001-10-28 00:57:15 +00:00
Guy Harris facce7278a "ftypes" and "dfilter" should depend on "config.h", so that if it
doesn't exist, or is out of date with respect to "config.h.win32", it's
remade - stuff in "ftypes" and "dfilter" includes "config.h", and it
should get the "config.h" in "epan".

svn path=/trunk/; revision=4091
2001-10-28 00:52:28 +00:00
Guy Harris ad9f7b9566 Section D.4.3 "Generating Cryptographic authentication" of RFC 2328 says
that, when using cryptographic authentication, "The checksum field in
the standard OSPF header is not calculated, but is instead set to 0";
treat a packet checksum value of 0 as meaning "no checksum present".

svn path=/trunk/; revision=4090
2001-10-27 00:47:26 +00:00
Guy Harris e4a7740da3 Handle the 1.3 and 1.4 Content-Type values in WSP, from Tom Uijldert.
svn path=/trunk/; revision=4089
2001-10-26 19:14:51 +00:00