Commit Graph

1829 Commits

Author SHA1 Message Date
Guy Harris 5f31d79fea Canonicalize the line endings, and set svn:eol-style to native to keep
them canonicalized.

Set svn:keywords to Id to expand RCS IDs.

svn path=/trunk/; revision=11930
2004-09-07 20:05:04 +00:00
Ulf Lamping 62cde11b8b added a Clear button to the Decode As dialog, also added some tooltips
svn path=/trunk/; revision=11929
2004-09-07 19:42:52 +00:00
Ulf Lamping 61d6b8a1ab replace the Cancel with a Close button, as pressing it will not rewind any previously applied operations
svn path=/trunk/; revision=11928
2004-09-07 19:22:17 +00:00
Ulf Lamping a39ba7e44b don't put the "(none)" interface into the list, Ethereal will crash if it's applied to Decode As
svn path=/trunk/; revision=11927
2004-09-07 19:20:48 +00:00
Guy Harris 03e12ad5ee Canonicalize the line endings, set the svn:eol-style property to
"native" so they stay canonicalized, and set svn:keywords to Id so that
RCS IDs get expanded.

svn path=/trunk/; revision=11926
2004-09-07 18:51:56 +00:00
Ulf Lamping 3a51628c0f two bugfixes: sort items in alphabetical order and don't do a OBJECT_GET_DATA on a NULL pointer
svn path=/trunk/; revision=11925
2004-09-07 18:50:26 +00:00
Ulf Lamping 26afcbd9cc First working implementation of "Decode As" for DCE-RPC interface bindings. Ethereal needs to capture the DCE-RPC bind sequence, to get a relationsship between the interface UUID and the current conversation. If this binding wasn't captured, one can use "Decode As" and choose the interface from a list corresponding to a specific conversation. Currently "only" implemented for connectionoriented (TCP) DCE-RPC, but connectionless is a work in progress.
svn path=/trunk/; revision=11924
2004-09-07 16:19:56 +00:00
Michael Tüxen 0616413a60 Do not compile SCTP analysis stuff right now.
svn path=/trunk/; revision=11922
2004-09-07 09:41:58 +00:00
Ulf Lamping e09ed18320 using #ifdef HAVE_SYS_TYPES_H around some of the includes making problems, but still uncompilable on win32!!!
svn path=/trunk/; revision=11921
2004-09-07 08:42:02 +00:00
Michael Tüxen 870cb0e20a Added graphical SCTP analysis implemented by Irene Ruengeler.
svn path=/trunk/; revision=11920
2004-09-07 07:54:50 +00:00
Ulf Lamping 976a4d9113 next steps for a "Decode As" for DCE-RPC interfaces (commented out)
svn path=/trunk/; revision=11917
2004-09-06 19:56:36 +00:00
Michael Tüxen 3ae576310c Add the capability to chose to remap the fist two PPIDS in each SCTP packet to a different dissector.
svn path=/trunk/; revision=11912
2004-09-06 15:04:27 +00:00
Guy Harris 6968bc1c0d "g_string_sprintfa()" might be deprecated in GLib 2.x, but it's all GLib
1.2[.x] has, and we support GLib 1.2[.x] - "g_string_append_printf()" is
just the new name for "g_string_sprintfa()", and you can still use
"g_string_sprintfa()" in GLib 2.x, so use that instead.

svn path=/trunk/; revision=11900
2004-09-04 20:25:06 +00:00
Guy Harris f06c1b5fb0 The packet range stuff knows about capture_file structures, so it's
really more of an Ethereal/Tethereal component than a libethereal
component (nothing else in libethereal knows about capture files); move
it back out of libethereal.  (The range stuff doesn't; we leave it in
libethereal.)

svn path=/trunk/; revision=11898
2004-09-04 20:02:11 +00:00
Guy Harris 478ba9a691 Rename "range.c" and "range.h" to "packet-range.c" and "packet-range.h";
they should ultimately be split into files with routines that handle
ranges, which are just subsets of [0,2^32), and packet ranges, which are
subsets of the packet list, possibly specified by a range.

Move them into epan, so they can be used by, for example, utilities that
handle ranges, such editcap.

svn path=/trunk/; revision=11890
2004-09-04 00:53:16 +00:00
Gerald Combs 4e3b6fb315 Move get_if_name() from gtk/capture_dlg.c to capture_combo_utils.c.
svn path=/trunk/; revision=11888
2004-09-02 21:49:36 +00:00
Gerald Combs 16c708571a Move the guts of gtk/file_dlg.c:goto_framenum_cb() to
file.c:goto_framenum(), where all of the other goto_ routines live.

svn path=/trunk/; revision=11887
2004-09-02 19:52:39 +00:00
Richard Sharpe 5569136351 Add support for copying hex data to the clipboard. Submitted by Thomas
Palmer.

What we really should do is add this to the Edit menu as well.


