Commit graph

1982 commits

Author SHA1 Message Date
Ulf Lamping
25acc5cd72 Fix a bug reported by Keith A French: No "OK" button for Capture Filter dialog.
Probably caused by the changes of the capture filter drop down box in the capture prepare dialog.

svn path=/trunk/; revision=12222
2004-10-06 17:29:53 +00:00
Guy Harris
bd5bfa9893 From Alejandro Vaquero: make the window bigger so we don't have
overlapped buttons.

svn path=/trunk/; revision=12213
2004-10-06 07:21:05 +00:00
Guy Harris
51dd2ac334 Make the default capture filter be the last one used, as it was before -
it's a pain to have to keep typing the same filter over and over again
if you're trying multiple captures of the same type of traffic.  At
least with GTK+ 2.x, the text of the filter is selected, so if you start
typing a new filter it'll replace the default filter.

svn path=/trunk/; revision=12212
2004-10-05 23:34:53 +00:00
Guy Harris
919c62cc39 Don't use a terminating entry in the clock_map table, compute the number
of entries in it and check that many entries - that squelches a compiler
warning.

From Alejandro Vaquero: get rid of an unused argument to
"rtp_packet_add_graph()".

svn path=/trunk/; revision=12201
2004-10-05 08:51:16 +00:00
Ulf Lamping
cd4a4308bb add some button tooltips, renamed some buttons
svn path=/trunk/; revision=12192
2004-10-03 16:29:40 +00:00
Ulf Lamping
89d8596294 add some button tooltips
svn path=/trunk/; revision=12191
2004-10-03 16:28:29 +00:00
Ulf Lamping
bdbe26adb2 added some comments
svn path=/trunk/; revision=12185
2004-10-02 11:05:27 +00:00
Ulf Lamping
1d680a74c4 precise a comment
svn path=/trunk/; revision=12184
2004-10-02 09:34:12 +00:00
Ulf Lamping
ba285f9a4e removed ITU-T prefix from H225, so H.225 and H.323 are closer together.
If someone insists in using the ITU-T prefix, it should be applied to both protocols.

svn path=/trunk/; revision=12183
2004-10-02 08:41:52 +00:00
Ulf Lamping
8878a1521f GUI fine tuning, e.g. removed useless "Unselect" button, some behaviour things, ...
svn path=/trunk/; revision=12182
2004-10-02 08:31:58 +00:00
Guy Harris
c2e5e4868d Don't define "transport_prot_name[]" in "h323_conversations.h", as that
puts a separate copy in every file that includes "h323_conversations.h",
even if it doesn't use that copy.  Instead, define it in
"h323_conversations.c" and declare it in "h323_conversations.h".

svn path=/trunk/; revision=12179
2004-10-01 22:09:38 +00:00
Ulf Lamping
433701e19b indirection in menu entry not needed (maybe later again)
svn path=/trunk/; revision=12175
2004-10-01 15:55:14 +00:00
Ulf Lamping
a1f280a04e clarify column titles
svn path=/trunk/; revision=12174
2004-10-01 15:36:53 +00:00
Guy Harris
ac43a4c8c8 From Francisco Alcoba: handle H.323 conversations over UDP and SCTP.
svn path=/trunk/; revision=12169
2004-10-01 09:13:33 +00:00
Guy Harris
92ee993e82 "prefs-int.h" belongs in epan, too.
svn path=/trunk/; revision=12168
2004-10-01 08:33:53 +00:00
Guy Harris
01f4257058 From Alejandro Vaquero:
RTP graphic analysis;

	assorted bug fixes;

	display delay and jitter in milliseconds, and add the percentage
	of lost packets to the statistics.

svn path=/trunk/; revision=12166
2004-10-01 07:14:50 +00:00
Ulf Lamping
d235806dde use "Analyze" not "Analyse", as in the menu.
add some tooltips

svn path=/trunk/; revision=12163
2004-10-01 05:42:02 +00:00
Ulf Lamping
2cf1e653b7 removed unreferenced "label_stats"
svn path=/trunk/; revision=12162
2004-10-01 05:17:53 +00:00
Guy Harris
d23ca96d16 Add an RCS ID.
svn path=/trunk/; revision=12154
2004-09-30 19:49:48 +00:00
Guy Harris
3c5560871b Set svn:keywords to Id to expand RCS IDs, and set svn:eol-style to
native to canonicalize line endings.

