Commit graph

1580 commits

Author SHA1 Message Date
Bill Meier
26f1bad60c General cleanup:
Indentation: Use 4 spaces;
  parens;
  unneeded initializers;
  whitespace.

svn path=/trunk/; revision=47137
2013-01-17 22:26:37 +00:00
Bill Meier
e19db35fab Use gtk_box_pack_start() instead of gtk_container_add()
when packing into a [v|h]box so that Gtk2 & Gtk3 behavior is
 the same.

Also: Add an XXX comment:
        "progess" rendering doesn't seem to work for Gtk3 ??


svn path=/trunk/; revision=47135
2013-01-17 21:34:23 +00:00
Bill Meier
f06b4b62bf Use gtk_box_pack_start() instead of gtk_container_add()
when packing into a [v|h]box so that Gtk2 & Gtk3 behavior is
 the same.

Also: Add an XXX comment:
        "progess" rendering doesn't seem to work for Gtk3 ??

svn path=/trunk/; revision=47134
2013-01-17 20:56:13 +00:00
Anders Broman
402906be13 Opening the capture options triggers a rescan of all the packets caused by the call to update_decryption_mode_list() for airpcap.
If we don't get the airpcap_if_list, don't do anything regarding air_pcap.

update_decryption_mode_list() should probably check if a change is taking place before rescaning all packets.

svn path=/trunk/; revision=47131
2013-01-17 12:21:57 +00:00
Bill Meier
88c3c64b0a Fix Gtk3 window resize behavior to match Gtk2.
Specifically: use gtk_box_pack_start() instead
 of gtk_container_add() in a number of places.

Also: do some whitespace cleanup.

svn path=/trunk/; revision=47129
2013-01-16 23:18:53 +00:00
Bill Meier
f0f5583ce4 Remove redundant call to gtk_box_set_child_packing().
svn path=/trunk/; revision=47128
2013-01-16 22:43:58 +00:00
Bill Meier
c90956edb4 General cleanup: whitespace, parens & etc.
svn path=/trunk/; revision=47126
2013-01-16 22:32:29 +00:00
Bill Meier
8d41249753 Use gdk_cairo_set_source_rgba() and GdkRGBA.
svn path=/trunk/; revision=47124
2013-01-16 21:51:20 +00:00
Bill Meier
128f123d7f Use gdk_cairo_set_source_rgba() and GdkRGBA.
svn path=/trunk/; revision=47121
2013-01-16 21:07:52 +00:00
Bill Meier
aed95072b4 Replace gtk_table...() with ws_gtk_grid...();
Also; do some whitespace cleanuyp.

svn path=/trunk/; revision=47118
2013-01-16 17:09:22 +00:00
Bill Meier
185f323231 Replace gtk_table...() with ws_gtk_grid...();
Use gtk_box_pack_start() instead of
 gtk_container_add() in a few places so that
 window resize behavior is the same for
 Gtk2 and Gtk3.

Also: do some whitespace cleanup.

svn path=/trunk/; revision=47117
2013-01-16 16:52:32 +00:00
Bill Meier
03101e015e (Trivial) whitespace cleanup;
svn path=/trunk/; revision=47116
2013-01-16 16:24:32 +00:00
Bill Meier
8d385b0b75 Fix a Gtk2 vs Gtk3 issue;
Specifically: use gtk_box_pack_start()
 instead of gtk_container_add() in one case
 so that (for Gtk3) a window component properly
  expands when the window is resized vertically.

svn path=/trunk/; revision=47115
2013-01-16 16:19:05 +00:00
Guy Harris
09a4761179 Add some routines to wsutil to, at least on some platforms, add
information to crash dumps and the like.  (Currently, we only handle OS
X's CrashReporter, but we should do this on other platforms where this
information can be added and would be helpful.)

svn path=/trunk/; revision=47109
2013-01-16 00:13:33 +00:00
Guy Harris
a694ccd013 Set the crash info as early as possible in main(), so that it shows up
in crashes that happen early in the process.

Clean up white space.

svn path=/trunk/; revision=47108
2013-01-16 00:12:27 +00:00
Bill Meier
f4e862fb1a Cleanup:
- "localize" some variables; remove some unneeded initializers;
- indentation, whitespace, long lines & etc.

svn path=/trunk/; revision=47103
2013-01-15 21:52:23 +00:00
Bill Meier
026c798c98 Fix several window resize behavior differences between Gtk2 & Gtk3.
Specifically: replace several gtk_container_add() calls by
              gtk_box_pack_start() calls.

svn path=/trunk/; revision=47102
2013-01-15 21:09:12 +00:00
Bill Meier
786d870f1f Cleanup:
- localize some vars; remove some unneeded initializers;
- indentation & white space & etc.

svn path=/trunk/; revision=47100
2013-01-15 17:54:47 +00:00
Bill Meier
e0b350aafb Fix Gtk2 vs Gtk3 issue:
Set a default size for the window so that the
initial size of the window in Gtk3 is similar to
that in Gtk2. That is: so that all the columns
(and a number of rows) show.

svn path=/trunk/; revision=47099
2013-01-15 17:10:32 +00:00
Bill Meier
3adfacfea6 Cleanup: indentation, whitespace, long-lines, formatting & etc.
svn path=/trunk/; revision=47092
2013-01-15 15:16:53 +00:00
Bill Meier
ef4749d4e2 Minor cleanup:
- remove severl gtk_box_set_child_packing() statements which "do nothing";
 - replace several gtk_container_add()/gtk_box_set_child_packing() sequences
    by gtk_box_pack_start().

svn path=/trunk/; revision=47087
2013-01-15 01:42:09 +00:00
Bill Meier
8c2127b946 Replace gtk_table...() with ws_gtk_grid...()
(with some finagling so that the layout is about the same
for both Gtk2 & Gtk3).

svn path=/trunk/; revision=47086
2013-01-14 23:54:08 +00:00
Gerald Combs
b82f42d8cf When the user is editing text or selecting from a combo box, don't
immediately close the dialog if he or she presses the escape or enter
keys. Revert the value if the user presses escape. Properly handle the
base for uint preferences. Fix a NULL pointer dereference.

Add a gchar_free_to_qstring utility routine which creates a QString from
a g_malloced string and frees it.

svn path=/trunk/; revision=47083
2013-01-14 22:21:11 +00:00
Chris Maynard
afdc2a9a12 Fix Coverity CID 741081: Logically dead code. (Minor whitespace cleanup also.)
svn path=/trunk/; revision=47075
2013-01-14 19:00:44 +00:00
Chris Maynard
c6c41ee09b Fix Coverity CID 741991: Wrong sizeof argument.
svn path=/trunk/; revision=47074
2013-01-14 18:41:25 +00:00
Chris Maynard
fc9663740e Use SET_ADDRESS() to initialize src and dst as both src.hf and dst.hf were uninitialized. Fixes Coverity CID's 752013-752014: Uninitialized scalar variable.
svn path=/trunk/; revision=47070
2013-01-14 16:55:07 +00:00
Bill Meier
31e5c6f727 Replace gtk_table...() with ws_gtk_grid...().
Also:
  Use #if 0 rather than /* */ to coment out some code;
  Very minor whitespace fixup.

svn path=/trunk/; revision=47068
2013-01-14 16:17:42 +00:00
Bill Meier
165f86b9a3 Cleanup: Whitespace, formatting-style, long-lines & etc.
Use "4 space" indentation.

Add an XXX comment about better formating needed
 for the text in the Help window (so the
 text columns line up and so the Help text
 looks better).

Comment out a "does-noting" for loop;

svn path=/trunk/; revision=47059
2013-01-14 04:28:16 +00:00
Bill Meier
c7120ce08e Replace gtk_table...() with ws_gtk_grid...();
Also: Minor changes so that window resizing is handled
      identically in Gtk2 & Gtk3.

