Commit Graph

3241 Commits

Author SHA1 Message Date
Gilbert Ramirez 466006a3db Add instructions for using the installation package.
svn path=/trunk/; revision=3282
2001-04-10 12:29:22 +00:00
Gilbert Ramirez 2a2b4bb6b4 Check in isprint() hack for Win32 so that Ethereal is usably while
we figure out what the real bug is.

Fix set_last_open_dir() to use G_DIR_SEPARATOR and G_DIR_SEPARATOR_S
for cross-platform compatibility.

svn path=/trunk/; revision=3281
2001-04-10 12:07:40 +00:00
Guy Harris 61f7a8eb4b Fix up some other README.developer items.
svn path=/trunk/; revision=3280
2001-04-10 07:21:38 +00:00
Gilbert Ramirez 8ea93329a8 last_open_dir needs a trailing slash in order for the GTK+
file-selection dialogue to open the directory and show its
contents, otherwise it opens the parent directory and shows *its*
contents.

svn path=/trunk/; revision=3279
2001-04-09 22:35:23 +00:00
Guy Harris e7fed6d68b Update README.developer to discuss 'col_set_str' and 'col_clear', to
make the dissector function in the sample dissector code a static
function, and to leave out the "CHECK_DISPLAY_AS_DATA()" call and the
line to set "pinfo->current_proto" in the sample dissector, as the
sample dissector is called through a dissector table, and the code to
call through a dissector table does both of those for you.

svn path=/trunk/; revision=3278
2001-04-09 22:25:39 +00:00
Guy Harris 0c72b55013 Fixes from Joerg Mayer.
svn path=/trunk/; revision=3277
2001-04-09 21:42:01 +00:00
Jeff Foster 10df96c2d5 Fix error in dissect_connect_ack routine, proto_tree_add_item for hf_msproxy_server_int_addr
was using a length of 2 not 4, which it should be.

svn path=/trunk/; revision=3276
2001-04-09 15:54:17 +00:00
Guy Harris fd09b74426 Note that UCD SNMP binaries and header files for Win32 can be gotten
from Revelstone's Web site (in a different directory from the one
mentioned in the past).

svn path=/trunk/; revision=3275
2001-04-09 06:12:51 +00:00
Gerald Combs 5b9ad66cb8 Add support for "version 7" wandess output. Actually, I think it's
simply PPP data that doesn't have a username associated with it, e.g. for
a dedicated WAN link as opposed to a dialup link.

svn path=/trunk/; revision=3274
2001-04-09 03:32:34 +00:00
Guy Harris c8c2a04ad0 Note that MAPI is a DCE RPC service, and note that getting rid of the
MAPI dissector would mean that MAPI traffic would merely be identified
as DCE RPC traffic rather than as MAPI traffic - and we might still have
to base that identification on the port number, for some captures, if
I've read the DCE RPC 1.1 documentation correctly.

svn path=/trunk/; revision=3273
2001-04-09 02:15:10 +00:00
Guy Harris 16964010e1 SCTP dissector fix from Michael Tuexen.
svn path=/trunk/; revision=3272
2001-04-09 00:21:07 +00:00
Guy Harris 376056336c OSI network layer over PPP support, fix to P2P ISIS processing, and ISIS
hostname TLV support, from Hannes Gredler.

svn path=/trunk/; revision=3271
2001-04-08 19:32:05 +00:00
Guy Harris 69a945b5ce If we do "offset = dissect_rpc_XXX_tvb(...)", we have to do so
regardless of whether the protocol tree argument is null or not;
otherwise, we don't end up updating the offset field correctly if the
argument is null.  (The "dissect_rpc_XXX_tvb(...)" routines won't try to
add something to the tree if their "tree" argument is null, so it's safe
to call them with a null "tree" argument.)

svn path=/trunk/; revision=3270
2001-04-07 09:25:23 +00:00
Guy Harris eb7e6cf594 RWALL dissector, from Ronnie Sahlberg.
svn path=/trunk/; revision=3269
2001-04-07 08:39:46 +00:00
Guy Harris d57831fd29 Mention RFC 1356 in the comment about handling NLPIDs other than the
0xCC one for IP.

svn path=/trunk/; revision=3268
2001-04-07 08:33:12 +00:00
Guy Harris 1bfd09545e At least with UCD SNMP 4.1.2, you can safely pass to "sprint_value()" a
variable with a null pointer-to-value and a zero length, so we don't
need to protect the assignment to "variable.val.string" with
"SAFE_STRING()" - and doing so causes complaints from the compiler about
assigning a pointer to a "const gchar" to the non-const pointer
"variable.val.string".

svn path=/trunk/; revision=3267
2001-04-07 08:23:58 +00:00
Guy Harris 7da2edcb2e Don't hand "fdata" to "clear_fdata()" if you haven't filled it in.
svn path=/trunk/; revision=3266
2001-04-07 06:58:17 +00:00
Guy Harris 3d446c2609 Don't blow up if "asn1_string_value_decode()" supplies a null pointer as
the string because the string value is zero-length.