svn path=/trunk/; revision=12153
2004-09-30 19:36:22 +00:00
Anders Broman
2e0b11edbf From Lars Roland:
Having a closer look at the new and very useful H323 Call Analysis 
feature, I have found some bugs and unnecessarily complicated code for 
managing the registration of the tap listeners. So I decided to rewrite 
this part of the source code. This part of the code is much smaller now. 
Unnecessary and wrong calls of register_ethereal_tap() and 
register_tap_listener_xxx() have been removed or replaced.

I also fixed a bug with RAS Messages.

svn path=/trunk/; revision=12149
2004-09-30 18:09:09 +00:00
Guy Harris
2398487dc2 For file browsing dialog boxes, the affirmative button should be "OK",
not "Save".

In UN*X with GTK+ 2.x, put the affirmative button in file dialogs to the
right of the cancel button, as is done with other dialogs.

svn path=/trunk/; revision=12146
2004-09-30 02:02:35 +00:00
Anders Broman
a95464b528 Add
h323_analysis.h	\
	h323_conversations.h	\
	h323_conversations_dlg.h	\

svn path=/trunk/; revision=12144
2004-09-29 22:35:46 +00:00
Anders Broman
76f4b01674 Add
h323_analysis.c	\
	h323_conversations_dlg.c	\

svn path=/trunk/; revision=12143
2004-09-29 22:34:01 +00:00
Anders Broman
3dc86aaf55 From Miha Jemec: I implemented a H323 call decoder. Using the TAP system, it keeps track of each call, number of packets, setting filter and a more detailed analysis of each call.
svn path=/trunk/; revision=12141
2004-09-29 22:20:46 +00:00
Guy Harris
7f5b234c5c Move the column preferences stuff to epan (the rest of the preferences
stuff is already there).

Update Gerald's e-mail address in column.h.

svn path=/trunk/; revision=12131
2004-09-29 02:54:22 +00:00
Guy Harris
eaadcc4c62 Move various tables into the epan directory.
svn path=/trunk/; revision=12130
2004-09-29 00:52:45 +00:00
Guy Harris
6472876ab3 Move the tap infrastructure to the epan directory.
svn path=/trunk/; revision=12128
2004-09-29 00:06:36 +00:00
Guy Harris
89dfea27d2 Normalize line endings and set svn:eol-style to native.
Set svn:keywords to Id to expand RCS IDs.

Include <string.h> to declare "strcmp()" and "strlen()".

svn path=/trunk/; revision=12126
2004-09-28 23:25:48 +00:00
Ulf Lamping
28c4511d07 from Thomas Palmer: add a combobox for the recently used capture filter strings
svn path=/trunk/; revision=12123
2004-09-28 18:04:15 +00:00
Guy Harris
bbe7f89742 Move prefs.c and prefs.h into the epan subdirectory.
svn path=/trunk/; revision=12115
2004-09-27 22:55:15 +00:00
Guy Harris
0e3e50e1f7 "ethereal_stock_icons()" isn't used outside "gtk/toolbar.c" (and should
presumably only be called once in any case), so make it static.

svn path=/trunk/; revision=12114
2004-09-27 22:32:09 +00:00
Guy Harris
975e6f2bd1 At least in the screenshot at
http://ftp.gnome.org/pub/GNOME/teams/marketing/en/2004/two-eight-screenshots/html/g27-openwithhal.png

a "browse" button in GNOME has a label "Browse", and I think that's the
case in at least some Windows applications as well, so give browse
buttons "Browse" as a text label.

svn path=/trunk/; revision=12113
2004-09-27 22:21:31 +00:00
Ulf Lamping
0ea2f8e258 As the GTK Wimp default theme (since 0.6.1) won't display any icons in buttons any longer (which is typical for win applications), the browse button won't display anything for GTK2 now. Add some ... into it, which is also looking ok together with the stock icon on other platforms.
svn path=/trunk/; revision=12112
2004-09-27 19:44:24 +00:00
Guy Harris
3bee1b0611 When applying preferences, we have to apply the protocol preferences
before applying any other preferences, as, before we've applied them,
the internal state of the preferences in some dissectors might be
inconsistent (for example, the 802.11 dissector might've had its
number-of-WEP-keys preference increased but might not yet have allocated
a table for the WEP keys), and, as "gui_prefs_apply()" could cause a
redissection when redisplaying, that could cause dissectors to
malfunction (e.g., crash).