svn path=/trunk/; revision=11883
2004-09-02 16:58:43 +00:00
Ulf Lamping 5e32dc06eb added a preference setting, to be able to change the preview timeout in the file open dialog (as requested by Ronnie Sahlberg).
svn path=/trunk/; revision=11859
2004-08-31 09:22:57 +00:00
Ulf Lamping 50b29ff07d Split the preview function into a prepare and a do part, to be able to do some experiments about the preview timeout things.
As the FileChooser dialog (GTK2.4) doesn't seem to let pass other GTK events (even with calling gtk_main_iteration()), it's not possible to change the preview behaviour to be more keen. To get a mechanism to update the preview independant from the dialog workings, we would need to start a new thread/task, which is too much effort for this IMHO.

So we might use the more simple approach of setting the timeout by a preference setting.

svn path=/trunk/; revision=11856
2004-08-31 08:18:10 +00:00
Guy Harris 92a52408e8 Don't have a dummy widget to use for panes marked as "None" - that means
the widget in question gets more than one parent if more than one pane
is marked as "None", and GTK_ doesn't like that.  Instead, just have
"main_widget_layout()" return a null pointer for "None" panes, and don't
put the pane into the pane splitter if that pane is null.

Clean up the handling of layouts.

svn path=/trunk/; revision=11855
2004-08-31 02:49:28 +00:00
Guy Harris 03be75bd1c We use "#ifdef" elsewhere to test WIN32; use it, rather than #if, in the
one place we were using #if.

svn path=/trunk/; revision=11844
2004-08-28 21:27:08 +00:00
Guy Harris 57d15574ef From Francisco Alcoba: fix a crashing bug caused if you change the
dissection for a given transport protocol port and there's no packet
currently selected.

svn path=/trunk/; revision=11843
2004-08-28 09:54:04 +00:00
Guy Harris f122136663 Don't free something we haven't allocated.
svn path=/trunk/; revision=11829
2004-08-25 05:12:58 +00:00
Gerald Combs c8235fae25 Move the file-reloading code from gtk/file_dlg.c to file.c.
svn path=/trunk/; revision=11823
2004-08-25 03:01:32 +00:00
Gerald Combs 76fd761686 As suggested by Guy: Have mark_frame() do nothing if the frame has
already been marked and have unmark_frame() do likewise.  Don't mess
with the marked frame count in mark_all_frames().

Be a little more paranoid about the marked frame count in other places.

svn path=/trunk/; revision=11775
2004-08-19 14:35:55 +00:00
Michael Tüxen a013213e21 Added initial SCTP support: You can chose how PPID 0 will be handled.
svn path=/trunk/; revision=11769
2004-08-18 14:11:25 +00:00
Guy Harris 605293cc76 Get rid of unused enum_val_t table (the wrap vs. no-wrap in search flag
is a Boolean, not an enum).

svn path=/trunk/; revision=11749
2004-08-16 06:24:17 +00:00
Gerald Combs 70ee7740c5 From Greg Morris: Add a configuration option to control search wrapping.
svn path=/trunk/; revision=11744
2004-08-15 19:26:25 +00:00
Gerald Combs 2875ddd269 Move convert_string_to_hex() and convert_string_case() from gtk/find_dlg.c
to epan/strutil.c

svn path=/trunk/; revision=11733
2004-08-13 02:39:49 +00:00
Guy Harris 0cd6d2f51c From Stas Grabois: make the previous change not to show disabled
protocols in the "Add Expression" and "Decode As" dialogs work with GTK+
2.x.

svn path=/trunk/; revision=11626
2004-08-08 06:25:24 +00:00
Gerald Combs 9cde8d8a70 Put the "copy" button back in the conversation and host list tables.
svn path=/trunk/; revision=11624
2004-08-08 03:56:02 +00:00
Guy Harris 3a583aeb59 From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that an
include of <resolv.h> in any system header file gets the system
<resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]).

svn path=/trunk/; revision=11615
2004-08-06 19:57:49 +00:00
Guy Harris b104e6e3eb From Ian Schorr: fix a bug where addresses were drawn to the wrong rows
in the clist, and get rid of some duplicated code.

svn path=/trunk/; revision=11613
2004-08-06 19:22:04 +00:00
Ulf Lamping 4954ae8855 give the user a hint, that he has to restart Ethereal for any column changes. Could someone have a look at the sentence I've used, if this is good english?
svn path=/trunk/; revision=11575
2004-07-31 07:04:32 +00:00
Ulf Lamping 1f7a025246 move the File/Close item back to it's former position. Add an explanatory comment why it's placed there, in difference to the Gnome HIG.
svn path=/trunk/; revision=11554
2004-07-28 17:19:17 +00:00
Ulf Lamping a1020effe1 collect some thoughts about a GTK win32 printing dialog (from Guy Harris and me)
svn path=/trunk/; revision=11553
2004-07-28 16:54:46 +00:00
Guy Harris 28f3dcaaac From Lars Roland: yes, it probably *should* be "retap_packets()", so use
that instead of "redissect_packets()".

