Commit Graph

3140 Commits

Author SHA1 Message Date
Guy Harris 9b85728d1d "reactivate_window()" is used only by stuff in the "gtk" directory, and
has an API that depends on GTK+.  "set_main_window_name()" is
UI-toolkit-independent.  Declare the former in a new "gtk/ui_util.h"
file, rather than in "ui_util.h"; this helps separate
UI-toolkit-independent stuff from UI-toolkit-dependent stuff.

svn path=/trunk/; revision=3181
2001-03-24 02:23:08 +00:00
Guy Harris 8ac0e6618a The declaration of "destroy_packet_wins()" belongs in
"gtk/packet_win.h", along with the declarations of the other packet
window manipulation routines; put it there.

svn path=/trunk/; revision=3180
2001-03-24 02:14:56 +00:00
Guy Harris 58369df4ef Give the code that computes protocol statistics a progress dialog box,
as, on a large capture, it could take a significant amount of time.

Let the user stop the computation and, if they do, don't pop up the
statistics dialog box.

Create a new header file declaring the routines to create, update, and
destroy progress dialog boxes; those routines' APIs don't depend on
GTK+, but others declared in "ui_util.h" do, and we don't want to oblige
a source file to depend on GTK+ headers unless it uses a GTK+ API or an
API that depends on GTK+.

svn path=/trunk/; revision=3179
2001-03-24 02:07:22 +00:00
Guy Harris 8f43649bcb Add a macro to extract the DLCI from the address field.
Extract the DLCI only once.

svn path=/trunk/; revision=3178
2001-03-23 23:56:03 +00:00
Guy Harris 289f57e570 Back out the guint64 stuff - it's not clear it's the right way to handle
this, as

	1) we still need to handle platforms that don't support 64-bit
	   integral data types, so we still needed the old stuff in some
	   fashion anyway

and

	2) MSVC appears to treat structures as requiring 8-byte
	   alignment in some cases, and "guint64"s require 8-byte
	   alignment on at least some platforms, forcing structures
	   containing those 64-bit time stamps to have a size that's a
	   multiple of 8 bytes, which *isn't* the correct size for the
	   data record header.

svn path=/trunk/; revision=3177
2001-03-23 23:16:29 +00:00
Guy Harris 720d7bb9f4 Put back some of Gilbert's changes lost by recent checkins.
svn path=/trunk/; revision=3176
2001-03-23 22:26:33 +00:00
Guy Harris d0ac50e4e7 Add "volatile" qualifiers so that variables survive a setjmp/longjmp
operation.

svn path=/trunk/; revision=3175
2001-03-23 21:58:37 +00:00
Guy Harris 080d72123e Routines called by "g_node_traverse()" are supposed to return TRUE if
the traversal is supposed to stop when the routine returns and FALSE
otherwise.

svn path=/trunk/; revision=3174
2001-03-23 21:55:36 +00:00
Guy Harris 5632391770 Pull the NLPID for Wellfleet compression into "nlpid.h".
svn path=/trunk/; revision=3173
2001-03-23 21:49:23 +00:00
Nathan Neulinger 848fa23499 Misc ubik/afs updates to correct a SEGV and add some more
dissection. Will be more coming, but wanted to commit these before I headed
home.

svn path=/trunk/; revision=3172
2001-03-23 21:42:37 +00:00
Guy Harris 1343043cdd Add the LMI dissector for Frame Relay and the Wellfleet compression
dissector.

svn path=/trunk/; revision=3171
2001-03-23 21:38:56 +00:00
Jeff Foster 41a89b2b91 Fixed problem in wcp_uncompress. If the proto_tree was null the program
would segfault when creating the sub-tree.

svn path=/trunk/; revision=3170
2001-03-23 20:47:17 +00:00
Guy Harris 501ea346d1 Don't convert a WTP PDU type to a string by using as an index into a
"value_string" array, do it the right way, by using "val_to_str()" - the
PDU type is 4 bits, but there aren't 16 entries in the array, so a bogus
PDU type (*don't* assume that can't happen...) can cause a core dump.

svn path=/trunk/; revision=3169
2001-03-23 20:11:46 +00:00
Jeff Foster c400685ad6 Updated the frame relay dissector - dissect-fr.c
Added the LMI dissector for frame relay - dissect-lmi.c
Added Wellfleet compression dissector - dissect-wcp.c

svn path=/trunk/; revision=3168
2001-03-23 19:22:02 +00:00
Jeff Foster 45cde0fc88 Added named data sources printing support, written by Guy Harris
svn path=/trunk/; revision=3167
2001-03-23 18:44:20 +00:00
Jeff Foster 2fd1bed04a Fix last minute edit mistake in add_byte_tab.
svn path=/trunk/; revision=3166
2001-03-23 17:14:40 +00:00
Jeff Foster 395b68ea19 Changes required to support multiple named data sources.
Tvbuffers changed to added the data source name,
GUI and printing code changed to support these changes
and display the multiple hex views.

