Commit Graph

9315 Commits

Author SHA1 Message Date
Guy Harris 29bc812334 Add an hf[] entry for the OPT_FRAG_OFF field of the OPT_FRAGMENT option
(the hf_ variable for it existed, but there was no hf[] entry, so it
didn't get initialized).

svn path=/trunk/; revision=9362
2003-12-19 22:46:16 +00:00
Guy Harris 1feecfa0df Don't store the result of "tvb_reported_length()" into a "guint8" - it
could be more than 255 (even if that "shouldn't happen").

Don't use "frags != 0" as an indication that the message was fragmented
- that can't handle bogus packets with a zero fragment count.  Have an
explicit variable for that.

Check that "sm_data_len" isn't 0 before attempting dissection or
reassembly.

Check that "frag" and "frags" aren't zero before attempting reassembly
(arguably, we should report both of those as errors).

Use "process_reassembled_data()" to do the bulk of the work for
reassembly - it handles the case where a "fragmented" packet has only
one fragment.  This fixes a crash that occurred when only the last
fragment was seen, although there's an underlying problem there, namely
that the hack tha "fragment_add_seq_check()" does to handle some
problems with some 802.11 captures causes it to consider a packet where
the first fragment seen is also the last fragment as a one-fragment
packet; we probably need to do that *only* for 802.11.

svn path=/trunk/; revision=9361
2003-12-19 22:31:40 +00:00
Guy Harris 8b0f0d5b7e Add some additional sanity checking.
svn path=/trunk/; revision=9360
2003-12-19 22:23:05 +00:00
Olivier Biot 21a6fddb35 Add debug logging to the MMSE dissector.
svn path=/trunk/; revision=9359
2003-12-19 20:26:59 +00:00
Olivier Biot a1f13f591e Add extra debug logging. Fix typo in debug log explanation.
svn path=/trunk/; revision=9358
2003-12-19 20:16:04 +00:00
Guy Harris 3adea4e389 From Peter Fales: count IPX-over-ARCNET packets in "capture_arcnet()".
svn path=/trunk/; revision=9357
2003-12-19 19:09:49 +00:00
Guy Harris 87347d7867 Note that "uchar", "u_char", "u_short", "u_int", and "u_long" are also
forbidden.

svn path=/trunk/; revision=9356
2003-12-19 19:08:00 +00:00
Guy Harris b3557944ff Don't use "u_char", use "guchar" for characters and "guint8" for 8-bit
unsigned integers.

svn path=/trunk/; revision=9355
2003-12-19 19:03:13 +00:00
Gilbert Ramirez 2b94a81c2b Remove \n from value-strings.
svn path=/trunk/; revision=9354
2003-12-19 16:42:27 +00:00
Gilbert Ramirez 1cbfbd022b Print values for ANY_MATCHES and ANY_CONTAINS so that the dftest
executable works properly.

svn path=/trunk/; revision=9353
2003-12-19 04:40:24 +00:00
Guy Harris e3753d3d58 The GNU ADNS library requires whatever libraries are needed for socket
calls.

svn path=/trunk/; revision=9352
2003-12-19 01:36:01 +00:00
Guy Harris 3118e2a0c2 As noted by Peter Fales, the offset in "capture_arcnet()" should be 4 if
the extra offset field is present and 2 if it's absent, not the other
way around.

svn path=/trunk/; revision=9351
2003-12-19 01:24:09 +00:00
Guy Harris 95e6fb64c0 Add support for a link-layer type value of 143 as DOCSIS in libpcap
captures.

svn path=/trunk/; revision=9350
2003-12-18 23:50:44 +00:00
Guy Harris e65abd0ef4 Top-of-tree and top-of-0.8-branch libpcap support limited filtering on
DLT_LINUX_IRDA (empty expression and "link[M:N]" expressions), so don't
special-case IRDA adapters.

svn path=/trunk/; revision=9349
2003-12-18 21:18:34 +00:00
Richard Sharpe 0023dcd0e1 A small patch from Kai Krueger <kai@kruegernetz.de> to ensure that we
keep the file name around long enough to use it when saving highlighted
data etc.

svn path=/trunk/; revision=9348
2003-12-18 20:36:45 +00:00
Guy Harris 604aa6faeb Add more files.
svn path=/trunk/; revision=9347
2003-12-18 20:35:40 +00:00
Guy Harris e4c1c73fc5 From Jan Kiszka: add a comment explaining what the IrDA plugin does.
svn path=/trunk/; revision=9346
2003-12-18 20:34:43 +00:00
Guy Harris b8299f0b98 From Jan Kiszka: IrDA support.
svn path=/trunk/; revision=9345
2003-12-18 19:07:14 +00:00
Guy Harris 7993e1aa2e From Ronnie Sahlberg: if the GSSAPI token is empty, don't dissect it.
svn path=/trunk/; revision=9344
2003-12-18 18:18:50 +00:00
Olivier Biot 7b1c1a9497 Add support of the "matches" operator to FT_BYTES and FT_ETHER. I don't think
it would make sense to add PCRE support for byte arrays containing an integer
or an IP address.

Avoid lengthy pointer constructs in cmp_matches().

svn path=/trunk/; revision=9343
2003-12-18 13:02:19 +00:00
Guy Harris a98aa75a58 WildPackets' EtherHelp appears to write EtherPeek-compatible files,
except that the 0x80 bit is turned on in the file version number field.
Turn that bit off before processing that field.

svn path=/trunk/; revision=9342
2003-12-18 03:43:40 +00:00
Guy Harris 7725f5e92d "pcap_compile_nopcap()" has a different signature in recent NetBSD
libpcap than in tcpdump.org libpcap; it's been deprecated for that
reason.  "pcap_open_dead()" has been in libpcap since 0.6, so only for
0.5[.x] will you have "pcap_compile_nopcap()" but not "pcap_open_dead()"
- for now, we use "pcap_open_dead()" rather than
"pcap_compile_nopcap()", and don't do the check for capture filters in
systems with libpcaps that lack "pcap_open_dead()".

svn path=/trunk/; revision=9341
2003-12-18 02:46:45 +00:00
Guy Harris 7f71ceb564 Mallocate buffers for the strings gotten by "get_encoded_strval()" and
"get_encoded_strval()", rather than filling in a fixed-size buffer, so
that we don't overflow the buffer.

svn path=/trunk/; revision=9340
2003-12-18 02:07:26 +00:00
Guy Harris daf2b3a71e Fix some typoes.
svn path=/trunk/; revision=9339
2003-12-18 01:47:42 +00:00
Guy Harris 3021f95346 Make packet offsets, and lengths, "guint".
Put in some sanity checking to make sure we don't go completely crazy if
an offset goes past the length (we should check as the offset is
advanced, but...).

svn path=/trunk/; revision=9338
2003-12-18 00:43:48 +00:00
Guy Harris 40789b0110 Make "ctlfn" a "guint8", as it holds a single-byte value.
svn path=/trunk/; revision=9337
2003-12-18 00:28:39 +00:00
Guy Harris cc500abd21 Use a value_string table for the Status field.
svn path=/trunk/; revision=9336
2003-12-18 00:25:24 +00:00
Guy Harris fe3d05f73e The "cmd" members of "smb_saved_info_t" and "smb_info_t" structures
always contain an SMB command code (SMB requests and responses both have
command codes, so there's no "unknown" out-of-band value); make it a
"guint8".

Make the argument to "decode_smb_name()" a "guint8" as an SMB command
code is passed to it ("guint8" and "unsigned char" are the same types on
all platforms we're likely to deal with, so it's a cosmetic change, not
a semantic one).

Put in an extra "GPOINTER_TO_UINT()" call before casting
"si->sip->extra_info" to "guint16", to squelch compiler warnings.

svn path=/trunk/; revision=9335
2003-12-18 00:18:55 +00:00
Guy Harris a42bed905d Make packet offsets "gint"s rather than "guint8"s.
svn path=/trunk/; revision=9334
2003-12-17 23:54:44 +00:00
Ulf Lamping 1a2ecc19c3 removed some more MSVC warnings (type casting), GTK2 specific
svn path=/trunk/; revision=9333
2003-12-17 23:41:10 +00:00
Ulf Lamping bdcf77c036 removed some more MSVC warnings (type casting)
svn path=/trunk/; revision=9332
2003-12-17 23:35:29 +00:00
Olivier Biot 74f1e5b91b Update the "matches" explanation as it now also works for protocol fields
(FT_TVBUFF). Thanks libpcre for allowing pattern matching in binary data!

svn path=/trunk/; revision=9331
2003-12-17 23:24:49 +00:00
Olivier Biot 8d6c6099d9 Get rid of unused registered header fields. Some white-space changes.
svn path=/trunk/; revision=9330
2003-12-17 22:43:21 +00:00
Olivier Biot d9d5a1e44d Add protocols to the header fields for which the "matches" operator can be
appliedi (PCRE). In fact, all FT_TVBUFF fields.

svn path=/trunk/; revision=9329
2003-12-17 22:42:02 +00:00
Guy Harris 2f2574ca0e Only dissect the key in TKEY RRs if it's present (i.e., has a non-zero
length) - zero-length keys "shouldn't happen", but what the heck....

svn path=/trunk/; revision=9328
2003-12-17 22:30:42 +00:00
Guy Harris ac48df79f2 From Lars Roland: have common code to handle display filter dialogs in
taps, and use that in the H.225 taps.

svn path=/trunk/; revision=9327
2003-12-17 22:13:08 +00:00
Ulf Lamping 1f97bdc27a removed some more MSVC warnings (type casting)
svn path=/trunk/; revision=9326
2003-12-17 22:11:43 +00:00
Ulf Lamping b425517c70 renamed some defines SERVICE_xy to SVCCTL_SERVICE_xy to avoid
"duplicate definition" warnings with win32's winsvc.h

svn path=/trunk/; revision=9325
2003-12-17 21:34:44 +00:00
Guy Harris 4e67fd6bf6 Set "print_args" regardless of whether we're printing the packet detail
or not - it's used if we're printing the hex data.

svn path=/trunk/; revision=9324
2003-12-17 21:11:25 +00:00
Guy Harris 87a30b5b32 From Anders Broman: add a preference setting for the RTSP TCP port.
svn path=/trunk/; revision=9323
2003-12-17 21:03:15 +00:00
Guy Harris 9ee50c5660 There's no need for the "content_type_exist" variable - we can just
check whether "media_type_str" is null.

svn path=/trunk/; revision=9322
2003-12-17 20:52:38 +00:00
Guy Harris 92efccb711 From Anders Broman:
check that there *is* a content type string before using it;

	get rid of some incomplete code for multipart/mixed (it set some
	variables but didn't use them);

	add some incomplete code for handling parameters to Content-Type.

svn path=/trunk/; revision=9321
2003-12-17 20:39:31 +00:00
Guy Harris 1f4d9672ad Get rid of an unused value_string table and unused #defines.
svn path=/trunk/; revision=9320
2003-12-17 20:30:56 +00:00
Ulf Lamping 55e4a8112f removed some MSVC warnings (casting gdouble to gint, which is ok)
svn path=/trunk/; revision=9319
2003-12-17 20:28:49 +00:00
Ulf Lamping c9b6a1bc6c added missing rule for v5ua plugin
svn path=/trunk/; revision=9318
2003-12-17 18:05:27 +00:00
Guy Harris 32b0480d71 For unknown key IDs, show the algorithm symbolically if possible.
svn path=/trunk/; revision=9317
2003-12-17 08:59:15 +00:00
Guy Harris 1ec0e734c0 Update a comment.
svn path=/trunk/; revision=9316
2003-12-17 08:51:36 +00:00
Guy Harris 6b42b76140 Give the key and other lengths and data names that match the names in
RFC 2930.

svn path=/trunk/; revision=9315
2003-12-17 08:40:56 +00:00
Guy Harris 7e7d9b51fa Put the key and other lengths into the protocol tree for TKEY RRs.
svn path=/trunk/; revision=9314
2003-12-17 08:34:07 +00:00
Guy Harris ccf7ade467 Pass "attr_info" to "rd_value_to_str()" - don't look it up again in
"rd_value_to_str()".

Handle a null return from "find_radius_attr_info()".

We don't have to reserve a value type of 0 for "not found in the table"
- a null return from "find_radius_attr_info()" indicates that.

Hoist the code to make the top-level item for an AVP above the check for
an EAP message.

svn path=/trunk/; revision=9313
2003-12-17 07:05:22 +00:00