svn path=/trunk/; revision=47058
2013-01-14 03:13:55 +00:00
Bill Meier
492d84d6a2 General whitespace & formatting style cleanup.
svn path=/trunk/; revision=47044
2013-01-12 20:00:50 +00:00
Bill Meier
83bc776dc3 Replace gtk_table...() with ws_gtk_grid...().
svn path=/trunk/; revision=47043
2013-01-12 18:40:01 +00:00
Bill Meier
4fbdb87e1a General cleanup: whitespace, long-lines, & etc.
svn path=/trunk/; revision=47042
2013-01-12 16:23:09 +00:00
Bill Meier
b57a1dd5db Replace gtk_table...() with ws_gtk_grid...().
Also: remove some trailing whitespace.

svn path=/trunk/; revision=47038
2013-01-11 20:27:43 +00:00
Bill Meier
a63b7f9264 Replace gtk_table...() with ws_gtk_grid...();
Add an XXX comment about trying (and failing)
 to change the behavior of the grid when the
 column prefs window is horizontally resized.

Also: do whitespace cleanup: indentation & etc.

svn path=/trunk/; revision=47032
2013-01-11 18:26:35 +00:00
Bill Meier
00ae417aae Remove a left-over "// note to myself".
svn path=/trunk/; revision=47030
2013-01-11 15:56:23 +00:00
Bill Meier
9ffde43550 Replace gtk_table...() with ws_gtk_grid...();
Also: Do general cleanup:
 - #if 0 unused value_strings and unused functions;
 - Whitespace, formatting style, long-lines, etc.

svn path=/trunk/; revision=47029
2013-01-11 14:47:47 +00:00
Bill Meier
18679dccbd Replace gtk_table..() with ws_gtk_grid...().
svn path=/trunk/; revision=47027
2013-01-11 01:41:55 +00:00
Bill Meier
e28da09c31 Replace gtk_table...() with ws_gtk_grid...().
Also: Do some minor whitespace cleanup.

svn path=/trunk/; revision=47026
2013-01-11 01:19:05 +00:00
Bill Meier
12220072c9 Replace gtk_table...() with ws_gtk_grid...().
Also: do general whitespace, long-lines and formatting style cleanup.

svn path=/trunk/; revision=47025
2013-01-11 00:54:08 +00:00
Bill Meier
780ff66b6e Replace gtk_table...() with ws_gtk_grid...().
Do some minor changes so that the Gtk2 & Gtk3
 window resizing behavior is the same.

Also: Clean up whitespace: indentation & etc.

svn path=/trunk/; revision=47024
2013-01-10 23:11:35 +00:00
Bill Meier
ee762f80c9 Replace gtk_table...() with ws_gtk_grid...();
Also: Remove creation of a widget which is
      never used.

svn path=/trunk/; revision=47023
2013-01-10 21:47:25 +00:00
Bill Meier
1dba2b6377 Add ws_gtk_grid_attach(); Update some comments.
svn path=/trunk/; revision=47022
2013-01-10 20:47:40 +00:00
Bill Meier
9e1bf0acef Update comments.
svn path=/trunk/; revision=47021
2013-01-10 20:46:58 +00:00
Bill Meier
708de14dc8 Replace gtk_table...() with ws_gtk_grid...().
svn path=/trunk/; revision=47020
2013-01-10 16:29:30 +00:00
Bill Meier
d6ddcc9e54 Replace gtk_table...() with ws_gtk_grid...()
with some minor changes so that window resizing
 functions the same for both Gtk2 & Gtk3.

svn path=/trunk/; revision=47019
2013-01-10 15:19:29 +00:00
Irene Rüngeler
2dc365db46 Another solution to fix bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8183.
Now both windows are modal.

svn path=/trunk/; revision=47018
2013-01-10 12:44:52 +00:00
Irene Rüngeler
2a7031f12b Fix for bug 8183 reported by David Bergeron.
svn path=/trunk/; revision=47015
2013-01-10 09:27:07 +00:00
Bill Meier
d649184e55 Fix indentation to match editor modelines.
svn path=/trunk/; revision=47009
2013-01-10 03:35:16 +00:00
Bill Meier
07651cf836 Fixes:
1. 'File ! Open' changes applied to the 'File ! Merge' window;
2. Small change made so that the GTk2 & Gtk3 behavior are the same (Finally !)
3. window structure picture and notes updated.

svn path=/trunk/; revision=47008
2013-01-10 02:51:36 +00:00
Bill Meier
3c022129bc Add a picture and some notes about the capture_file-dialog window.
svn path=/trunk/; revision=47007
2013-01-09 22:03:40 +00:00
Anders Broman
0a8073c567 Follow up on 47003
Use ws_gtk_grid...() instead of gtk_table...(); in more places.

svn path=/trunk/; revision=47005
2013-01-09 21:35:18 +00:00
Bill Meier
513e5eb177 Use ws_gtk_grid...() in place of gtk_table...().
The Gtk2 vs Gtk3 behavior is not precisely the same
when resizing the window hozizontally; IMO it's
"good enough" (after several days of playing around
trying to make the behaviour identical).



svn path=/trunk/; revision=47004
2013-01-09 21:04:44 +00:00
Anders Broman
bf22d3ffd3 Use ws_gtk_grid...() instead of gtk_table...();
svn path=/trunk/; revision=47003
2013-01-09 19:10:47 +00:00
Gerald Combs
0fa6a4c421 Allow editing via the advanced preferences tree. Double-clicking an
item's name, status, or type resets it to its default value.
Double-clicking the item's value lets you edit it. Implement the
advanced search field. (Clicking OK and Cancel still doesn't yet do
anything.)

Note that we could probably use a
prefs_register_{uint16|port}_preference routine for 16-bit values. Make
reset_pref public. Update some names and descriptions.

svn path=/trunk/; revision=46986
2013-01-07 19:13:03 +00:00
Alexis La Goutte
b6d08dca21 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46981
2013-01-06 19:42:11 +00:00
Anders Broman
9520710d83 Use gdk_cairo_set_source_rgba and GdkRGBA
svn path=/trunk/; revision=46977
2013-01-06 17:13:48 +00:00
Anders Broman
69c0967fc7 Use gdk_cairo_set_source_rgba
svn path=/trunk/; revision=46976
2013-01-06 16:58:21 +00:00
Anders Broman
6740bef97e Use gdk_cairo_set_source_rgba and GdkRGBA
svn path=/trunk/; revision=46975
2013-01-06 16:36:22 +00:00
Anders Broman
ecd019e2e1 Use GdkRGBA colors directly in the array
svn path=/trunk/; revision=46974
2013-01-06 16:22:59 +00:00
Alexis La Goutte
9452b89de5 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46970
2013-01-06 14:51:17 +00:00
Alexis La Goutte
12fbc27e74 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46969
2013-01-06 14:51:08 +00:00
Alexis La Goutte
25e3c84c01 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46968
2013-01-06 14:51:00 +00:00
Bill Meier
93c28b7da1 Rename ws_gtk_grid_attach() to ws_gtk_grid_attach_defaults();
Also: fix a typo in a comment in 'gui_utils.h'

svn path=/trunk/; revision=46951
2013-01-05 15:25:30 +00:00
Gerald Combs
4a3342e4ba Break out preference type names, type descriptions, string
representations, and default status out of write_prefs and into their
own routines. Split the corresponding custom preference write callbacks.
Fix an apparent memory leak in the hidden column callback.

Add an initial preferences dialog to the Qt port. Use the new preference
routines to implement an "Adavanced" page similar to the "about:config"
page available in many web browsers. Standard pages will hopefully follow
soon.

Remove some QDebug includes and make sure our QTreeWidgets have uniform
row heights set.

svn path=/trunk/; revision=46942
2013-01-05 02:30:58 +00:00
Anders Broman
c16ab7b57e Use gdk_cairo_set_source_rgba
svn path=/trunk/; revision=46940
2013-01-04 21:10:00 +00:00
Bill Meier
20ee953a8b Fix a minor difference in window handling between Gtk2 & Gtk3:
Use gtk_box_pack_start() instead of gtk_container_add()
   in several places.


svn path=/trunk/; revision=46938
2013-01-04 20:27:29 +00:00
Bill Meier
5a68029ae3 Use ws_gtk_grid...() instead of gtk_table...();
Fix minor differences in window handling between Gtk2 & Gtk3:
   Use gtk_box_pack_start() instead of gtk_container_add() in
   various places.

