Commit Graph

1655 Commits

Author SHA1 Message Date
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