Don't try to treat an agent address in a V1 trap as an IP address if
it's not 4 bytes long.

svn path=/trunk/; revision=3265
2001-04-07 00:52:07 +00:00
Guy Harris ca49be4d3e In "dissect_snmp_parse_error()" and "dissect_snmp_error()", put an error
indication into the protocol tree as well as the summary line, so people
don't get confused if, say, doing "tethereal -V".

Pass those routines the subtree for the packet, rather than the
top-level tree, so that the error indication and the item for the rest
of the packet show up there rather than at the top level.

svn path=/trunk/; revision=3264
2001-04-06 23:12:33 +00:00
Gilbert Ramirez b71792efa4 Build with zlib.
Pre-compiled zlib provided at
	http://www.ethereal.com/distribution/win32/zlib-1.1.3-fixed.zip
"fixed" because the pre-compiled version in the "extralibs" package
from the Gimp/Win32 page has a fault zlib.lib in it.

Add note about zlib in README.win32; more work needs to be done to
this file to mention new packaging method.

svn path=/trunk/; revision=3263
2001-04-06 03:52:45 +00:00
Guy Harris 00be3b8f13 Don't call "register_all_plugin_handoffs()" if we don't have plugin
support.

svn path=/trunk/; revision=3262
2001-04-05 19:25:16 +00:00
Gilbert Ramirez 9fc1e0261b Win32 build fix, show "0.5.2 (WinPcap 2.1)" as the libpcap version
for Win32, and show a slightly more informative (i.e., geared to the
user) help message when trying to capture without having WinPcap installed.

svn path=/trunk/; revision=3261
2001-04-05 05:58:05 +00:00
Gilbert Ramirez df02a1737e Updates for win32 files to ignore.
svn path=/trunk/; revision=3260
2001-04-05 05:38:37 +00:00
Gilbert Ramirez a6b26c51bb Remove the 3 types of installation in favor of a "type-less"
installation. Now the user just gets to select components to install.
Provide for installing a Deskstop Icon, too.

svn path=/trunk/; revision=3259
2001-04-05 05:36:47 +00:00
Gilbert Ramirez a8d864bca7 Use sed in the Win32 build to place the version in various files.
We us $(VERSION), defined in the top-level config.nmake, to replace
@VERSION@ in various files. $(RC_VERSION) and $(WTAP_VERSION) are
similarly used.

svn path=/trunk/; revision=3258
2001-04-05 04:39:29 +00:00
Guy Harris c4979d817a WinPcap 2.1 allows you to capture on Token Ring, so remove the note
about Token Ring in the "sorry, we couldn't open the capture device"
dialog box on Windows.

svn path=/trunk/; revision=3257
2001-04-04 23:40:23 +00:00
Gilbert Ramirez fa924d4380 Move the comments in nsis/README into nsis/Makefile.nmake
Have automake package the nsis files into the source tarball.

svn path=/trunk/; revision=3256
2001-04-04 20:08:16 +00:00
Gilbert Ramirez e03cc2278c Packaging files for Win32, using NSIS, the NullSoft Installer, that
was originally written for WinAmp. See http://www.nullsoft.com/free/nsis/

svn path=/trunk/; revision=3255
2001-04-04 04:50:05 +00:00
Gilbert Ramirez 523f6fe3ee ANSI C requires a statement in the 'default' case of a switch statement.
Use a ';' statement.

svn path=/trunk/; revision=3254
2001-04-04 03:29:49 +00:00
Guy Harris 80c7d9288d Add, as per Tim Newsham, code to forcibly set the payload length to 4
(the minimum) if it's less than 4; also, add code to put a note that the
payload length is bogus into the protocol tree.

svn path=/trunk/; revision=3253
2001-04-04 02:52:04 +00:00
Guy Harris f5e3edc132 GTP support, from Michal Melerowicz.
svn path=/trunk/; revision=3252
2001-04-04 01:00:19 +00:00
Guy Harris b966192f5e Try to load WinPcap only on Windows.
svn path=/trunk/; revision=3251
2001-04-03 05:55:44 +00:00
Guy Harris 6617c40dd7 An Ethernet type of 0x6558 is "Transparent Ethernet Bridging" which,
apparently, means an Ethernet packet is stuffed into the payload; add
support for it as an Ethernet, Cisco HDLC, and GRE packet type.

Sort the Ethernet types in "etypes.h" by value.

svn path=/trunk/; revision=3250
2001-04-03 05:42:11 +00:00
Gilbert Ramirez a817e97015 Now that WinPcap is a DLL, I can load it at run-time rather than load-time.
That means that I no longer need to distribute capture and non-capture
versions of Ethereal for Win32; one version (compiled with WinPcap headers)
can run on systems with or without WinPcap.

For systems that don't have WinPcap, instead of disabling the Capture
menu, Capture|Start brings up a dialogue informing the user that wpcap.dll
was not loadable, and gives a URL to the WinPcap home page.