Also; Do some whitespace and formatting style cleanup.


svn path=/trunk/; revision=46937
2013-01-04 19:27:09 +00:00
Anders Broman
7d1fbc96dc Use gdk_cairo_set_source_rgba
svn path=/trunk/; revision=46935
2013-01-04 17:45:35 +00:00
Anders Broman
ad7f545a50 Fix a cut-and-paste error
svn path=/trunk/; revision=46934
2013-01-04 17:44:38 +00:00
Anders Broman
d9d58c34f2 Add a wrapper for gdk_cairo_set_source_rgba() in GTK2 and use it in io_stat.c
svn path=/trunk/; revision=46932
2013-01-04 17:07:26 +00:00
Bill Meier
886ac9a613 Fix minor differences in window handling between Gtk2 & Gtk3:
Use gtk_box_pack_start() instead of gtk_container_add() in several places.

Also; Do some whitespace and formatting style cleanup.


svn path=/trunk/; revision=46931
2013-01-04 15:57:44 +00:00
Pascal Quantin
deb4f08cb2 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8105 :
Allow use of huges values for localtime / ctime / gmtime with MSVC 2008 or later

svn path=/trunk/; revision=46930
2013-01-04 14:56:27 +00:00
Anders Broman
38fdbeeb7e Apply 46903 to iax_analysis
svn path=/trunk/; revision=46929
2013-01-04 09:13:05 +00:00
Michael Mann
86d690880f replace "unsigned" datatype with "guint". Some mpeg files needed "unsigned int" instead.
bugs 7825-7827 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7825)

svn path=/trunk/; revision=46928
2013-01-04 05:22:43 +00:00
Bill Meier
0db3dd6be3 Use ws_gtk_grid...() in place of gtk_table...();
Add an XXX comment as to an apparent limit on the
 number of characters in a tooltip (at least in one case).

Do some minor whitespace and long-lines cleanup.

svn path=/trunk/; revision=46921
2013-01-03 19:54:02 +00:00
Bill Meier
4f01a9c89e Use ws_gtk_grid...() instead of gtk_table...();
Fix a minor difference in window handling between Gtk2 & Gtk3:
   Use gtk_box_pack_start() instead of gtk_container_add() in one case.

Also; Do some whitespace and formatting style cleanup.

svn path=/trunk/; revision=46920
2013-01-03 18:49:58 +00:00
Bill Meier
4ae567e978 Use ws_gtk_grid...() instead of gtk_table...();
Set the default window size to show the complete window;
Fix a minor difference in window handling between Gtk2 & Gtk3:
   Use gtk_box_pack_start() instead of gtk_container_add() in one case.

Also; misc minor cleanup.