svn path=/trunk/; revision=3165
2001-03-23 14:44:04 +00:00
Guy Harris c5791fac0c Update the version of the MGCP plugin.
svn path=/trunk/; revision=3164
2001-03-23 10:34:03 +00:00
Gilbert Ramirez e108afe2bb The Win32 build builds wiretap as a DLL and requires WinPcap 2.1.
svn path=/trunk/; revision=3163
2001-03-23 02:05:29 +00:00
Gilbert Ramirez 2218ce1220 Add a new tool which summarizes packet counts by protocols, but
organizes the protocols in the same hierarchical order in which
they are found in the packet.

The GUI needs some more refinement (placment of vertical
scrollbar, style of GtkCTree, initial sizing of window).

I need to add an option to honor/not honor the current display filter.

svn path=/trunk/; revision=3162
2001-03-22 23:54:47 +00:00
Gilbert Ramirez c2b31166ed Show "IEEE 802.3" as "IEEE 802.3 Ethernet" so as not to confuse
anyone.

svn path=/trunk/; revision=3161
2001-03-22 23:22:23 +00:00
Gilbert Ramirez a8b0c240e6 Move appletalk- and sna-related address routines out of the dissectors
and into epan.

svn path=/trunk/; revision=3160
2001-03-22 16:24:16 +00:00
Guy Harris 5175434166 Tvbuffify the Microsoft Proxy dissector.
svn path=/trunk/; revision=3159
2001-03-22 08:39:08 +00:00
Guy Harris 9235899d2f Boost the size of some buffers to leave room for the terminating NUL,
and add some additional checks to make sure we don't run past the end of
the packet.

svn path=/trunk/; revision=3158
2001-03-22 06:55:58 +00:00
Guy Harris 5a4106db5c Throw in a cast to squelch a complaint from Visual C++ 6.0.
svn path=/trunk/; revision=3157
2001-03-22 06:14:27 +00:00
Guy Harris e21ab990c5 Get rid of no-longer-used "tvb_section_length()" routine.
svn path=/trunk/; revision=3156
2001-03-22 06:12:03 +00:00
Guy Harris 11f72f73b8 When constructing the tree for a LANMAN transaction continuation, use
the parameter offset, not the data offset, as the starting offset.

svn path=/trunk/; revision=3155
2001-03-22 00:50:44 +00:00
Guy Harris 6b3c6ad891 When dissecting LANMAN pipe transaction replies, store with each reply
frame per-frame data indicating

	1) what type of transaction it's a reply to

and

	2) whether it's the first reply or a continuation reply

as the information supplied by the SMB dissector can only be trusted on
the first pass through the capture.

(If you have two different transactions in the *same* conversation with
the *same* MID, but different transaction types, only on the first pass
will the transaction type in the data structure pointed to by
"si.request_val" reflect the previous request - it reflects the last
request seen which, when the user is clicking on frames in the capture,
needn't be the request corresponding to the reply that they've just
clicked on.

If you have a reply that consists of multiple SMBs,
"si.request_val->trans_response_seen" will be set to 1 as soon as the
first reply is seen, and will *remain* 1 until the request is seen
again; if the user clicks on one of the SMBs in the reply, even if it's
the first SMB in the reply, without having first clicked on the request,
"si.request_val->trans_response_seen" will be 1, and the SMB will be
misdissected as a continuation.)

Use common code to handle the beginning of LANMAN replies, rather than
duplicating it in the code to handle each reply.

svn path=/trunk/; revision=3154
2001-03-22 00:28:35 +00:00
Guy Harris aaa428976e Use common code to handle the beginning of LANMAN requests, rather than
duplicating it in the code to handle each request.

svn path=/trunk/; revision=3153
2001-03-21 23:30:54 +00:00
Gilbert Ramirez 53b463c1e1 Add 48x48 PNG of new 3D logo with transparent background.
svn path=/trunk/; revision=3152
2001-03-21 23:15:49 +00:00
Guy Harris 5e41f83080 Whitespace cleanup.
Use "loc_offset" even for the function code in a response (it probably
shouldn't matter, as the function code isn't actually *in* the
response), and set "loc_offset" to SMB_offset in an interim reply.

svn path=/trunk/; revision=3151
2001-03-21 23:13:49 +00:00
Guy Harris 91693ad8a7 Show a minimal tree for interim responses, showing only the type of the
request to which it's a response.

Compute the offset of the LANMAN data before putting *any* entries into
the tree, rather than using 0 as the offset for the top-level item for a
response.

svn path=/trunk/; revision=3150
2001-03-21 22:57:26 +00:00
Guy Harris 2c109432a2 Put in a note about the use of some currently-undissected fields in the
SMB header, as per a Microsoft document.

svn path=/trunk/; revision=3149
2001-03-20 04:46:37 +00:00
Guy Harris c6e65323ff Alas, the WCCP drafts have expired....
svn path=/trunk/; revision=3148
2001-03-20 04:30:09 +00:00
Guy Harris 7c8faf262f Move the declaration of routines exported from "packet-smb-browse.c"
into a "packet-smb-browse.h" header file, and have modules that import
those routines include "packet-smb-browse.h" rather than declaring the
routines themselves; do the same for routines exported from
"packet-smb-logon.c".

Make routines and arrays not exported static, and make routines that
return a true/false return value "gboolean" rather than "guint32".