svn path=/trunk/; revision=3249
2001-04-03 05:26:27 +00:00
Nathan Neulinger e453b3e5de simplistic check for encrypted data
svn path=/trunk/; revision=3248
2001-04-02 19:10:06 +00:00
Guy Harris 6270db715c Include <string.h> to declare "strlen()", and include <winsock.h> to
declare "struct timeval", so that MSVC++ 6.0 doesn't give an error.

svn path=/trunk/; revision=3247
2001-04-02 10:44:09 +00:00
Guy Harris 393b1b3e8d Don't use "u_int" and "u_char", as they're not defined in <sys/types.h>
on Windows, so we'd have to drag in <winsock.h> to define them.

svn path=/trunk/; revision=3246
2001-04-02 10:41:19 +00:00
Guy Harris 9b99fdd7ab Don't use "u_int" for IPv4 addresses in "column-utils.c", as that'll
require that it drag in <winsock.h> on Windows; instead, use "guint32".

svn path=/trunk/; revision=3245
2001-04-02 10:38:26 +00:00
Guy Harris ce01c4e7ef "to_str.c" uses "size_t"; include <stdlib.h>, to declare it (necessary
on Windows).

svn path=/trunk/; revision=3244
2001-04-02 09:59:41 +00:00
Guy Harris 0a6b7f6f39 The plugins code has an API that uses a type from "prefs.h"; include
"prefs.h", as otherwise MSVC++ 6.0 won't compile "plugins.c".

svn path=/trunk/; revision=3243
2001-04-02 09:58:15 +00:00
Guy Harris d42a2a652f "tvb_get_ptr()" now returns a "const guint8 *", not a "guint8 *"; adjust
the plugin-API declarations appropriately.

svn path=/trunk/; revision=3242
2001-04-02 09:55:34 +00:00
Guy Harris 65dc469326 "get_home_dir()", in "epan/filesystem.c", uses
"find_last_pathname_separator()" on Win32; move the other pathname
manipulation routines from "util.c" into "epan/filesystem.c".

Remove from "util.h" the declarations of routines not defined in
"util.c", and put them into "epan/filesystem.h" if they're not already
there.

Adjust #includes to make the above work.

svn path=/trunk/; revision=3241
2001-04-02 09:53:46 +00:00
Guy Harris d203637ade Use GLib types rather than "u_int" and "u_char" in "resolv.h"; "u_int"
and "u_char" aren't declared in <sys/types.h> in Win32, you have to
include <winsock.h>, which is a pain.

Throw in some "const"s while we're at it.

svn path=/trunk/; revision=3240
2001-04-02 09:41:56 +00:00
Guy Harris d2de258acb Get rid of a tab after a backslash - Microsoft Visual C++ 6.0's "nmake"
doesn't seem to treat backslash-tab as an end-of-line escape, the
backslash has to be at the end of the line.

svn path=/trunk/; revision=3239
2001-04-02 09:21:31 +00:00
Guy Harris 13681cf12b Include <sys/time.h> as well as <time.h> in "column-utils.c" and
"value_string.c", as they include "epan/to_str.h", and that uses "struct
timeval" in some function prototypes.

In "to_str.c", include <sys/types.h> before including <netinet/in.h>; on
at least some platforms, definitions in <netinet/in.h> require types
defined in <sys/types.h>.

In "to_str.c", include <sys/socket.h>, so that AF_INET6 is defined.

svn path=/trunk/; revision=3238
2001-04-02 02:30:06 +00:00
Ed Warnicke f5cf9c8dca Added two new arguments to epan_init() and proto_init() to
allow the passing of register_all_protocols() and
register_all_protocol_handoffs() through epan_init() to proto_init().
This allows the removal of the compile time dependence of proto.c
on register.h.  Modified dftest.c, tethereal.c, and gtk/main.c to
use the new style epan_init() and depend on register.h.

svn path=/trunk/; revision=3237
2001-04-02 00:38:36 +00:00
Ed Warnicke 58a096e88c Changed proto_init() to have it fetch proto_malformed at run time
using proto_get_id_by_filter_name().  Removed #include "packet-frame.h"

svn path=/trunk/; revision=3236
2001-04-01 23:11:43 +00:00
Ed Warnicke cb21a9735a Added a function proto_get_id_by_filter_name() function to proto.{c,h}
to allow the lookup of proto_ids by filter_name.

svn path=/trunk/; revision=3235
2001-04-01 22:50:08 +00:00
Ed Warnicke 10cd0c5f70 Changed packet_init() to look up the frame dissector and cache its
dissector_handle in a static variable in packet.c.  Changed dissect_packet
to call dissector from using the call_dissector() function and the cached
dissector_handle for frame_dissector.  Changed the order of function
calls in epan_init() to allow for this change ( it sucks to look up
a dissector when none are registered ).

svn path=/trunk/; revision=3234
2001-04-01 22:01:34 +00:00
Ed Warnicke 62e9875d34 Added a register_dissector() call in packet-frame.c so that frame is now
a registered dissector and can be called by call_dissector().

svn path=/trunk/; revision=3233
2001-04-01 21:12:05 +00:00