svn path=/trunk/; revision=12102
2004-09-25 22:50:58 +00:00
Ulf Lamping
bec5f63f1c as the interface is usually fixed, or it can be selected by the interface drop down list, grab the keyboard focus at the filter string field.
svn path=/trunk/; revision=12091
2004-09-24 21:19:48 +00:00
Ulf Lamping
8f921fa5f4 add a link to the Ethereal wiki front page
svn path=/trunk/; revision=12084
2004-09-24 15:41:46 +00:00
Ulf Lamping
6cd11f14ef first steps towards using the User's Guide as Ethereal's help system
svn path=/trunk/; revision=12021
2004-09-16 22:07:03 +00:00
Guy Harris
6ad89dda90 The list of protocols should be sorted in a case-insensitive fashion, so
giFT, iSCSI, and iSNS don't show up at the end.  Protocol short names
are ASCII, so just use "g_ascii_strcasecmp()".

Clean up white space.

svn path=/trunk/; revision=12020
2004-09-16 21:30:51 +00:00
Ulf Lamping
458b67ae43 get GDK window geometry only, if widget is visible
svn path=/trunk/; revision=11994
2004-09-15 05:46:56 +00:00
Guy Harris
f23f4ecf04 Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is.

svn path=/trunk/; revision=11972
2004-09-11 23:03:36 +00:00
Guy Harris
acdc9439b3 Get rid of some #includes that caused trouble on Windows - we need to
make this use Ethereal's data structurs for addresses, not the OS's.

svn path=/trunk/; revision=11971
2004-09-11 22:57:52 +00:00
Guy Harris
ee4348b9b0 Get rid of some #includes that caused trouble on Windows - we need to
make this use Ethereal's data structurs for addresses, not the OS's.

svn path=/trunk/; revision=11970
2004-09-11 22:53:17 +00:00
Guy Harris
ac982aa7a5 Move the stuff to handle ASCII <-> EBCDIC conversions to
"epan/charsets.c"; other character set translation code should perhaps
go there as well.

svn path=/trunk/; revision=11958
2004-09-10 22:59:37 +00:00
Guy Harris
8e90f07c71 Hoist the code for handling "-G" into a common module.
svn path=/trunk/; revision=11956
2004-09-10 22:47:02 +00:00
Gilbert Ramirez
f676f7107b Add a "-G fields2" option which is like "-G fields", but extends the field
records by tw fields: base (for integers), and blurb

Add a "-G values" option which shows value strings and true_false strings for
the fields that have them.