svn path=/trunk/; revision=3147
2001-03-18 03:34:22 +00:00
Guy Harris b8289288e8 Correctly handle Interim responses to TRANSACTION requests.
Move the declaration of routines exported from "packet-smb-mailslot.c"
into a "packet-smb-mailslot.h" header file, and have modules that import
those routines include "packet-smb-mailslot.h" rather than declaring the
routines themselves; do the same for routines exported from
"packet-smb-pipe.c".  Make routines not exported static, and make
routines that return a true/false return value "gboolean" rather than
"guint32".

svn path=/trunk/; revision=3146
2001-03-18 03:23:30 +00:00
Guy Harris 8e268424e1 Change some "MSRPC"s to "DCERPC"s.
There's no need to clear the Info column right before setting it; we
don't use any information from the packet other than stuff we've already
determined is there (as part of the heuristic test for a DCE RPC
packet), so there's no risk that we'll throw an exception before the
Info column is set.

Use "col_set_str()", rather than "col_add_str()" or "col_add_fstr()", to
set the Protocol and Info columns.

svn path=/trunk/; revision=3145
2001-03-18 02:34:50 +00:00
Guy Harris 212a090f0c DCE RPC support, from Todd Sabin.
svn path=/trunk/; revision=3144
2001-03-18 02:13:33 +00:00
Guy Harris 72086cbcdf BOOTPARAM tvbuffification and enhancements, from Ronnie Sahlberg.
svn path=/trunk/; revision=3143
2001-03-18 02:07:02 +00:00
Guy Harris d606be7973 YPSERV tvbuffified, and additional dissection added, by Ronnie Sahlberg.
svn path=/trunk/; revision=3142
2001-03-17 21:16:56 +00:00
Guy Harris f803074e83 Rename "stat.priv" to "statnotify.priv", to avoid colliding with the NSM
"stat.priv".

svn path=/trunk/; revision=3141
2001-03-15 22:18:49 +00:00
Guy Harris cbfe322b03 Status monitor callback protocol support, from Ronnie Sahlberg.
svn path=/trunk/; revision=3140
2001-03-15 22:15:32 +00:00
Guy Harris 022cfcf826 The other "proto_tree_add" routines will, if the "tree" argument is
null, just return NULL without doing any work; make
"proto_tree_add_item()" do so as well.

svn path=/trunk/; revision=3139
2001-03-15 22:08:41 +00:00
Guy Harris 39e3ee9600 Status monitor V1, from Ronnie Sahlberg.
Merge the two AUTHORS entries for David Hampton.

svn path=/trunk/; revision=3138
2001-03-15 21:55:07 +00:00
Guy Harris 448d45ca44 Update from Ronnie Sahlberg to use the list of mount status replies with
V1 and V2 as well.

svn path=/trunk/; revision=3137
2001-03-15 21:50:32 +00:00
Guy Harris 0033cb3903 Declare "chdlc_vals[]" "extern", as we're not specifying the size.
svn path=/trunk/; revision=3136
2001-03-15 21:49:24 +00:00
Olivier Abad 6e8b505b7e Patch from Ed Warnicke.
svn path=/trunk/; revision=3135
2001-03-15 19:46:35 +00:00
Guy Harris c31f1a54a6 Win32 doesn't have an "atomic rename" operation of the sort that UNIX
has - or, if it does, it's not "MoveFile()", and "rename()" doesn't use
it, so you have to make sure the target of a rename doesn't exist before
doing the rename.

svn path=/trunk/; revision=3134
2001-03-15 09:50:39 +00:00
Guy Harris 7ecac8fbd0 Add a new Wiretap encapsulation type for Cisco HDLC. Map the NetBSD
DLT_HDLC to it.

Make a separate dissector for Cisco HDLC, and add a dissector for Cisco
SLARP.  Have the PPP dissector call the Cisco HDLC dissector if the
address field is the Cisco HDLC unicast or multicast address.  Use the
Cisco HDLC dissector for the Cisco HDLC Wiretap encapsulation type.

Add a new dissector table "chdlctype", for Cisco HDLC packet types
(they're *almost* the same as Ethernet types, but 0x8035 is SLARP, not
Reverse ARP, and 0x2000 is the Cisco Discovery protocol, for example),
replacing "fr.chdlc".

Have a "chdlctype()" routine, similar to "ethertype()", used both by the
Cisco HDLC and Frame Relay dissectors.  Have a "chdlc_vals[]"
"value_string" table for Cisco HDLC types and protocol names.  Split the
packet type field in the Frame Relay dissector into separate SNAP and
Cisco HDLC fields, and give them the Ethernet type and Cisco HDLC type
"value_string" tables, respectively.

svn path=/trunk/; revision=3133
2001-03-15 09:11:03 +00:00
Guy Harris 56d199c7ff Clear the Info column before you start dissecting, just in case you
throw an exception.

Fix a comment to reflect that the "location", "info", and
"make-and-model" fields are optional (CUPS 1.0[.x] didn't put them into
its browse packets).

svn path=/trunk/; revision=3132
2001-03-15 07:03:13 +00:00