svn path=/trunk/; revision=11548
2004-07-28 07:16:33 +00:00
Guy Harris ccf6fdf10e In the GNOME HIG, the File -> Close menu item is in the last group,
right above File -> Quit.

svn path=/trunk/; revision=11547
2004-07-27 23:32:44 +00:00
Guy Harris 0f91ada161 Note that, when we add the ability to build a GNOMEified Ethereal as
well as a GTK+-only Ethereal, we could use "gnome_url_show()" in
GNOMEified Ethereal.

svn path=/trunk/; revision=11546
2004-07-27 22:39:43 +00:00
Guy Harris e33dee6ebf Suggest the possibility of not using the Windows print dialog to print
on Windows.

svn path=/trunk/; revision=11545
2004-07-27 21:12:40 +00:00
Guy Harris 999867b710 Move the code to open the printer/print file from "print_packets()" to
"print_ok_cb()", and have "print_packets()" just work on a
"print_stream_t" handed to it, so that different platforms can open the
printer/print file in different ways (opening the file is probably not
going to be platform-dependent, but opening the printer will be).

svn path=/trunk/; revision=11544
2004-07-27 20:10:02 +00:00
Ulf Lamping 4c8f04671b place new windows (by calling window_new() with default placement (instead of placing it at the current mouse position).
svn path=/trunk/; revision=11542
2004-07-27 19:13:48 +00:00
Ulf Lamping 65766e4fcb from ian schorr: some performance improvements in conversation and hostlist tables, by keep freezing the clist(s) most of the time
svn path=/trunk/; revision=11539
2004-07-27 18:34:02 +00:00
Guy Harris 85f34ad42c From Ian Schorr: don't check the validity of the field name for an
advanced-mode graph if the graph isn't active.

svn path=/trunk/; revision=11537
2004-07-27 06:29:22 +00:00
Guy Harris 48b35594fd From Lars Roland: <epan/packet.h> has to be included before <windows.h>
on Win32.

svn path=/trunk/; revision=11515
2004-07-25 09:54:37 +00:00
Guy Harris 5a3ab160c1 Make some generic print routines that take, as an argument, a pointer to
a structure containing a pointer to print operations for that object and
a pointer to the private subclass-dependent data for that object, with
subclasses for text and PostScript, and use those rather than the old
scheme where a print format was passed as an argument - or where (as in
the case of printing summary information in Tethereal) we just printed
as text even if "-T ps" was selected.

Check whether those routines succeed or get an I/O error writing output.

Clean up indentation.

svn path=/trunk/; revision=11514
2004-07-25 08:53:38 +00:00
Guy Harris fcfde0b0c0 Include "colors.h" to define BLACK and WHITE.
svn path=/trunk/; revision=11505
2004-07-24 06:38:33 +00:00
Guy Harris c3cba6617b Move the color-filter related stuff out of "color.h" into
"color_filters.h", as that's the appropriate place for it - "color.h"
should just deal with "color_t".

svn path=/trunk/; revision=11503
2004-07-24 02:29:14 +00:00
Guy Harris 13e4c5b1f2 Rename "create_color()" to "initialize_color()", as that reflects a bit
better what it actually does.

svn path=/trunk/; revision=11502
2004-07-24 02:08:42 +00:00
Guy Harris b67a0f92d2 Move color_filters.c and color_filters.h up to the top-level directory,
as they're now (theoretically) toolkit-independent (modulo changes that
might be required to the code to update filter lists when a new filter
is read in).

svn path=/trunk/; revision=11500
2004-07-24 01:29:12 +00:00
Guy Harris e62e05a80a Move the declaration of "color_add_filter_cb()" to "color.h", as,
although it currently takes a pointer to a GtkWidget as its second
argument, that argument is actually a "void *", so it's sort-of
toolkit-independent.

That lets us get rid of all GTK+ references in "gtk/color_filters.c", so
we can move it up to the top-level directory; get rid of the <gtk/gtk.h>
include, in favor of a <glib.h> include.

svn path=/trunk/; revision=11499
2004-07-24 01:16:45 +00:00
Guy Harris d5425a709a Move the declaration of "create_color()" up to "color.h", so it's
declared in a toolkit-independent header file.  Get rid of
"gtk/color_utils.h", as there's nothing left in it.

svn path=/trunk/; revision=11498
2004-07-24 00:49:19 +00:00
Guy Harris 34de3c15d9 Have "gtk/color_utils.c" contain routines with toolkit-independent APIs,
but toolkit-dependent implementations, for manipulating colors, and have
"gtk/color_utils.h" declare them (the header file should eventually be
moved to the top-level directory).  Move the routines to convert between
GdkColor and color_t out of there into "colors.c", and move their
declarations into "colors.h", as their APIs are toolkit-dependent.

Have the first such routine be a "create_color()" routine, which takes
RGB values and initializes a "color_t", including doing any
toolkit-dependent work necessary for that; use that in the
"gtk/color_filters.c" code (the goal is to remove as many of the toolkit
dependencies as possible from that code, and move it to the top-level
directory).