svn path=/trunk/; revision=46918
2013-01-03 17:53:40 +00:00
Bill Meier
5e8c774ce7 Replace use of gtk_table...() by ws_gtk_grid...().
svn path=/trunk/; revision=46917
2013-01-03 17:01:49 +00:00
Bill Meier
936626b160 Use ws_gtk_grid...() in place of gtk_table...();
Also: Fix a minor difference in window handling between Gtk2 & Gtk3:
  Use gtk_box_pack_start() instead of gtk_container_add(0 in one case.


svn path=/trunk/; revision=46915
2013-01-03 16:26:20 +00:00
Bill Meier
add135b901 Replace use of gtk_table...() by ws_gtk_grid...().
Untested (since I don't know Lua) (but should be Ok).

svn path=/trunk/; revision=46914
2013-01-03 15:50:10 +00:00
Anders Broman
df50a668b1 From Chris Maynard Wireshark crashes when attempting to obtain help from various dialogs
svn path=/trunk/; revision=46912
2013-01-03 10:49:32 +00:00
Gerald Combs
430e97c866 Move the font preferences to the colors pane and change its name to
"Font and Colors". Use a GtkFontButton to select the font and update the
sample text accordingly. Instead of attempting to resize the sample
color text (which didn't appear to work) scroll to the text that matches
the current combo box selection.

svn path=/trunk/; revision=46909
2013-01-03 01:02:30 +00:00
Bill Meier
98c8897f26 Use ws_gtk_grid...() in place of gtk_table...();
Also: Fix a minor difference in window handling between Gtk2 & Gtk3:
  Use gtk_box_pack_start() instead of gtk_container_add(0 in one case.

svn path=/trunk/; revision=46908
2013-01-02 23:36:16 +00:00
Bill Meier
85d59a5509 Fix a minor window handling difference between GTK2 & GTK3:
Use gtk_box_pack_start() instead of gtk_container_add() in several places.

svn path=/trunk/; revision=46906
2013-01-02 22:59:34 +00:00
Bill Meier
b763c487f0 Fix a GTK3 issue:
Use gtk_box_pack_start() instead of gtk_container_add().

svn path=/trunk/; revision=46904
2013-01-02 22:16:45 +00:00
Bill Meier
93d0b792cb Fix some GTK3 issues:
Use gtk_box_pack_start() instead of gtk_container_add() in several places.

Also:
 Remove several no-effect calls to gtk_box_set_child_packing();
 Use consistent whitespace & formatting style;
 Fix some long lines.

svn path=/trunk/; revision=46903
2013-01-02 21:48:21 +00:00
Bill Meier
7fd75ad2c5 Use scrolled-windows to enclose "custom" prefs pages (User Interface, Layout, etc)
in the same manner as to "protocol prefs" pages.

This ensures that the bottom row buttons won't disappear off the bottom
of the prefs window if one (or more) of the custom prefs pages is too large
to fit vertically within the available screen space.

In Wireshark 1.8, more items were added to the "User Interface" prefs page
thus leading to an increased possibility of this issue occurring.

I believe this fixes Bug #8078.

#Backport Wireshark 1.8


svn path=/trunk/; revision=46885
2013-01-01 20:50:45 +00:00
Gerald Combs
b03e7cec00 Make sure moc can find config.h.
svn path=/trunk/; revision=46876
2012-12-31 19:15:33 +00:00
Gerald Combs
b6382033e1 It might help for the Qt version of Wireshark to link against the Qt
libraries and to have a main() function. Replace some manual Makefile
rules with an implicit rule.

svn path=/trunk/; revision=46875
2012-12-31 19:07:38 +00:00
Alexis La Goutte
c2a63d4c36 Update Makefile to add packet_comment_dialog files
svn path=/trunk/; revision=46874
2012-12-31 15:08:45 +00:00
Gerald Combs
1a5ac2e68d Add a .cpp target for each ui_*.h prerequisite.
svn path=/trunk/; revision=46868
2012-12-31 05:22:47 +00:00
Gerald Combs
4ca47864db Move profile deletion code from profile_dlg.c to profile.c. Add left
mouse and context (right mouse) signals to label stacks and use them to
pop up profile menus in the status bar. Add profile actions (manage,
new, edit, delete) to the profile dialog.

svn path=/trunk/; revision=46863
2012-12-30 19:33:05 +00:00
Bill Meier
7dfa337910 Add a few consts to fix some compiler (GCC) errors.
svn path=/trunk/; revision=46849
2012-12-29 20:56:11 +00:00
Bill Meier
22447e47e7 Add a vertical scrollbar to the summary dialog window.
(The window has gotten pretty tall;
 Creating a multiline 'Capture File Comments'" entry
 may make the buttons inaccessible w/o a scrollbar).

##backport 1.8

svn path=/trunk/; revision=46844
2012-12-29 19:07:48 +00:00
Gerald Combs
f3e41f1b72 Show the current profile name. Fix the packet status.
svn path=/trunk/; revision=46839
2012-12-29 03:56:29 +00:00
Gerald Combs
07571afb77 Fix distcheck.
svn path=/trunk/; revision=46838
2012-12-29 03:31:49 +00:00
Gerald Combs
cce0d8451c Add profile_dialog.
svn path=/trunk/; revision=46837
2012-12-29 02:58:56 +00:00
Gerald Combs
94d8ae945b Try to fix compilation on Windows.
svn path=/trunk/; revision=46836
2012-12-29 02:55:16 +00:00
Gerald Combs
a562691080 Profile switching works when we have a capture file open so go ahead and
enable it.

svn path=/trunk/; revision=46835
2012-12-29 01:42:01 +00:00
Gerald Combs
5bd252c44f Remove some duplicate code from ui/profile.c and move in more code from
ui/gtk/profile_dialog.c. Use the correct profile list in
profile_dialog.c so that deletion works.

Add a profile dialog to the Qt port. For some reason it crashes when
changing configuration profiles, which might be related to bug 7722.
Move the Qt configuration profile initialization from main.cpp to
wireshark_application.cpp. Make sure QMenuBar doesn't grab the
configuration profiles action on OS X. Add more role color names to
tango_colors.h.

svn path=/trunk/; revision=46834
2012-12-29 01:39:02 +00:00
Alexis La Goutte
cdc79cd5e9 Fix [ 76%] Building C object ui/CMakeFiles/ui.dir/profile.c.o ui/profile.c: In function ‘init_profile_list’: ui/profile.c:194:20: error: variable ‘fl_entry’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
svn path=/trunk/; revision=46824
2012-12-28 14:38:02 +00:00
Alexis La Goutte
c4650d85c6 Fix [76%] Building C object ui/CMakeFiles/ui.dir/profile.c.o ui/profile.c: In function ‘init_profile_list’: ui/profile.c:195:20: error: variable ‘profile’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
svn path=/trunk/; revision=46823
2012-12-28 14:37:53 +00:00
Gerald Combs
77caa2d86c Remove an unused variable.
svn path=/trunk/; revision=46811
2012-12-27 17:52:50 +00:00
Gerald Combs
e6baf22f8c Make sure our loops terminate.
svn path=/trunk/; revision=46810
2012-12-27 17:23:40 +00:00
Gerald Combs
cbec3bbaf7 Move common profile code to ui/profile.[ch].
svn path=/trunk/; revision=46808
2012-12-27 17:10:51 +00:00
Evan Huus
1fafe099ab Cast away another const warning that only shows up under really recent GCCs.
svn path=/trunk/; revision=46785
2012-12-26 13:18:58 +00:00
Anders Broman
eb34f28b9f if 0 out debug code
svn path=/trunk/; revision=46784
2012-12-26 12:34:08 +00:00
Anders Broman
369fe110c2 if 0 out debug code
svn path=/trunk/; revision=46783
2012-12-26 12:31:50 +00:00
Anders Broman
fe7a2570db Move summary related stuff to summary_dlg
svn path=/trunk/; revision=46782
2012-12-26 12:29:43 +00:00
Guy Harris
6255cc03f0 Fix another discarded qualifier error.
Remove some redundant declarations/definitions from
ui/gtk/capture_dlg.h.

svn path=/trunk/; revision=46780
2012-12-26 12:24:55 +00:00
Guy Harris
ea888f9113 Squelch some more discarding-qualifiers warnings.
svn path=/trunk/; revision=46771
2012-12-26 11:27:21 +00:00
Guy Harris
4fc5688f87 simple_dialog_primary_start() and simple_dialog_primary_end() are now
declared as returning const char *s; make it so.

svn path=/trunk/; revision=46767
2012-12-26 10:33:02 +00:00
Guy Harris
ce0d04c6d2 Hopefully this case is OK in C++; bit-fields can't be enums in standard
C, so....

svn path=/trunk/; revision=46764
2012-12-26 09:59:18 +00:00
Guy Harris
8ed7a73e22 Fix a bunch of warnings.
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
sizeof.

Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
strtol() and strtoul().

Change some data types to avoid those implicit conversion warnings.

When assigning a constant to a float, make sure the constant isn't a
double, by appending "f" to the constant.

Constify a bunch of variables, parameters, and return values to
eliminate warnings due to strings being given const qualifiers.  Cast
away those warnings in some cases where an API we don't control forces
us to do so.

Enable a bunch of additional warnings by default.  Note why at least
some of the other warnings aren't enabled.

randpkt.c and text2pcap.c are used to build programs, so they don't need
to be in EXTRA_DIST.

If the user specifies --enable-warnings-as-errors, add -Werror *even if
the user specified --enable-extra-gcc-flags; assume they know what
they're doing and are willing to have the compile fail due to the extra
GCC warnings being treated as errors.

svn path=/trunk/; revision=46748
2012-12-26 05:57:06 +00:00
Guy Harris
97937db263 The inverse of GINT_TO_POINTER() is GPOINTER_TO_INT(); use it. That
squelches some warnings.

svn path=/trunk/; revision=46729
2012-12-24 23:12:34 +00:00
Guy Harris
da24fe83a0 The inverse of GINT_TO_POINTER() is GPOINTER_TO_INT(); use it (this
squelches some warnings).

svn path=/trunk/; revision=46728
2012-12-24 23:11:38 +00:00
Guy Harris
d2a22e242d Cast away warnings implicit 64-bit-to-32-bit conversions. (We should
probably have routines that convert strings to numbers and do range
checks, and should also ignore values in the recent and preferences
files that are out of range.)

Cast a string to "char *" to squelch an otherwise-unavoidable warning
about qualifiers being ignored.

The media type for raw binary data is application/octet-stream, not
application octet_stream.

svn path=/trunk/; revision=46727
2012-12-24 23:10:18 +00:00
Guy Harris
74f668444e Use the types that PortAudio specifies for values passed to or returned
from PortAudio; that squelches some implicit 64-bit-to-32-bit conversion
warnings.

Mark unused arguments with _U_ rather than adding fake usages for them.

svn path=/trunk/; revision=46717
2012-12-23 10:18:43 +00:00
Gerald Combs
9a9fd20ece Add ui_packet_comment_dialog.h and ui_time_shift_dialog.h.
svn path=/trunk/; revision=46711
2012-12-23 05:11:49 +00:00
Gerald Combs
a5d5162826 Qt: Implement packet comments. Fix packet detail updates.
GTK+: Shorten the packet comment menu item name.  Remove a couple of
unneeded includes.

Both: Add an arbitrary 20 MB limit when fetching all packet comments.
Use a color from the Tango palette for comments.

svn path=/trunk/; revision=46709
2012-12-23 04:37:58 +00:00
Gerald Combs
aa347d504f Add the time shift dialog.
svn path=/trunk/; revision=46708
2012-12-23 03:45:35 +00:00
Evan Huus
52aff57285 Remove unneeded initializations, and one redundant if condition.
svn path=/trunk/; revision=46702
2012-12-22 21:14:13 +00:00
Evan Huus
2f63301d1f Remove one unneeded initializer and add one missing initializer, as found
by CppCheck.

svn path=/trunk/; revision=46700
2012-12-22 20:53:09 +00:00
Gerald Combs
896eeaf187 The Wireshark file icon makes more sense than a floppy disk[1]. Switch
back to it and name it "Save" instead of "File".

  [1] http://www.hanselman.com/blog/TheFloppyDiskMeansSaveAnd14OtherOldPeopleIconsThatDontMakeSenseAnymore.aspx

svn path=/trunk/; revision=46696
2012-12-22 17:41:40 +00:00
Gerald Combs
0adca98fb7 R46374 replaced too many GTK_STOCK_SAVEs. Put them back.
svn path=/trunk/; revision=46690
2012-12-22 05:21:46 +00:00
Gerald Combs
238e30bfaf Don't use so much white space.
svn path=/trunk/; revision=46689
2012-12-21 23:57:51 +00:00
Gerald Combs
092d8f21ef Add time shifting to the packet list context menu.
svn path=/trunk/; revision=46685
2012-12-21 19:21:34 +00:00
Gerald Combs
d6d3b1b676 Enable and disable the time shift menu action as needed.
svn path=/trunk/; revision=46683
2012-12-21 18:49:44 +00:00
Gerald Combs
962b4f08f7 Move common time shifting code to ui/time_shift.[ch]. Change the
shifting routines to return an error message on failure or NULL on
success.  Prettify and simplify the layout of the GTK+ time shift
dialog. Make the cancel button work as expected.

Add a time shift dialog to the Qt port. I used a Mad Lib (sentence)
layout. Hopefully that won't make translation too difficult.  For some
reason time shifts aren't immediately shown in the packet detail. This
appears to be a bug in the packet list / packet detail code.

Add warning role color definitions to tango_colors.h and use them.

svn path=/trunk/; revision=46680
2012-12-21 17:37:57 +00:00
Martin Kaiser
8c9f80fccc trivial: clean up ui/gtk/prefs_filter_expressions.c
replace TABs with spaces
   add editor modelines

svn path=/trunk/; revision=46679
2012-12-21 17:07:51 +00:00
Bill Meier
02e201da7b Convert to use new ws_gtk_grid...() wrappers to replace
direct use of Gtktable.

(The first of many conversions ...)

Essentially: the wrappers use GtkTable on Gtk2 and GtkGrid on Gtk3.

svn path=/trunk/; revision=46655
2012-12-21 06:30:55 +00:00
Bill Meier
43df5e02ac Wrapper functions and macros to be used to replace
Wireshark Gtk2 GtkTable code with code providing
 essentially equivalent funtionality on Gtk2 and Gtk3.

 See gui_utils.h for details.

svn path=/trunk/; revision=46654
2012-12-21 06:27:00 +00:00
Gerald Combs
2ae8b65a39 Reduce the spacer height in the "go to" and search frames. Fix the
search frame class.

svn path=/trunk/; revision=46651
2012-12-21 04:42:05 +00:00
Anders Broman
b3dbedd144 From Edwin Groothuis:
IO Stats - Smooth should be per graph.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8090

svn path=/trunk/; revision=46631
2012-12-20 13:15:20 +00:00
Evan Huus
4e642fde4c Tweak the order of the UI updates when finishing a live-update capture so that
certain menu items are enabled correctly.

Should fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8108

svn path=/trunk/; revision=46629
2012-12-20 04:06:44 +00:00
Evan Huus
b06842274a Remove unused parameter from iousers_process_address_packet
svn path=/trunk/; revision=46628
2012-12-20 03:20:24 +00:00
Michael Mann
072041e3fb Add absolute date options (-ad) for start date/time of conversation in TShark. Bug 1849 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1849)
svn path=/trunk/; revision=46626
2012-12-20 01:19:22 +00:00
Gerald Combs
1208041a4a Try using the system-supplied zlib on OS X.
svn path=/trunk/; revision=46618
2012-12-19 19:04:57 +00:00
Irene Rüngeler
12a6a5dce3 Set the icon for the wireless device if the decription name contains Wi-Fi
svn path=/trunk/; revision=46615
2012-12-19 09:51:20 +00:00
Jeff Morriss
f35a7d2ba7 Set SVN properties
svn path=/trunk/; revision=46609
2012-12-19 02:56:01 +00:00
Gerald Combs
7cf5334332 Add an AccordionFrame class which can animate showing and hiding (except
when we detect a remote connection). Use it for the "go to" and search
frames. Properly detect remote connections in the splash overlay.

svn path=/trunk/; revision=46591
2012-12-18 17:21:20 +00:00
Gerald Combs
77e6140ba9 Implement the frame mark, ignore, and time reference actions. Update the
text of a few menu items.

svn path=/trunk/; revision=46576
2012-12-17 23:03:21 +00:00
Gerald Combs
dc908733ea Add libui_dirty.
svn path=/trunk/; revision=46575
2012-12-17 21:24:22 +00:00
Jeff Morriss
e3cc19d866 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8100 :
Wrap some variable declarations in #ifdef HAVE_LIBZ.

svn path=/trunk/; revision=46574
2012-12-17 19:24:06 +00:00
Martin Mathieson
b369116122 Don't cast away constness of passed-in tap structs.
svn path=/trunk/; revision=46552
2012-12-16 00:43:37 +00:00
Martin Mathieson
460d6be1af Don't cast away const qualifier.
svn path=/trunk/; revision=46550
2012-12-16 00:25:25 +00:00
Evan Huus
b2e8a9b188 Link qtshark with libui_dirty on unix.
It's now possible to build qtshark with autotools and QtCreator if you add some
extra symlinks and fiddle with LD_LIBRARY_PATH.

svn path=/trunk/; revision=46546
2012-12-15 17:10:39 +00:00
Michael Mann
ed7b3f276f From Masatake Yamato, adding preference names used with -o option to tooltip text. Bug 6641 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6641)
svn path=/trunk/; revision=46545
2012-12-15 12:43:13 +00:00
Gerald Combs
044a0257e6 Add a missing backslash.
svn path=/trunk/; revision=46543
2012-12-15 01:55:28 +00:00
Gerald Combs
81c2fd6cbe Set SVN properties.
svn path=/trunk/; revision=46542
2012-12-15 01:05:17 +00:00
Gerald Combs
5c2c5aed87 Rename the search type menu items to more accurately reflect what we're
actually doing and what users are likely to want to do.  Rename the
search enum values and functions to reflect what we're actually doing
and add a comment explaining why making searches more correct might make
searching worse.  Add a search bar to the Qt main window, thus
continuing the War On Gratuitous Dialogs.

Clear out any previous temporary label stack items before adding a new one.

svn path=/trunk/; revision=46541
2012-12-15 01:04:39 +00:00
Anders Broman
d075b08ad2 Try to cast avay:
follow_tcp.c(323) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
follow_tcp.c(327) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data
follow_tcp.c(529) : warning C4267: '=' : conversion from 'size_t' to 'uInt', possible loss of data

svn path=/trunk/; revision=46539
2012-12-14 12:02:59 +00:00
Evan Huus
85dcc2d2c0 Fixed uninitialized value warning.
I am now *very* impressed by GCC's flow analysis.

svn path=/trunk/; revision=46536
2012-12-14 03:00:08 +00:00
Martin Kaiser
90f0616d25 fix compiler warning
follow_tcp.c: In function ‘follow_read_tcp_stream’:
follow_tcp.c:432: error: ‘gunzip’ may be used uninitialized in this function
make[2]: *** [libgtkui_a-follow_tcp.o] Error 1

set default value to 'not gzipped'


svn path=/trunk/; revision=46535
2012-12-14 02:35:12 +00:00
Michael Mann
7141f3c00c Bug 3528 - When following an HTTP tcp stream decode gzip data automatically (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3528)
Use Anders' "corrected" patch instead of the original.

svn path=/trunk/; revision=46532
2012-12-13 20:19:11 +00:00
Michael Mann
a37f60e4f6 Bug 3528 - When following an HTTP tcp stream decode gzip data automatically (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3528)
includes patch from bug (with actual functionality) + changes to makefiles to make it compile/link on Windows

svn path=/trunk/; revision=46530
2012-12-13 19:59:57 +00:00
Pascal Quantin
252c23c744 From Edwin Groothuis via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8083 :
Abstract some constants by defines in tcp_graph.c

svn path=/trunk/; revision=46524
2012-12-12 22:08:02 +00:00
Jörg Mayer
65547786c3 Alphabetically sort files
svn path=/trunk/; revision=46502
2012-12-11 21:51:18 +00:00
Irene Rüngeler
7f6519287e Make "Edit Interfaces Dialog" modal
-This line, and those below, will be ignored--

M    ui/gtk/capture_dlg.c

svn path=/trunk/; revision=46500
2012-12-11 16:55:17 +00:00
Irene Rüngeler
7cf0d9ed2b Capture Options Dialog: Update buttons for "Capture all in Prom. Mode" and "Capture on all interfaces"
Update filter string

svn path=/trunk/; revision=46499
2012-12-11 16:51:36 +00:00
Gerald Combs
f03bd8b441 Use a different border color on OS X.
svn path=/trunk/; revision=46458
2012-12-07 21:53:03 +00:00
Gerald Combs
0b2e3dbd10 Set the height of the resize and apply buttons. Simplify some geometry.
svn path=/trunk/; revision=46453
2012-12-07 21:32:19 +00:00
Gerald Combs
8ed89c12c5 Properly resize the bookmark button so that the image centers properly.
Adjust CSS.

svn path=/trunk/; revision=46451
2012-12-07 21:22:16 +00:00
Gerald Combs
c9d4240196 Add a context menu to the packet list and fill in the
apply/match-related actions. Have matchSelectedFilter figure out our
filter strings, which lets us remove duplicate code in the apply/match
action slots. Remove some leftover code from an experiment.

Adjust the temporary message colors in the status bar and label stack.

Add a NULL check to construct_match_selected_string.

svn path=/trunk/; revision=46449
2012-12-07 20:08:00 +00:00
Michael Tüxen
0f3f4eb79a Don't leak a string.
svn path=/trunk/; revision=46442
2012-12-07 12:58:19 +00:00
Irene Rüngeler
df8cb34370 Fix Bug reported by Anders Broman concerning the capture filter.
svn path=/trunk/; revision=46440
2012-12-07 12:08:12 +00:00
Gerald Combs
e5d5ea7db7 Use 16x16 icons for small toolbars as well as menus.
svn path=/trunk/; revision=46435
2012-12-07 01:57:05 +00:00
Gerald Combs
59cd52b5ca Implement the items under "Edit→Copy", "Analyze→Apply as Filter" and
"Analyze→Prepare a Filter". Add a context menu to the protocol tree and
fill in the items we've implemented so far.

Add an "applyAllPreferences" method and corresponding
"preferencesUpdated" signal to wsApp. Use it to set the maximum display
filter combo count.

Move the packet filtering code from the display filter edit to the main
window (which makes more sense and matches what we're doing in the GTK+
version and gets rid of more global cfile references). Try to center the
display filter edit button images.

Use a different "close" button in the main toolbar. It looks better but
is still wrong (on OS X at least).

svn path=/trunk/; revision=46434
2012-12-07 01:46:20 +00:00
Gerald Combs
2b240a299b Fix an apparent copy/paste error.
svn path=/trunk/; revision=46433
2012-12-07 00:39:28 +00:00
Bill Meier
62d0eacfc7 Fix two more incorrect s/link/linkr/ done by me in SVN #46426.
svn path=/trunk/; revision=46428
2012-12-06 21:35:03 +00:00
Bill Meier
60fd1d6d27 Fix compile error;
svn path=/trunk/; revision=46427
2012-12-06 21:27:04 +00:00
Bill Meier
ae68f42297 Fix [-Wshadow] warnings.
svn path=/trunk/; revision=46426
2012-12-06 20:59:53 +00:00
Gerald Combs
ecad8311ca Add the new toolbar icons.
svn path=/trunk/; revision=46414
2012-12-05 22:30:02 +00:00
Gerald Combs
07898cae39 Create 16x16 and 24x24 versions of the document icon with a contrasting
border. Add them as pixbufs to ui/gtk/toolbar_icons.h and use them to
replace the file icon XPM in stock_icons.c. Add modelines.

svn path=/trunk/; revision=46413
2012-12-05 22:28:12 +00:00
Gerald Combs
025f5d1ecd Make it more obvious that we're locking and unlocking.
svn path=/trunk/; revision=46412
2012-12-05 22:22:52 +00:00
Martin Mathieson
d1457cfca8 Choose direction properly if launching graph based upon channel of
selected frame.

svn path=/trunk/; revision=46411
2012-12-05 22:05:18 +00:00
Gerald Combs
41a8f22c3c Add more missing #includes.
svn path=/trunk/; revision=46410
2012-12-05 20:33:40 +00:00
Gerald Combs
874c87610b Fix some C++ abuses that Guy found via LLVM.
svn path=/trunk/; revision=46408
2012-12-05 19:04:59 +00:00
Bill Meier
7cd0417af5 Fix numerous instances of a variable/parameter name "shadowing" a library function name;
(At least some (gcc ?) compilers give a "shadow" warning for these).

svn path=/trunk/; revision=46402
2012-12-05 15:56:36 +00:00
Jeff Morriss
ff8e679df2 Add some generated header files to GENERATED_NODIST_HEADER_FILES (to fix
distcheck).

svn path=/trunk/; revision=46400
2012-12-05 15:14:20 +00:00
Anders Broman
b81575cd6e From Michal Labedzki:
RTP: Make addresses more generic and use ensure that
 used generic address instead of net address

Address can be various, not only "IP", for example Bluetooth addr/name.
Also specify address used to find stream by RTP Player to be
generic address (src/dst), not network address (net_src/net_dst),
this allow to find RTP stream where those addresses are not the same.


Part of:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7893

svn path=/trunk/; revision=46395
2012-12-05 09:21:26 +00:00
Martin Mathieson
5589af9699 Use g_malloc0() to initialize the counters. MAC was using uninitialized
memory...

svn path=/trunk/; revision=46385
2012-12-05 03:12:43 +00:00
Gerald Combs
6df94431ac Remove an unused variable. Use ITEM_LABEL_LENGTH instead of a magic
number.

svn path=/trunk/; revision=46384
2012-12-05 01:02:40 +00:00
Gerald Combs
224666c60e Fix up a comment.
svn path=/trunk/; revision=46375
2012-12-04 18:20:28 +00:00
Gerald Combs
c0c7a64d71 Replace GTK_STOCK_SAVE with WIRESHARK_STOCK_FILE in a few places,
including the GTK+ and Qt main toolbars.

svn path=/trunk/; revision=46374
2012-12-04 18:00:50 +00:00
Gerald Combs
b2239669e2 Rename utilityToolBar to displayFilterToolbar and move the display
filter widget there. Add a few more items to the main toolbar. Note that
Qt 4.8 doesn't support a unified title+toolbar with multiple toolbar
rows on OS X (at least not easily) but Qt 5 might.

Disable icons-in-menus on OS X.

svn path=/trunk/; revision=46371
2012-12-04 17:16:09 +00:00
Alexis La Goutte
cbd6062109 lupdate -no-obsolete QtShark.pro Updating 'qtshark_de.ts'... Found 328 source text(s) (8 new and 320 already existing) Removed 10 obsolete entries Updating 'qtshark_fr.ts'... Found 328 source text(s) (8 new and 320 already existing) Removed 10 obsolete entries Same-text heuristic provided 5 translation(s)
Update the french translation and regenerate qm files.

lrelease QtShark.pro
Updating '/home/prolag/wireshark-ng/ui/qt/qtshark_de.qm'...
    Generated 29 translation(s) (29 finished and 0 unfinished)
    Ignored 299 untranslated source text(s)
Updating '/home/prolag/wireshark-ng/ui/qt/qtshark_fr.qm'...
    Generated 328 translation(s) (328 finished and 0 unfinished)

svn path=/trunk/; revision=46370
2012-12-04 16:43:45 +00:00
Gerald Combs
fceea48622 Use more restrictive selectors, otherwise we end up styling things we
shouldn't (such as scroll bars).

svn path=/trunk/; revision=46363
2012-12-04 00:24:25 +00:00
Evan Huus
ced8abb125 Reduce the scope of one variable definition slightly.
svn path=/trunk/; revision=46361
2012-12-03 23:15:59 +00:00
Gerald Combs
469c33aff4 Make sure packets_bar_update does something.
svn path=/trunk/; revision=46355
2012-12-03 21:53:53 +00:00
Guy Harris
da6f295794 Add some more uic lines.
svn path=/trunk/; revision=46352
2012-12-03 21:33:08 +00:00
Gerald Combs
46a454a94c Automatically size the interface column.
svn path=/trunk/; revision=46351
2012-12-03 20:38:32 +00:00
Gerald Combs
9e67335ea8 Update the interface list to reflect the recent interface name changes.
Allow multiple interface selections. Make sure we update the packet list
properly in a couple of places.

Use the right callback+signal to update capture statistics in the status
bar. Remove the global cfile from the main_statusbar.cpp

Add the version to the main window.

svn path=/trunk/; revision=46350
2012-12-03 19:58:55 +00:00
Gerald Combs
430d616e28 Do a better job of getting the user's attention for temporary messages.
Rename some variables.

svn path=/trunk/; revision=46310
2012-11-30 23:14:53 +00:00
Jeff Morriss
62857dd6b4 Add addr_resolution_dlg.c
svn path=/trunk/; revision=46308
2012-11-30 16:17:00 +00:00
Anders Broman
5efb100bc4 Add a menu to view the current address resolution.
Future enhancments(?) to save as new hosts file.

svn path=/trunk/; revision=46307
2012-11-30 14:57:50 +00:00
Gerald Combs
a0eb2268a7 select_ifaces and select_current_ifaces haven't been used since r40715.
Presumably it's OK to remove them.

svn path=/trunk/; revision=46299
2012-11-29 22:58:16 +00:00
Jeff Morriss
b39a7b487a Make tap_param.enum_vals const.
svn path=/trunk/; revision=46297
2012-11-29 22:21:23 +00:00
Jeff Morriss
987b122d58 Make an enum_val_t const.
svn path=/trunk/; revision=46295
2012-11-29 21:40:26 +00:00
Pascal Quantin
0594b41113 Add missing newline at end of file
svn path=/trunk/; revision=46284
2012-11-29 14:57:06 +00:00
Anders Broman
cec78c6518 From Michal Labedzki:
Src/dst ports are stored as guint32 in packet_info, so do the same
for RTP ports. This also fix no stream after analyze when
there is used high port, for example 0xFFFFFFFF. So there is
casting to 0xFFFF and comparing to 32bit value and finally fail.

Part of:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032

svn path=/trunk/; revision=46277
2012-11-29 12:14:53 +00:00
Jeff Morriss
7d0bb3bc0d Remove a now-unused variable.
svn path=/trunk/; revision=46246
2012-11-28 15:34:50 +00:00
Anders Broman
7d92266058 Add a copy button that copies to clipboard.
svn path=/trunk/; revision=46245
2012-11-28 14:34:20 +00:00
Martin Mathieson
bd3b559725 - Allocate the correct number of elements to draw
- Draw data list then control list, so can spot blue of ACKs when zoomed
  right out
- Made the red crosses for NACKs smaller

svn path=/trunk/; revision=46243
2012-11-28 03:10:05 +00:00
Anders Broman
20abe45694 Add more information about the capture.
svn path=/trunk/; revision=46224
2012-11-27 16:46:00 +00:00
Anders Broman
55a7c0f646 Get rid of now unused variable.
svn path=/trunk/; revision=46223
2012-11-27 14:42:28 +00:00
Anders Broman
18d5f2dbfc Start including info from Statistics/Summary.
svn path=/trunk/; revision=46219
2012-11-27 13:35:33 +00:00
Alexis La Goutte
70a4056c1d From report of Joerg Wunsch via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7973 QRC files are missing in 1.8.3/SVN release tarball
Fix :
make[2]: *** No rule to make target `ui/qt/qtshark_fr.ts', needed by `ui/qt/qtshark_fr.qm'.  Stop.
make[1]: *** [ui/qt/CMakeFiles/qtui.dir/all] Error 2
make: *** [all] Error 2

From me:
Add missing files (*.ts, *.qm) to ui/qt/Makefile.common

svn path=/trunk/; revision=46218
2012-11-27 13:14:37 +00:00
Alexis La Goutte
126c3f8b88 From report of Joerg Wunsch via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7973 QRC files are missing in 1.8.3/SVN release tarball
Fix :
CMake Error at /usr/share/cmake-2.8/Modules/Qt4Macros.cmake:187 (FILE):
  file Internal CMake error when trying to open file:
  /wireshark-1.9.0-SVN/ui/qt/i18n.qrc for reading.
Call Stack (most recent call first):
  ui/qt/CMakeLists.txt:139 (QT4_ADD_RESOURCES)
...

From me:
Add missing files (*.qrc, qtshark.pro...) to ui/qt/Makefile.common

svn path=/trunk/; revision=46217
2012-11-27 09:18:42 +00:00
Martin Mathieson
85e8ebaf19 Add %DL padding to LTE MAC stats.
svn path=/trunk/; revision=46215
2012-11-27 01:11:41 +00:00
Anders Broman
77dafd7b7c Add comment syúmmary to GUI and add Capture comment from SHB.
svn path=/trunk/; revision=46206
2012-11-26 18:52:29 +00:00
Anders Broman
beeabf86aa Rudimentary code to show comments summary.
svn path=/trunk/; revision=46204
2012-11-26 16:11:04 +00:00
Anders Broman
0f19bd385b From Jim Young:
Refactoring committed in Revision 460001 of tcp_graph.c introduced a copy&pasteo to wscale_make_elmtlist() such that compare_headers() would always return false.  Consequently no elements would get added to the list of elements to be plotted.

The attached patch corrects wscale_make_elmtlist() so that the Windows Scaling graph will plot elements.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8018

svn path=/trunk/; revision=46200
2012-11-26 08:50:25 +00:00
Bill Meier
6f606223aa Fix a [-Wshadow] warning;
svn path=/trunk/; revision=46188
2012-11-25 21:54:55 +00:00
Bill Meier
6f08979550 Fix a [-Wshadow] warning;
Also: Do some minor whitespace and formatting changes.

svn path=/trunk/; revision=46186
2012-11-25 21:45:50 +00:00
Bill Meier
4dacdedbe7 Fix several [-Wshadow] warnings;
Also: Do some minor whitespace and formatting changes.

svn path=/trunk/; revision=46185
2012-11-25 21:07:07 +00:00
Bill Meier
8c6af904b6 Fix a [-Wshadow] warning;
Also: Do some minor whitespace and formatting changes.

svn path=/trunk/; revision=46184
2012-11-25 21:05:15 +00:00
Bill Meier
db4c220cea Fix several [-Wshadow] warnings;
Also: Do some minor whitespace and formatting changes.

svn path=/trunk/; revision=46183
2012-11-25 19:27:59 +00:00
Martin Mathieson
4fb9cfe714 Set line width 1 for the cairo context used to draw all lines (bug
8017).  Do it outside of the loop.

svn path=/trunk/; revision=46176
2012-11-25 14:15:02 +00:00
Martin Mathieson
8abda3c25a Needed to match up correct element lists for data + control for tcptrace
graphs.

Should really make clearer the way lists of elements are allocated and
the final next is assigned to NULL...

svn path=/trunk/; revision=46174
2012-11-25 02:04:00 +00:00
Martin Mathieson
6851b6dee2 Show ACK after data list, so grey/blue is visible when zoomed out.
svn path=/trunk/; revision=46173
2012-11-25 00:35:36 +00:00
Martin Mathieson
535a8887d7 From Jim Young:
- restore rendering TCP graph titles with black text (fixing bug 8016)

Plus a couple of updated comments.

svn path=/trunk/; revision=46164
2012-11-24 14:20:00 +00:00
Guy Harris
5290b60ab3 Rename get_windows_interface_friendlyname() to
get_windows_interface_friendly_name(), and have it return the friendly
name on success and NULL on failure.

Get rid of the logging in get_windows_interface_friendly_name().

svn path=/trunk/; revision=46161
2012-11-24 00:05:32 +00:00
Irene Rüngeler
2a18c9b5df Fix bug reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8011
svn path=/trunk/; revision=46153
2012-11-23 13:16:04 +00:00
Gerald Combs
7d27bd0c6e Add cfutils.c + capture_unix_ifnames.c + SystemConfiguration. Sort our
SOURCES.

svn path=/trunk/; revision=46145
2012-11-22 17:29:58 +00:00
Anders Broman
fbce97738b From Preben Guldberg:
Add a tooltip for a pkt_comment column to show packet comment.

Modified to check frame data for packet_comment and show it as
a tooltip for the entire row.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7995

svn path=/trunk/; revision=46141
2012-11-22 12:33:21 +00:00
Guy Harris
1105a21a8c Fix another reference to the "description" member of an if_info_t (in
commented-out code).

svn path=/trunk/; revision=46134
2012-11-22 07:02:53 +00:00
Guy Harris
6a5d8a1e65 Fix a reference to the "description" member of an if_info_t.
svn path=/trunk/; revision=46132
2012-11-22 06:54:35 +00:00
Guy Harris
bd976ae6c0 On UN*X, if an interface has a description, use it as the "friendly
name".  If it doesn't have a description, on OS X, use the System
Configuration framework to attempt to get a "friendly name" for
interfaces.

If a loopback device doesn't have a friendly name, give it "Loopback" as
the friendly name.

Move the "turn a CFString into a mallocated C string" routine into
common code, as it's used in more than one place.

svn path=/trunk/; revision=46131
2012-11-22 06:02:49 +00:00
Guy Harris
d415d3d87c On error, have capture_opts_trim_iface() return the exit status that
should be used (on success, have it return 0).  Exit with that exit
status; if the problem is that we couldn't get the interface list or if
there are no interfaces in that list, return 2, as that's not a
command-line syntax error.

svn path=/trunk/; revision=46108
2012-11-21 17:14:54 +00:00
Guy Harris
85b5a71c73 Clean up white space.
Clarify that the other "friendly name" is NDIS's idea of a "friendly
name".

svn path=/trunk/; revision=46096
2012-11-20 01:15:00 +00:00
Jeff Morriss
e1b2eda268 Attempt to fix the Windows Qt builds.
svn path=/trunk/; revision=46092
2012-11-19 22:16:39 +00:00
Jeff Morriss
5681aa0fda Put a line of code on its own line (instead of following a comment).
svn path=/trunk/; revision=46090
2012-11-19 22:01:07 +00:00
Anders Broman
28474fe8ef From Mike Garratt:
Friendly Names for interfaces on Windows

Notes on the changes the patch covers:
* if_info_t struct: addition of friendly_name
* Dumpcap Interface list format changes:
  + Win32: "dumpcap -D" shows friendly_name in place of descript if known
  + All: machine interface "dumpcap -D -Z none" includes friendly_name in the
list in addition to the existing parameters
* interface_options struct: addition of console_display_name
  + When an interface name is displayed in a console, it will typically be the
console_display_name (instead of name). 
  + console_display_name is used as the basis of the autogenerated temp
filenames
  + console_display_name is typically set to the friendly_name if known,
otherwise it is set to the interface name
* Enhancements to capture_opts_add_iface_opt() (the function which process -i
options).
  + Can now specify the interface using its name and friendly_name
  + Interface name matching is case insenstive
  + Name matching first attempts exact matching, then falls back to prefix
matching
    (e.g. dumpcap -i local)
  + Validates interface names, instead of blindly sending them off to
winpcap/libpcap
  + Interface specification by number is still supported.
* capture_opts_trim_iface() has been refactored:
  + Instead of repeating a decent chunk of the cost in
capture_opts_add_iface_opt(), it calls capture_opts_trim_iface() to specify the
interface.
* introduction of capture_win_ifnames.[ch] (windows only code)
  + Implements static function GetInterfaceFriendlyNameFromDeviceGuid() - a
windows version independant function to convert an interface guid into its
friendly name.  Uses published api functions on windows vista and higher, but
falls back to unpublished API functions on older windows releases.
  + void get_windows_interface_friendlyname(/* IN */ char
*interface_devicename, /* OUT */char **interface_friendlyname); - extracts the
GUID from the interface_devicename, then uses
GetInterfaceFriendlyNameFromDeviceGuid() to do the resolution
* Auto temp filename generation:
  + Now uses wireshark_pcapng_* or  wireshark_pcap_* depending on file format
  + Basis temp filename format on console_display_name
  + Win32: if console_display_name is a windows interface guid, extracts
numbers from GUID here (instead of in interface option processing) 

GUI CHANGES:
* Dialog that displays when you click the "Manage Interfaces" button (within
Capture Options dialog) has been renamed from "Add new interfaces" to
"Interface Management"
* ui/gtk/capture_dlg.c: new_interfaces_w variable renamed to
interface_management_w
* Win32: Local Interfaces tab on Interface Management dialog, shows includes
friendly name as far left column
* Interface Management dialog defaults to larger size on win32 - so it fits
without resizing local interfaces tab
* Interface Management dialog now saves preferences when you click the apply
button (local hidden interfaces was not persisting across restarts)
* Tweaks: "Interface Details" dialog (Interface list->Capture Interfaces ->
Details):
  + "Friendly Name" renamed to "NDIS Friendly Name"
  + Added "OS Friendly Name" to the top of the list
* Win32: The "Capture Interfaces" dialog now shows the friendly name instead of
device guid
* Welcome screen:
  + The height of the interface list scrollbox dynamically adjusts & updates to
the number visible interfaces.
    Up to 10 interfaces can be listed without a scroll bar, the minimum height
is for 2 interfaces. 
  + Win32: now shows just the Friendly Name if known - in place of
"Interfacename_Guid:(Description)"

svn path=/trunk/; revision=46083
2012-11-19 20:07:27 +00:00
Martin Mathieson
f4c90e138d Was not allocating a large enough element array for tput graphs.
svn path=/trunk/; revision=46079
2012-11-18 19:52:48 +00:00
Anders Broman
45e9735b09 Enhance error output.
svn path=/trunk/; revision=46076
2012-11-18 18:10:48 +00:00
Martin Mathieson
1a1e7f38b7 - Make perform_zoom() quickly return if graph already fully zoomed out
- Restore zooming out with middle-button + shift
- Lose unused graph->next and register_tap_listener_tcp_graph()
- Fix up some whitespace

svn path=/trunk/; revision=46072
2012-11-18 15:56:29 +00:00
Martin Mathieson
e0da278d5f After launching 'Follow stream' or one of the graphs, restore the
conversation selection.

svn path=/trunk/; revision=46027
2012-11-14 02:53:41 +00:00
Martin Mathieson
e9e2137c19 Try to cast away windows buildbot errors.
svn path=/trunk/; revision=46025
2012-11-13 20:13:32 +00:00
Martin Mathieson
14d585d743 Zoom in on a rectangle chosen by clicking and dragging the left mouse
button.

From Edwin Goothuis (bug 7931), with some small edits and
comments from me.

svn path=/trunk/; revision=46024
2012-11-13 19:37:58 +00:00
Martin Mathieson
777b1274df Initialise a variable and try to make the OSX-10.6-x64 buildbot happy.
svn path=/trunk/; revision=46007
2012-11-12 04:13:13 +00:00
Martin Mathieson
0aebd579e3 Show SACK information in TCP graphs. Also add a generated field for the
number of SACK ranges found in the SACK option.

This involved extending the IP options framework to include an extra
void* data field, which in the case of TCP is filled in with the tap
struct - other users currently pass NULL.

I first implemented the graph to sort the SACK ranges and show (in red)
the unacknowledged regions between them, but this became confusing where
the number of ranges is limited by TCP padding bytes. i.e. you can't
tell how many SACKs could have been encoded, so some of the gaps between
ranges may already have been received.

svn path=/trunk/; revision=46006
2012-11-12 03:55:46 +00:00
Evan Huus
08b94f4dd0 Fix compilation error (set but unused variable) and allow TCP graphs to be
launched from the Conversation List -> TCP (IPv4 & IPv6) window as well, since
that looked like the intention of the unused variable.

svn path=/trunk/; revision=46002
2012-11-11 19:16:06 +00:00
Martin Mathieson
0b3ffdd688 Allow TCP graphs to be launched from the conversation table window.
svn path=/trunk/; revision=46001
2012-11-11 18:32:47 +00:00
Anders Broman
3e9e6f040e Remove one more instance of destroy/create cr.
svn path=/trunk/; revision=45972
2012-11-08 13:42:34 +00:00
Anders Broman
8d482cf161 Create cr once per axis when drawing x,y axels.
svn path=/trunk/; revision=45971
2012-11-08 13:18:23 +00:00
Anders Broman
d17b5fb251 gdk_cairo_set_source_color() needs to be set inside the loop.
svn path=/trunk/; revision=45970
2012-11-08 13:10:07 +00:00
Anders Broman
07c850676d Create cr once when drawing the graphs
svn path=/trunk/; revision=45969
2012-11-08 12:52:08 +00:00
Anders Broman
849fbd1e04 Reindent section.
svn path=/trunk/; revision=45968
2012-11-08 12:37:42 +00:00
Anders Broman
07bdd97da6 Make the button box the last row in gtk3 too.
svn path=/trunk/; revision=45967
2012-11-08 12:30:17 +00:00