svn path=/trunk/; revision=11954
2004-09-10 15:21:20 +00:00
Ulf Lamping
40dc36b99c Try to get the window geometry only, if a GdkWindow really exists for that GtkWidget (e.g. the widget isn't hidden)
svn path=/trunk/; revision=11944
2004-09-08 19:29:09 +00:00
Ulf Lamping
636317d3a6 Fix a minor bug only with GTK2.4: if have a problem while saving a file (e.g. filename already exists) will lead to an unresponding file dialog. The fix will close the dialog, which isn't the best solution, but I don't see a better one.
svn path=/trunk/; revision=11943
2004-09-08 19:26:36 +00:00
Ulf Lamping
f5ba8a6971 sort_iter_compare_func() only needed with GTK2
svn path=/trunk/; revision=11937
2004-09-08 05:55:21 +00:00
Guy Harris
82b8f8edbb "g_string_printf()" is GLib 2.x-only, but "g_string_sprintf()" works in
2.x and 1.2[.x].  Use "g_string_sprintf()", its deprecation
nonwithstanding.

svn path=/trunk/; revision=11935
2004-09-07 23:20:53 +00:00
Guy Harris
bf3516fb3f Squelch a compiler warning.
svn path=/trunk/; revision=11933
2004-09-07 20:10:35 +00:00
Guy Harris
d9454e5b00 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=11932
2004-09-07 20:10:00 +00:00
Guy Harris
9e8d653b21 Set svn:eol-style to native to keep line endings canonicalized.
Set svn:keywords to Id to expand RCS IDs.

svn path=/trunk/; revision=11931
2004-09-07 20:07:08 +00:00
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
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
Ulf Lamping
11edbf29b1 cut text_page related things from help_page.c and
move into new file text_page.c

svn path=/trunk/; revision=11115
2004-06-05 09:57:11 +00:00
Guy Harris
9e6a540f10 Make the definition of "simple_dialog()" match its declaration.
Make the "type" argument to "vsimple_dialog()" also be an ESD_TYPE_E.

svn path=/trunk/; revision=11112
2004-06-04 21:12:01 +00:00
Ulf Lamping
80afd260f5 add more details for doxygen
svn path=/trunk/; revision=11110
2004-06-04 20:05:31 +00:00
Ulf Lamping
fa7a022db3 add more details for doxygen
svn path=/trunk/; revision=11107
2004-06-04 17:19:01 +00:00
Guy Harris
64d5806cec Make static some routines and variables not used outside the source file
defining them.

Move declarations of some callbacks outside the source files using them
into the appropriate header, and arrange that the appropriate header is
included by those source files.

Move the SAT_E definition into a "sat.h" file, included both by
"endpoint_talkers_table.h" and "hostlist_table.h", so that both of the
latter headers can be included by the same file ("menu.c" has to include
both, as per the change in the previous paragraph).

svn path=/trunk/; revision=11096
2004-06-03 21:46:27 +00:00
Guy Harris
dd2b4bd393 "gtk_file_selection_set_filename()" doesn't work with a GtkFileChooser,
and "gtk_file_chooser_set_filename()" requires an absolute path, so ""
isn't valid.  Get rid of the "gtk_file_selection_set_filename()" call in
"file_selection_new()".

Put in a comment asking why we're using
"gtk_file_selection_set_filename()" at all.

svn path=/trunk/; revision=11095
2004-06-03 21:17:06 +00:00
Ulf Lamping
763d96e8de enable chm file generation for doxygen,
move chm filename setting to module specific config file

svn path=/trunk/; revision=11091
2004-06-03 14:57:23 +00:00
Ulf Lamping
03f8df8a9a add details for doxygen
svn path=/trunk/; revision=11090
2004-06-03 14:54:26 +00:00
Guy Harris
7928433795 Make the definition of "register_tap_menu_item()" match its declaration.
svn path=/trunk/; revision=11079
2004-06-03 02:14:50 +00:00
Guy Harris
2f6fd458d4 Fix a typo.
svn path=/trunk/; revision=11078
2004-06-03 02:14:14 +00:00
Ulf Lamping
d775bed598 add details for doxygen
svn path=/trunk/; revision=11077
2004-06-02 22:13:04 +00:00
Ulf Lamping
eacfa53105 add details for doxygen
svn path=/trunk/; revision=11076
2004-06-02 20:14:51 +00:00
Ulf Lamping
d643814e7e add details for doxygen
svn path=/trunk/; revision=11074
2004-06-02 18:44:10 +00:00
Ulf Lamping
92ddb18b8c move "extern GtkWidget *main_display_filter_widget" from
various stats files to gtkglobals.h

svn path=/trunk/; revision=11073
2004-06-02 07:12:11 +00:00
Guy Harris
9260d709ec Get rid of the #if 0'ed out "rtp_payload_type_vals[]" table - we should
be using the one from libethereal.

svn path=/trunk/; revision=11072
2004-06-02 07:01:04 +00:00
Ulf Lamping
191e09cea4 fix a doxygen comment
svn path=/trunk/; revision=11070
2004-06-02 06:44:40 +00:00
Guy Harris
d3b788f247 Make the definition of "add_hostlist_table_data()" match its
declaration.

Give the address and port arguments to "add_hostlist_table_data()"
appropriate names and Doxygen comments (they're not a source address and
port, they're just an address and port), and do the same for the address
and port members of a "hostlist_talker_t".

Get rid of extra unnecessary variables in "add_hostlist_table_data()".

Clean up indentation.

svn path=/trunk/; revision=11066
2004-06-01 23:00:24 +00:00
Ulf Lamping
66f18e8c57 bugfix: don't double define rtp_payload_type_vals
svn path=/trunk/; revision=11065
2004-06-01 22:12:37 +00:00
Ulf Lamping
09c030170a minor bugfix from previous check in
svn path=/trunk/; revision=11064
2004-06-01 22:00:22 +00:00
Ulf Lamping
1f27d91439 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11062
2004-06-01 21:56:04 +00:00
Guy Harris
8a37f21551 Make the definition of "add_ett_table_data()" match its declaration.
svn path=/trunk/; revision=11059
2004-06-01 21:29:50 +00:00
Ulf Lamping
4a32d21c22 minor bugfix from previous check in
svn path=/trunk/; revision=11058
2004-06-01 20:37:09 +00:00
Ulf Lamping
a8db4e10a8 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11057
2004-06-01 20:28:05 +00:00
Ulf Lamping
14bf83c340 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11052
2004-06-01 17:33:37 +00:00
Guy Harris
a467bac215 Eliminate a no-longer-used routine.
svn path=/trunk/; revision=11050
2004-06-01 01:01:31 +00:00
Ulf Lamping
8816b7e3c7 add details for doxygen
svn path=/trunk/; revision=11046
2004-05-31 15:47:34 +00:00
Ulf Lamping
d5dec17fba add details for doxygen
svn path=/trunk/; revision=11045
2004-05-31 13:42:58 +00:00
Ulf Lamping
c5196c4a76 split doxygen.cfg into common Ethereal things and module specifics
svn path=/trunk/; revision=11044
2004-05-31 13:42:17 +00:00