svn path=/trunk/; revision=11497
2004-07-24 00:35:13 +00:00
Guy Harris 8f79902cb3 Get rid of unneeded include of "colors.h".
svn path=/trunk/; revision=11496
2004-07-24 00:34:04 +00:00
Guy Harris 60da1c89f0 Make "new_color_filter()" GUI-independent - have it take two "color_t"
pointers, for the background and foreground color, as arguments, and
have its callers generate them from GdkColor values.

svn path=/trunk/; revision=11495
2004-07-24 00:08:19 +00:00
Guy Harris f16fff888c "capture_combo_utils.{c,h}" don't use any GTK+ stuff, so move them to
the top-level directory.

svn path=/trunk/; revision=11494
2004-07-23 23:36:50 +00:00
Guy Harris 3d0e67cd4e Nothing here uses any GTK+ stuff, so get rid of the include of
<gtk/gtk.h>.  (It should ultimately be moved out of the gtk directory.)

svn path=/trunk/; revision=11487
2004-07-23 20:41:23 +00:00
Ulf Lamping f6c9daa5ec use gtk_clipboard_get(), so the "copy to clipboard" is available in all GTK2 versions
svn path=/trunk/; revision=11472
2004-07-22 18:42:50 +00:00
Ulf Lamping cf51c277bb from Thomas Palmer: add "Copy to clipboard" button to the conversation table dialogs
svn path=/trunk/; revision=11471
2004-07-22 16:36:50 +00:00
Ronnie Sahlberg 1824fa29c2 GdkDisplay is only available in gtk 2.2 and later
it is not available in gtk 2.0 which all of us using more prooven and stable (==obsolete) versions use.


svn path=/trunk/; revision=11455
2004-07-21 08:51:08 +00:00
Ulf Lamping 1f4829897a from Thomas Palmer: copy content of hostlist table to clipboard in csv format.
svn path=/trunk/; revision=11450
2004-07-20 23:48:50 +00:00
Ulf Lamping 35f26ce2c2 refactoring and renaming finished
svn path=/trunk/; revision=11449
2004-07-20 21:39:54 +00:00
Ulf Lamping e083ac3514 some more renaming of the conversation tables things
svn path=/trunk/; revision=11448
2004-07-20 20:56:53 +00:00
Ulf Lamping d23af58fd6 renamed endpoint_talkers to conversations, as this reduces confusion in combination with the hostlist/endpoints table
(some code refactoring still needs to be done in table.c/.h).

svn path=/trunk/; revision=11439
2004-07-20 06:06:41 +00:00
Guy Harris f9c41e9913 "gtk/filter_prefs.h" was renamed "gtk/filter_dlg.h"; update the Makefile
stuff appropriately.

svn path=/trunk/; revision=11438
2004-07-19 23:21:01 +00:00
Guy Harris a4f1f4703d It's not called "filter_prefs.h" any more.
svn path=/trunk/; revision=11437
2004-07-19 23:17:20 +00:00
Ulf Lamping bfd6ace52e renamed filter_prefs to filter_dlg, as the filter settings are (well, for a long time) no longer part of the preferences dialog.
svn path=/trunk/; revision=11436
2004-07-19 21:42:01 +00:00
Guy Harris 2ad97737fe Pull the address (and port and circuit type) stuff out of
"epan/packet_info.h" and put it in "epan/address.h".

Use the AT_ values from "epan/address.h" for address types in the
interface lists rather than having our own FAM_ enums.

svn path=/trunk/; revision=11427
2004-07-19 02:27:17 +00:00
Jörg Mayer fd24ad7d92 .cvsignore is dead
it has been replaced by
svn proplist -v <dir/file>
and
svn propedit <dir/file>

svn path=/trunk/; revision=11422
2004-07-18 23:44:34 +00:00
Jörg Mayer 56c759212f Add epan/dissectors/.cvsignore
Add tags and TAGS to all .cvsignore files

