Commit Graph

7889 Commits

Author SHA1 Message Date
Guy Harris d91aa1afdf If the UDP datagram is included in an error packet, don't dissect the
payload if there isn't any.  (We do so for real UDP datagrams so that we
throw an exception; the exception doesn't cause anything to be displayed
if we're dissecting something inside an error packet.)

svn path=/trunk/; revision=7779
2003-06-04 08:43:30 +00:00
Guy Harris c7c20a6724 Don't use fields in the packet for subtree items - create a separate
subtree item.

Have "ndps_string()" take a buffer pointer and length as arguments, and
fill in the supplied buffer if the buffer pointer is non-null.  Have it
do bounds checking in any case.  Use that to set the text of a server
info item, and also remove a level from the tree for server info.

Show various item counts and structure sizes in the protocol tree.
(This also, in some cases, fixes the offset for subsequent items, as not
only was the item count not put into the protocol tree, the offset
wasn't advanced past the item count.)

Instead of putting an item into the tree with "proto_tree_add_item()",
advancing the offset past it, and fetching the item's value with a
backed-off offset, just fetch the value first and put it into the tree
with the appropriate "proto_tree_add_XXX" call.  Use switch statements
if the value is being compared against more than one constant.

Don't use a length of 0 in subtree items; use a length of -1, and then
set the length when the subtree is complete, so that if you click on the
subtree item it highlights all the bytes in the subtree.

Fix some "proto_tree_add_uint()" calls that were supposed to be
"proto_tree_add_item()" calls.

In a "Create job" operation, the alignment after the "Doc Content" item
had an extra 2 bytes added if it was non-zero; that seems a bit odd (if
no alignment is required, the stuff after that item is aligned on a
4-byte boundary, but if alignment is required, the stuff after that
items is aligned 2 bytes *off of* a 4-byte boundary), and caused at
least one capture to be misdissected.

Fix some cases where a counted list was inside a counted list, and the
inner count wasn't being fetched *or* used for the inner list.

Display counts in decimal, not hex.

Remove the question mark from the name of a Boolean preference; other
Boolean preferences don't have them, and it looks odd with a colon after
it - that's what the GUI code puts there.  If Boolean preferences should
have a question mark, it should be put there by the GUI code, instead of
a colon.

svn path=/trunk/; revision=7778
2003-06-04 08:38:09 +00:00
Guy Harris 53c2e25a9f There can be more than one DCE RPC call per frame, e.g. there can be
multiple NetBIOS-over-TCP session service messages in a TCP segment, and
they can contain the final portions of different DCERPC calls.  Don't
assume a frame number is sufficient to identify DCE RPC calls.

svn path=/trunk/; revision=7777
2003-06-04 05:41:37 +00:00
Guy Harris 1c5696f297 Give Niels Koot credit.
svn path=/trunk/; revision=7776
2003-06-04 00:14:47 +00:00
Guy Harris 4875604484 Fix up some comments, and move some common GLib 1.2[.x]/2.x code outside
#ifdefs.

svn path=/trunk/; revision=7775
2003-06-04 00:11:02 +00:00
Guy Harris 6d93e14208 Fix a comment.
svn path=/trunk/; revision=7774
2003-06-03 23:49:59 +00:00
Michael Tüxen cf0b21e038 - fixed a BUG in the handling of the global title address parameter
- added support of subdissectors.

Patch provided by Niels.Koot@logicacmg.com

svn path=/trunk/; revision=7773
2003-06-03 16:00:37 +00:00
Gerald Combs bdec82ce59 From Lars Roland: Update the plugin API for Glib/GTK+ 2.2 and have NSIS
remove the Start menu entries and desktop icon.

svn path=/trunk/; revision=7772
2003-06-03 02:32:56 +00:00
Gerald Combs d0844ac0c1 Magic number adjustments, from Yaniv Kaul.
svn path=/trunk/; revision=7771
2003-06-03 02:21:08 +00:00
Gerald Combs 035e8c1cd2 From Jeff Liu: Add support for WPA (Wi-Fi Protected Access) key in EAPOL
frames and WPA IE in 802.11 beacon and probe response frames.

svn path=/trunk/; revision=7770
2003-06-03 01:20:14 +00:00
Gerald Combs f755cf5034 Add GNU ADNS to the Windows build environment. A precompiled DLL can be
found at

	http://adns.jgaa.com/

and

	http://www.ethereal.com/distribution/win32/development/

The modifications to the root-level config.h.win32 and Makefile.nmake
may not be neccessary.

svn path=/trunk/; revision=7769
2003-06-02 18:40:02 +00:00
Tim Potter 4eaff6dc18 Dissect a netlogon credential as eight FT_BYTES rather than two guint32
quantities.

svn path=/trunk/; revision=7768
2003-06-02 03:53:32 +00:00
Richard Sharpe 47817bcb26 Fix a small segmentation fault if we get an ASN.1 parse error, and
start to work on kerberos flags etc.

Also prettied up the case where the responseToken was an empty string.

svn path=/trunk/; revision=7767
2003-06-01 20:34:20 +00:00
Ronnie Sahlberg 63884147dd Update SAMR to change the last few calls to dissect a context handle to
use dissect_nt_policy_hnd() instead.

svn path=/trunk/; revision=7766
2003-05-30 23:44:13 +00:00
Ronnie Sahlberg ecc98ba7fc Some minor updates to LSA.
* Add a few missing dissections of return codes in reply packets
* fix a problem in LsaQuerySecret where two of the parameters are actually
unique pointer to unique pointer to object and not just one level of pointers.
* update the dissection of LSA_SECRET to look more correct in some captures.

Anyone that knows the content of the LSA_SECRET object is welcome to mail a description to me.

svn path=/trunk/; revision=7765
2003-05-30 11:30:09 +00:00
Guy Harris c48ce9b402 From tz: decode the base-64 string for HTTP Basic authorization.
svn path=/trunk/; revision=7764
2003-05-30 03:11:45 +00:00
Guy Harris eb9ef15711 From Steven Lass: if there is no whitespace after the colon in a header,
don't try to eat the non-existent whitespace.

svn path=/trunk/; revision=7763
2003-05-29 18:29:36 +00:00
Guy Harris e43ca5a763 Add the MSRPC ATSVC interface.
svn path=/trunk/; revision=7762
2003-05-29 17:59:51 +00:00
Gerald Combs 2d54e2cea4 Add packet-dcerpc-atsvc.h to the header list.
svn path=/trunk/; revision=7761
2003-05-29 14:05:41 +00:00
Guy Harris d2f3215b6f COTP reassembly, from Laurent Meyer.
svn path=/trunk/; revision=7760
2003-05-28 22:58:46 +00:00
Richard Sharpe dbce18c42a Add the MSRPC ATSVC interface. Code courtesy of Jean-Baptiste Marchand.
svn path=/trunk/; revision=7759
2003-05-28 22:43:57 +00:00
Guy Harris 2573a5527a From Laurent Rabret: use "g_free()", not "free()", to free stuff
allocated with "g_malloc()" and related GLib routines.

svn path=/trunk/; revision=7758
2003-05-28 22:40:19 +00:00
Guy Harris 28c73939f3 From Laurent Rabret: show checksum status in a sub-item for the checksum
field, and add a "bad checksum" filterable field.

svn path=/trunk/; revision=7757
2003-05-28 22:39:14 +00:00
Guy Harris a455f27db0 From Hannes Gredler:
- fix a typo
	- correctly hook-in capability notification subcodes
	    in the *bgpnotify_minor[] array
	- add support for draft-ietf-idr-cease-subcode-02

svn path=/trunk/; revision=7756
2003-05-28 20:59:46 +00:00
Gerald Combs 5ec3a96afa Update Anand Narwani's email address.
svn path=/trunk/; revision=7755
2003-05-28 14:52:53 +00:00
Gerald Combs 578640772d Use freopen() instead of worrying about whether a particular FILE pointer is
NULL.

svn path=/trunk/; revision=7754
2003-05-28 01:09:57 +00:00
Guy Harris 10e7b49b11 From Graeme Hewson: fix the declaration of "open_routines[]".
svn path=/trunk/; revision=7753
2003-05-27 10:42:22 +00:00
Guy Harris fdb0e20f13 Make "vms_check_file_type()" seek back to the beginning of the line that
matched if it succeeds, so that it gets re-read when we read the capture
file - it's a line containing a time stamp for a packet, so we need to
re-read it to get that time stamp.

svn path=/trunk/; revision=7752
2003-05-27 10:14:06 +00:00
Guy Harris bc24ddab67 Put back the stuff for connection-oriented data to show fragment data as
"Fragment data (N bytes)" if we aren't dissecting it.

svn path=/trunk/; revision=7751
2003-05-27 09:22:27 +00:00
Guy Harris 540345e8c1 Fix typoes.
svn path=/trunk/; revision=7750
2003-05-27 07:44:54 +00:00
Guy Harris 64a8d94d5f Get rid of a debugging message.
svn path=/trunk/; revision=7749
2003-05-27 07:18:47 +00:00
Gerald Combs 5f289be167 Make the RTP tap analysis code use create_tempfile() instead of tmpnam().
svn path=/trunk/; revision=7748
2003-05-27 01:40:30 +00:00
Gerald Combs 34f3a83862 Add ADNS to the "Compiled with" list. Wrap at the SNMP library part since
the line was getting long.

svn path=/trunk/; revision=7747
2003-05-26 22:55:43 +00:00
Gerald Combs e1f609b9fd Fix the definition of NUM_GRPDESC_TYPES, from Yaniv Kaul.
svn path=/trunk/; revision=7746
2003-05-26 22:53:58 +00:00
Guy Harris 52046f475d Strings in SCSI replies are blank-padded or possibly null-padded;
they're not null-terminated.

svn path=/trunk/; revision=7745
2003-05-26 22:36:49 +00:00
Guy Harris 456be7de63 Null-terminate ASCII string values in "dissect_ndr_cvstring()".
svn path=/trunk/; revision=7744
2003-05-26 21:58:45 +00:00
Guy Harris 01a108e119 The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".
svn path=/trunk/; revision=7743
2003-05-26 21:44:28 +00:00
Guy Harris 870227fbfb Strings in PPTP are null-padded, not null-terminated.
svn path=/trunk/; revision=7742
2003-05-26 21:36:45 +00:00
Guy Harris 7940c30a80 Deal with cases where there's no token ID in a Kerberos blob.
svn path=/trunk/; revision=7741
2003-05-26 20:44:20 +00:00
Guy Harris 181be03665 The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".
svn path=/trunk/; revision=7740
2003-05-25 19:37:36 +00:00
Gerald Combs 75648fb892 From Yaniv Kaul: add RFC3526 DH MODP groups.
Fix a typo.

svn path=/trunk/; revision=7739
2003-05-25 16:49:47 +00:00
Richard Sharpe 0d582042e3 Add the reqFlags decode ...
svn path=/trunk/; revision=7738
2003-05-25 00:59:15 +00:00
Richard Sharpe 52ea4be2f1 Adding more infrastructure so I can decode SPNEGO/GSSAPI request flags.
svn path=/trunk/; revision=7737
2003-05-25 00:36:30 +00:00
Richard Sharpe 577bb67174 Begin to break out the SPNEGO/GSSAPI request flags ...
svn path=/trunk/; revision=7736
2003-05-24 23:26:17 +00:00
Guy Harris 0ae9287b4a Use a GString to store the formatted authentication information. (This
also fixes a bug where we were putting a null terminator past the end of
an on-the-stack string buffer.)

svn path=/trunk/; revision=7735
2003-05-24 22:58:50 +00:00
Gerald Combs 1a99e50d55 Convert the WKS bitnames variable to a GString, on the (way, way)
off chance that someone has amazingly long service names defined on
their system.  Discovered by Timo Sirainen.

svn path=/trunk/; revision=7734
2003-05-24 21:05:36 +00:00
Guy Harris c34bf9cb64 Get rid of the CRs at the ends of lines (GCC was upset by at least some
of them).

svn path=/trunk/; revision=7733
2003-05-24 20:49:58 +00:00
Gerald Combs dcc9976c13 Fix more string-related nits found by Timo Sirainen/
svn path=/trunk/; revision=7732
2003-05-24 19:51:48 +00:00
Gerald Combs 356ddbd284 Fix instances where the return value of snprintf() was being checked for -1,
but not for <buf_size> or greater.  Discovered by Timo Sirainen.

svn path=/trunk/; revision=7731
2003-05-24 17:45:10 +00:00
Gerald Combs 4d5243dcc7 Timo Sirainen discovered that snprintf() returning -1 wasn't being handled
properly.  Use a GString instead.

svn path=/trunk/; revision=7730
2003-05-24 16:54:42 +00:00