Commit Graph

1610 Commits

Author SHA1 Message Date
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
Ulf Lamping 0657cbad2e added some tooltips, minor code cleanup
svn path=/trunk/; revision=11174
2004-06-18 05:58:30 +00:00
Guy Harris 25fc80c257 Use an adverb to modify a verb.
svn path=/trunk/; revision=11173
2004-06-17 22:42:40 +00:00
Guy Harris 6f9b4384d5 Include <string.h> to declare "strdup()".
svn path=/trunk/; revision=11172
2004-06-17 22:41:29 +00:00
Ulf Lamping bd3aea8d04 add Merge functionality to Ethereal in an experimental state.
Copied and sligthly modified merge.c from mergecap.c
(needs a lot of code cleanup, though)

svn path=/trunk/; revision=11171
2004-06-17 21:53:26 +00:00
Ulf Lamping a93978dc30 add implementation of button mask ESD_BTNS_YES_NO
svn path=/trunk/; revision=11170
2004-06-17 21:34:12 +00:00
Ulf Lamping dc1a5f5a60 move font related stuff to new file font_utils.c/.h
do some font related renaming/code cleanup

svn path=/trunk/; revision=11167
2004-06-17 16:44:46 +00:00
Ulf Lamping 25e6749eb4 move font related stuff to new file font_utils.c/.h
do some font related renaming/code cleanup

svn path=/trunk/; revision=11166
2004-06-17 16:35:26 +00:00
Guy Harris f9be24cd13 On Windows, if "get_interface_list()" returns CANT_GET_INTERFACE_LIST
and the error message includes "Not enough storage is available
to process this command" or "The operation completed successfully",
suggest that the user install a WinPcap version later than 3.0 - this is
definitely a Frequently Asked Question on the Ethereal list.

svn path=/trunk/; revision=11143
2004-06-12 07:47:14 +00:00
Guy Harris 77fcb848f2 Move "dfilter_expr_dlg_delete_event_cb()" after
"dfilter_expr_dlg_cancel_cb()" to avoid use-before-declaration warnings.

svn path=/trunk/; revision=11136
2004-06-10 20:16:50 +00:00
Guy Harris 045b535aed "delete_event" is an event, so its handler takes three arguments, not
two, and it returns a gboolean.

svn path=/trunk/; revision=11133
2004-06-10 10:09:58 +00:00
Guy Harris f2cf0c1e0f From Stas Grabois: don't show disabled protocols in the "Add Expression"
and "Decode As" dialogs (so that you can cut down the size of the
protocol lists in those dialogs by disabling "uninteresting" protocols).

svn path=/trunk/; revision=11132
2004-06-10 09:47:25 +00:00
Gerald Combs 733b1556ce Remove config.nmake dependencies from epan/Makefile.am and gtk/Makefile.am.
svn path=/trunk/; revision=11130
2004-06-09 19:20:46 +00:00
Gerald Combs 058b3c5582 Add Automake/Autoconf Doxygen targets.
svn path=/trunk/; revision=11128
2004-06-09 03:08:13 +00:00
Guy Harris 17e512b059 Don't define or set "txt" in "text_page_redraw()" for GTK+ 2.x, as we
don't use it in that case.

svn path=/trunk/; revision=11125
2004-06-07 19:49:37 +00:00
Ulf Lamping d9c70dcdf6 add more details for doxygen
svn path=/trunk/; revision=11122
2004-06-05 13:28:13 +00:00
Ulf Lamping dd5bc1c889 add more details for doxygen
svn path=/trunk/; revision=11121
2004-06-05 12:12:13 +00:00
Ulf Lamping 61cbfe990d add more details for doxygen
svn path=/trunk/; revision=11119
2004-06-05 11:03:14 +00:00
Ulf Lamping 0dde603d99 alyways use SIGNAL_EMIT_BY_NAME with one user parameter,
remove SIGNAL_EMIT_BY_NAME1 completely

svn path=/trunk/; revision=11118
2004-06-05 10:27:38 +00:00
Ulf Lamping f8812f92c4 remove gtk_widget_ref / OBJECT_SET_DATA_FULL,
as reference handling is done by GTK, so doing it is pretty useless

svn path=/trunk/; revision=11117
2004-06-05 10:13:37 +00:00