svn path=/trunk/; revision=11419
2004-07-18 22:51:50 +00:00
Guy Harris 0e754b6725 If the pane separator positions are 0 (e.g., because this is GTK+
1.2[.x] and you can't get the positions), don't write them out, as
they'll get errors when they're read back in.

svn path=/trunk/; revision=11414
2004-07-18 19:54:07 +00:00
Guy Harris 2aec055c79 Add support for IPv6 addresses for interfaces.
svn path=/trunk/; revision=11411
2004-07-18 18:47:44 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00
Guy Harris 53c8fcbd6e Add some comments, and expand on a comment (if "pcap_stats()" returns
counts since the last call, not since the beginning of the capture, on
Windows, that's a bug - and that bug *does* exist on some UN*Xes).

Clean up indentation.

Use the minimum snapshot length, not the maximum snapshot length, when
opening a network interface to keep track of how many packets are
arriving on it (that might cause packet data to be discarded rather than
buffering it, reducing the overhead of running all those captures from
which we don't actually grab any packets.

svn path=/trunk/; revision=11404
2004-07-18 02:56:29 +00:00
Guy Harris 5acf051692 Not all interfaces have descriptions.
svn path=/trunk/; revision=11403
2004-07-18 02:43:18 +00:00
Guy Harris 860750fb90 Squelch a compiler warning.
svn path=/trunk/; revision=11401
2004-07-18 02:32:19 +00:00
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Ulf Lamping 357ebbca5a add a new dialog box to menu "Capture/Interfaces..." to show the current state of the interfaces and a quick way to start a capture.
added the IP address of the currently selected interface to the capture options dialog

svn path=/trunk/; revision=11396
2004-07-17 13:50:07 +00:00
Guy Harris 456b2c075f From Lars Ruoff: don't hardwire the RTP sampling clock rate to 8000
samples/second, determine it from the payload type for payload types
with a known clock rate.

svn path=/trunk/; revision=11390
2004-07-17 10:14:03 +00:00
Guy Harris e31d5dda74 From Martin Mathieson: if you create a new filter and cancel the "Edit
Color Filter" dialog, remove the new filter from the list.

svn path=/trunk/; revision=11389
2004-07-17 10:09:12 +00:00
Gerald Combs 8106dc0862 Convert make-version.pl and the associated cvsversion.h and CVSVERSION
definition to Subversion.  "svn info" prints out the last changed date
of the repository, so we don't have to go hunting through "CVS/Entries"
files anymore.


svn path=/trunk/; revision=11379
2004-07-15 21:09:33 +00:00
Guy Harris 935b32dffe As per Pavel Kankovsky, return FALSE, not TRUE, if "user_font_test()"
fails, as that means we aren't setting the font to the new value.

svn path=/trunk/; revision=11376
2004-07-14 08:04:39 +00:00
Ulf Lamping 683c8f587a Conversation/Endpoint list performance patch from Ian Schorr
svn path=/trunk/; revision=11373
2004-07-13 18:14:00 +00:00
Guy Harris fd262f1b97 From Daniel Thompson: add additional message/alert box options to
display "Save", "Continue without Saving", and "Cancel", for the "do you
want to save?" messages.

svn path=/trunk/; revision=11372
2004-07-13 07:15:45 +00:00
Guy Harris f0fc7264f4 From Pavel Kankovsky: the items pointed to by elements in the "text[]"
array are all "g_free()"d, so they have to be "g_malloc()"ed - instead
of setting some to "", set them to "g_strdup("")".

svn path=/trunk/; revision=11370
2004-07-13 05:43:59 +00:00
Ulf Lamping 657f57e62b bugfix to a bug reported by Ian Schorr:
don't present main window when closing dialogs on GTK2.4,
as this might be a statistic window

svn path=/trunk/; revision=11367
2004-07-12 20:01:41 +00:00
Ulf Lamping 05232a7e22 bugfix to a bug reported by Stuart MacDonald (bug #12):
present main window before closing the program,
when asking to save the capture file first

svn path=/trunk/; revision=11366
2004-07-12 19:10:58 +00:00
Ulf Lamping e987a57bc3 bugfix to a bug reported by Ian Schorr:
GTK2.4 open directory doesn't go into last opened dir
(this will affect all open file dialogs)

svn path=/trunk/; revision=11365
2004-07-12 18:39:03 +00:00
Ulf Lamping 6587c1bfee bugfix to a bug reported by Stuart MacDonald (bug #10):
return FALSE for the recent files text entry, otherwise Ethereal will
crash when selected this field and press Apply

svn path=/trunk/; revision=11364
2004-07-12 17:20:06 +00:00
Ulf Lamping cd5579c954 changed column headers, replaced e.g. "-> Packets" by
"Packets A->B" to clarify behaviour

svn path=/trunk/; revision=11362
2004-07-10 11:57:19 +00:00
Ulf Lamping 8f1057754e changed column headers, don't talk of frames but of packets
svn path=/trunk/; revision=11361
2004-07-10 11:53:51 +00:00
Guy Harris fe1b0f99c4 In the GTK+ code, move the redefinition of "isprint()" to
"gtk/isprint.h", and include that in "follow_dlg.c" (which wasn't
including "gtkglobals.h" and thus wasn't getting the redefinition) and
"proto_draw.c" (which was including "gtkglobals.h" but now needs to
include "isprint.h" as well).

svn path=/trunk/; revision=11355
2004-07-09 23:02:38 +00:00
Guy Harris 70e22b4aba Don't allow non-positive values for the main window width and height
values in the "recent" file.  Also, check for syntax errors in numerical
values.

Set the main window height, as well as the main window width, to default
values before we read in the values from the "recent" file.  (Use
non-positive values here if you want the default to be "don't set the
geometry" - note that you can't set one to a positive value and the
other one to a non-positive value and expect only one to be set; they
*both* have to be positive in order for the size to be set.)

Treat non-positive values for those settings in the "recent" structure
as an indication that we don't have values from them and that we should
therefore not set the window size.

svn path=/trunk/; revision=11353
2004-07-09 21:13:22 +00:00
Gerald Combs 11c2a42da5 Don't show the splash screen if we've been passed the "-G" flag.
svn path=/trunk/; revision=11351
2004-07-09 18:43:04 +00:00
Guy Harris b650d01031 Make the "human-readable text vs. PSML vs. PDML" choice separate from
the "text vs.  PostScript" choice.  The "text vs. PostScript" choice
should probably ultimately be done with a generic set of print methods,
to handle various platform-native print mechanisms more cleanly (and
perhaps the dialog box code for "export as {PDML,PSML}" should be
separate from the "export as text"/"print" dialog).

svn path=/trunk/; revision=11342
2004-07-08 10:36:29 +00:00
Ulf Lamping 76c2bec3ca bugfix: preference related capture options shouldn't be set by preferences,
if Ethereal is running as a capture_child

svn path=/trunk/; revision=11334
2004-07-07 16:31:30 +00:00
Ulf Lamping 355c9126ff don't show webbrowser calling menu items, when using GLib 1.x
svn path=/trunk/; revision=11333
2004-07-07 16:26:52 +00:00
Ulf Lamping 7c73a1552b remove doxygen output dir "html" on make clean
svn path=/trunk/; revision=11332
2004-07-07 16:23:13 +00:00
Guy Harris 081f3ca151 Realize the splash screen window right after creating it, rather than
doing a "show all" followed by a "hide"; that way we don't get a tiny
window that pops up briefly and disappears.

Get rid of the additional positioning of the splash screen -
"splash_window_new()" does that for us.

Expand some comments.

svn path=/trunk/; revision=11331
2004-07-07 07:01:37 +00:00
Guy Harris a54ce518c8 With GLib 1.2[.x], undefine MUST_LAUNCH_BROWSER_OURSELVES, so that we
say that we don't need a preference for the command to launch a browser
(that preference won't make any difference).

svn path=/trunk/; revision=11330
2004-07-07 06:09:50 +00:00
Guy Harris 4077cb9b5b Get rid of the splash screen's title bar on GTK+ 1.2[.x] as well.
svn path=/trunk/; revision=11329
2004-07-07 05:36:10 +00:00
Gerald Combs 04d996b183 Make sure child processes don't create a splash screen. Make the verbs in
the splash screen messages present participles.

svn path=/trunk/; revision=11321
2004-07-06 19:16:04 +00:00
Ulf Lamping 074c978ab5 from Gisle Vanem: if WIN32_LEAN_AND_MEAN is defined,
include shellapi.h too

svn path=/trunk/; revision=11315
2004-07-05 05:40:51 +00:00
Ulf Lamping 8312578ffd beautify the splash screen a bit (increased border)
svn path=/trunk/; revision=11314
2004-07-05 05:32:04 +00:00
Guy Harris 4349706b7e Declare "about_ethereal()" as "void", as it returns no value, and as GCC
warns that it's implicitly declared as "int" if you don't declare its
return type.

svn path=/trunk/; revision=11313
2004-07-04 20:49:38 +00:00
Ulf Lamping 176646edbf added a splash screen while Ethereal is started
svn path=/trunk/; revision=11310
2004-07-04 12:15:41 +00:00
Jörg Mayer 227ba2f04b Trivial warning fixes: () -> (void) and comma at end of enum
svn path=/trunk/; revision=11296
2004-07-01 09:35:33 +00:00
Jörg Mayer 65598a0e7f Doxygen filenames changed
svn path=/trunk/; revision=11293
2004-07-01 08:04:47 +00:00
Anders Broman c33e85ae63 From Martin Mathieson: Show number of detected streams in RTP Analysis window
svn path=/trunk/; revision=11288
2004-06-30 21:17:55 +00:00
Ulf Lamping c6029c079a code cleanup
svn path=/trunk/; revision=11285
2004-06-30 18:24:56 +00:00
Ulf Lamping e26fa0cbbb bugfix to a bug reported by dave.nicoson@thomson.net:
if reopening the capture options dialog, use the same values as before and
don't mess them caused by the units used.

svn path=/trunk/; revision=11283
2004-06-30 17:53:52 +00:00
Guy Harris 9cff51ea78 Include <unistd.h>, if available, to declare "close()".
svn path=/trunk/; revision=11278
2004-06-30 07:12:25 +00:00
Guy Harris 272a2055ab On at least some platforms, a #define of O_BINARY is needed even if
<fcntl.h> is included, as <fcntl.h> doesn't define it.

svn path=/trunk/; revision=11276
2004-06-30 06:58:59 +00:00
Ulf Lamping 24527148ab close temporary merge output file, if merging failed
svn path=/trunk/; revision=11275
2004-06-30 05:49:30 +00:00
Ulf Lamping 14ef5684fa GTK2: convert character encoding from locale to UTF8
before displaying message

svn path=/trunk/; revision=11274
2004-06-29 22:21:04 +00:00
Ulf Lamping 19c7f04794 avoid using tmpnam() for security reasons.
instead of giving the merge stuff a filename,
give it an already opened file descriptor

svn path=/trunk/; revision=11273
2004-06-29 20:59:24 +00:00
Ulf Lamping a24b176c32 define of O_BINARY not needed, if fcntl.h is included
other #include related cleanups

svn path=/trunk/; revision=11272
2004-06-29 20:51:26 +00:00
Ulf Lamping 891608f72e add a preference setting for the web browser command
svn path=/trunk/; revision=11269
2004-06-29 17:10:53 +00:00
Jörg Mayer 4bbb32eaaa The patch to fix the race condition introduced by using tmpnam replaced
insecure code by not-working code.  As I currently lack the time to fix
this properly until Monday as the earliest possible date I undo the patch.

Please note that Ethereal should not be used on multiuser systems with
untrusted users until a proper fix has been applied.

svn path=/trunk/; revision=11263
2004-06-29 03:27:52 +00:00
Ulf Lamping bf6103638f minor bugfix for merge dialog: use the correct handle for resizing
svn path=/trunk/; revision=11259
2004-06-28 15:09:26 +00:00
Gerald Combs d3a09c73d4 Fixes needed for "make distcheck".
svn path=/trunk/; revision=11247
2004-06-27 00:21:57 +00:00
Guy Harris 7737b1382d From Laurent Rabret: replace "lib" with "link /lib"; "lib" is just a
wrapper around "link /lib", and not all Microsoft C compiler
distributions provide "lib".

svn path=/trunk/; revision=11242
2004-06-26 02:16:16 +00:00
Ulf Lamping 10eacc1f0a Add "Resolve Name" to "View/Name Resolution" and
rename "Protocol Properties" to "Protocol Preferences"

svn path=/trunk/; revision=11241
2004-06-25 17:33:33 +00:00
Jörg Mayer 392a0d43c0 doxygen changes:
- moved doxygen.cfg to doxygen.cfg.in and let configure to the substitution
  on unix. Adapted the namke files accordingly.
- Don't add doxygen as a dependency for libethereal and libui: As doxygen is
  an unconditional target, this would cause the applications to be rebuild
  every time make was called, even when nothing changed in the meantime.
  This means that by now we need to do "make doxygen" manually in case we
  want updated documentation.

svn path=/trunk/; revision=11238
2004-06-25 07:10:55 +00:00
Jörg Mayer 0195deceae tmpnam() really should not be used for security reasons.
Replace it where used and update README.developer accordingly.

svn path=/trunk/; revision=11235
2004-06-25 07:04:03 +00:00
Ulf Lamping 84ea1ec5f6 As current implementation won't compile with GLib 1.x,
as a temporary solution, simply do nothing in this case.
Has to be improved later

svn path=/trunk/; revision=11228
2004-06-24 17:45:30 +00:00
Guy Harris aacb8bc9b6 Add "gtk/webbrowser.h" to declare functions from "gtk/webbrowser.c".
Rename "browser_open_program_file()" to "browser_open_data_file()", and
make it open files relative to the application's data directory, as
that's where data files such as HTMLized man pages would be put.  (That
happens to be the program directory on Windows, but it's a different
directory on UN*X - and you aren't guaranteed to be able to find the
program directory on UN*X by looking at argv[0] in any case.)  Move it
to "gtk/webbrowser.c".

Fix "filename2url()" to put "file://", not just "file:", in front of
pathnames on UN*X.

svn path=/trunk/; revision=11216
2004-06-23 01:38:39 +00:00
Guy Harris fe40fa191e Mark some unused variables as such.
svn path=/trunk/; revision=11215
2004-06-22 21:51:55 +00:00
Ulf Lamping eab0af6659 add functionality, to show html files from the local installation
svn path=/trunk/; revision=11213
2004-06-22 16:28:27 +00:00
Guy Harris 11a2f11698 "Home page" is typically two words.
svn path=/trunk/; revision=11210
2004-06-22 01:11:14 +00:00
Guy Harris 26664e5665 Style tweaks, and finish an unfinished comment.
svn path=/trunk/; revision=11209
2004-06-22 01:00:02 +00:00
Guy Harris 9bb3e4cf9e On Mac OS X, use Launch Services to start a Web browser with a given URL.
svn path=/trunk/; revision=11208
2004-06-22 00:40:03 +00:00
Michael Tüxen 388af2fccb Change type of argument of dnd_open_file_cmd to get ethereal compiled.
svn path=/trunk/; revision=11207
2004-06-21 20:12:45 +00:00
Ulf Lamping 2a6da1361c Add experimental feature of opening a webbrowser, to show some of the
webpages from http://www.ethereal.com. This functionality is copied from
the Gimp.
Win32 will use ShellExecute to use the system registered webbrowser.
On unix builds, currently the mozilla browser is hardcoded, we still need a
preference setting for this (I will add this later).

svn path=/trunk/; revision=11206
2004-06-21 17:27:35 +00:00
Ulf Lamping 5c061e582e if more than one file is (drag and) dropped into the program,
merge them together into a new temporary file
(and notice the user by a simple_dialog about it)

svn path=/trunk/; revision=11205
2004-06-21 16:45:07 +00:00
Jörg Mayer 2a08db4349 Remove trailing comma at end of enum
svn path=/trunk/; revision=11203
2004-06-21 10:53:35 +00:00
Ulf Lamping 527ad5b35d use the "correct" resize function for the file selection dialog
svn path=/trunk/; revision=11202
2004-06-21 05:48:15 +00:00
Ulf Lamping 13280b6e38 bugfix: is using last_open_dir with GTK2.4 file chooser
gtk_file_chooser_set_current_folder() is very pedantic of it's parameter,
trim filename so it will be accepted.

svn path=/trunk/; revision=11199
2004-06-20 19:35:04 +00:00
Ulf Lamping 2c59ab145d bugfix: handle NULL pointer correct,
if gtk_file_chooser_get_filename returned NULL

svn path=/trunk/; revision=11197
2004-06-20 18:36:16 +00:00
Ulf Lamping c5bae1f7e3 preference setting, so "ask for unsaved capture files" can be switched off
svn path=/trunk/; revision=11196
2004-06-20 15:57:11 +00:00
Ulf Lamping 17ca623b0f preference setting for the option to "avoid" the capture info dialog
svn path=/trunk/; revision=11195
2004-06-20 14:48:24 +00:00
Ulf Lamping 7e8187df20 added an option to "avoid" the capture info dialog completely.
This matters for "update of list in real time" (sync_mode) only,
as in normal mode you wouldn't otherwise have the possibility
to stop the capture.

svn path=/trunk/; revision=11194
2004-06-20 13:39:44 +00:00
Ulf Lamping f098b90832 preview: add 3 seconds timeout, and show the information got so far.
This will prevent getting the preview information take a lot of time for
*very* long capture files. However, on a Pentium-M 1.6 even a 35MB
capture file will not timeout in this 3 second interval.

svn path=/trunk/; revision=11192
2004-06-20 09:35:51 +00:00
Guy Harris 1d2413f4a3 Include <string.h> to declare "strlen()".
Make "cf_name" a "const gchar *", as, at least in GTK+ 2.x, a "const
gchar *" is assigned to it.  (If it's just a "gchar *" being assigned to
it, declaring it a "const gchar *" does no harm.)

svn path=/trunk/; revision=11190
2004-06-20 07:28:02 +00:00
Guy Harris 894c4e445c Make the elapsed time value an "unsigned int" (if the stop time is
before the start time, due to packet time stamp bogosity, neither a
signed value nor an unsigned value will give a sensible answer, and it
doesn't need to be a "long" as the capture's unlikely to span more than
2^32-1 seconds, again modulo packet time stamp bogosity).  That
eliminates some format item vs. value warnings.

Make the packet count an "unsigned int" (it can't be negative, and we're
unlikely to have more than 2^32-1 packets - and, if we are, it should be
made a guint64).  That eliminates some more format item vs. value
warnings.

Initialize "start_time" and "stop_time" to 0, so that we handle files
with no packets (and so that we don't get uninitialized variable
warnings).

Display the file size with PRIu64, after casting it to "guint64" (that
way we handle file sizes if they're "unsigned int", "unsigned long", or
a 64-bit type on ILP64 platforms (it's 64 bits in BSDs derived from
4.4BSD, even on ILP64 platforms).

Mark the first argument to "file_open_entry_changed()" as unused.

Don't use G_CONST_RETURN, as it's not defined by GLib 1.2[.x].

Get rid of an unused variable.

Clean up white space.

svn path=/trunk/; revision=11189
2004-06-20 03:05:57 +00:00
Ulf Lamping 915f02d0f5 add preview information to the open and merge dialog boxes
svn path=/trunk/; revision=11187
2004-06-19 10:48:06 +00:00
Guy Harris 641a9fbf47 "ti_time" is a "time_t", not a "long" ("time_t" isn't necessarily a
"long").

Make "elapsed_time" an "unsigned int" rather than an "unsigned long" -
2^32-1 seconds is about 136 years, so on LP64 machines that won't
matter, and on ILP32 machines it doesn't make any difference, but it
*does* generate compiler warnings from "%u" being used with "unsigned
long" values.

svn path=/trunk/; revision=11181
2004-06-18 20:23:10 +00:00
Ulf Lamping 14a5228639 add timestamp of first and last packet to summary dialog
svn path=/trunk/; revision=11179
2004-06-18 14:11:09 +00:00
Ulf Lamping fa46f7a6db merge: bugfixes and code cleanup
svn path=/trunk/; revision=11175
2004-06-18 07:41:21 +00:00