Commit graph

5080 commits

Author SHA1 Message Date
Guy Harris
ef4a2e73b0 Get rid of C++ comment.
svn path=/trunk/; revision=34171
2010-09-21 07:17:20 +00:00
Stig Bjørlykke
c2e11e06be Make "Displayed Columns" work yet again, as done in revision 34160.
Bring back 'Resize Column' and 'Rename Column Title'.

svn path=/trunk/; revision=34170
2010-09-21 07:08:35 +00:00
Guy Harris
4eaaf279d0 Fix comments.
svn path=/trunk/; revision=34169
2010-09-21 05:58:14 +00:00
Anders Broman
838aa2db49 Update GUIManager menubar code(#IF 0 ).
svn path=/trunk/; revision=34168
2010-09-21 05:32:32 +00:00
Anders Broman
f62d9d36cc Wrong signature used for a GtkToggleActionEntry callback.
svn path=/trunk/; revision=34167
2010-09-21 05:24:02 +00:00
Anders Broman
c237a52cca Remove leftover debug code/comment
svn path=/trunk/; revision=34166
2010-09-21 05:10:38 +00:00
Stig Bjørlykke
1bc7a24d9b Make "Displayed Columns" work again.
svn path=/trunk/; revision=34160
2010-09-20 13:11:48 +00:00
Jeff Morriss
20cc0d7ce9 Don't include stock icons that we no longer use.
svn path=/trunk/; revision=34150
2010-09-17 13:38:09 +00:00
Anders Broman
0519ad45f3 Use GTK dialog stock icons rather than our own.
svn path=/trunk/; revision=34149
2010-09-17 12:54:07 +00:00
Guy Harris
ae13a7ce0c Fix some bugs that show up when you build with the old packet list.
svn path=/trunk/; revision=34148
2010-09-17 08:48:19 +00:00
Guy Harris
5f7787d9ec Use the same control sequences for the old packet list that are used for
the new packet list.

svn path=/trunk/; revision=34144
2010-09-17 04:58:30 +00:00
Gerald Combs
a87bdf9660 Turn on ASLR via /DYNAMICBASE and DEP via SetProcessDEPPolicy().
svn path=/trunk/; revision=34137
2010-09-16 19:20:06 +00:00
Jeff Morriss
b6e984c095 #if out ui_desc_conv_filter_popup to get the builds going (it looks like it should be used but it isn't currently).
svn path=/trunk/; revision=34135
2010-09-16 13:12:02 +00:00
Anders Broman
0b44725f9f Fix a typo.
svn path=/trunk/; revision=34133
2010-09-16 10:40:33 +00:00
Guy Harris
8c5d32aa8f Remove C++ comments.
svn path=/trunk/; revision=34132
2010-09-16 08:58:46 +00:00
Anders Broman
57f8d0373d menus.c:1508: warning: unused parameter 'current'
menus.c:1508: warning: unused parameter 'user_data'
Mark parameters as unused.

svn path=/trunk/; revision=34131
2010-09-16 08:15:45 +00:00
Anders Broman
55580a9662 Use GUIManager for the pop-up:s.
Can be dissabled by commenting out 
#define MENUS_USE_UIMANAGER 1

svn path=/trunk/; revision=34130
2010-09-16 07:48:18 +00:00
Anders Broman
8421bbd8a3 Add more GUIManager code #ifdef:ed out.
The popups should be working now exept for protocol help.
Help with testing and cleaning up apreciated.
GTK 2.6 requred, I'll look into that too later if no one beats me to it.

svn path=/trunk/; revision=34127
2010-09-15 20:51:44 +00:00
Anders Broman
31cf5ad237 Add more GUIManager code #ifdef:ed out
svn path=/trunk/; revision=34118
2010-09-14 20:50:03 +00:00
Anders Broman
7768145b5e Add more GUIManager code #ifdef:ed out
svn path=/trunk/; revision=34112
2010-09-13 20:21:41 +00:00
Guy Harris
82ed2ba728 set_menu_sensitivity() is used only if MENUS_USE_UIMANAGER is defined,
so define it only if MENUS_USE_UIMANAGER is defined.

Clean up indentation.

svn path=/trunk/; revision=34109
2010-09-12 22:36:52 +00:00
Guy Harris
9583a67e2d Get rid of /* within comment, clean up white space.
svn path=/trunk/; revision=34108
2010-09-12 21:53:26 +00:00
Anders Broman
b1d1e4bda6 Add more GUIManager code #ifdef:ed out
svn path=/trunk/; revision=34106
2010-09-12 19:26:42 +00:00
Bill Meier
8b7784d08e Remove what appear to be two redundant lines of code (AFAIKT).
svn path=/trunk/; revision=34090
2010-09-09 17:30:35 +00:00
Stephen Fisher
137054603c Resolve another issue the Windows buildbots are having after rev 34084:
guint8 -> guint16 for th_flags variable in segment struct.



svn path=/trunk/; revision=34089
2010-09-09 15:46:40 +00:00
Stephen Fisher
f18fe680e4 These two capture option variables are defined by capture_opts_init(), so
don't redefine them to new values.


svn path=/trunk/; revision=34073
2010-09-07 19:22:05 +00:00
Anders Broman
24f4f3bd05 Start adding GTKUIManager code.(#IF 0'ed out.).
svn path=/trunk/; revision=34071
2010-09-07 08:10:45 +00:00
Martin Mathieson
8c258c3452 Change bandwidth labels, and update stop time even on first frame.
svn path=/trunk/; revision=34068
2010-09-06 09:22:43 +00:00
Martin Mathieson
4b5c69c0d9 Add bandwidth figures per UE.
svn path=/trunk/; revision=34061
2010-09-03 16:45:05 +00:00
Martin Mathieson
d96bda809e Try to cast away windows buildbot problems.
svn path=/trunk/; revision=34060
2010-09-03 16:05:01 +00:00
Martin Mathieson
055d654cc2 Add bandwidth figures to RLC stats (per-UE and per-channel).
svn path=/trunk/; revision=34059
2010-09-03 15:22:28 +00:00
Stig Bjørlykke
7ac2adc395 Increase maximum number of nodes to 40.
10 is in some situations too few.

svn path=/trunk/; revision=34057
2010-09-03 09:12:40 +00:00
Anders Broman
f92d65f0cb Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34054
2010-09-03 08:41:04 +00:00
Anders Broman
5cd5da38d2 Add doxygen coments.
svn path=/trunk/; revision=34052
2010-09-03 07:27:59 +00:00
Anders Broman
851d48863c Add a comment
svn path=/trunk/; revision=34051
2010-09-03 07:25:51 +00:00
Anders Broman
9ebaecb807 Add comments
svn path=/trunk/; revision=34047
2010-09-02 19:23:01 +00:00
Anders Broman
3a5f906a72 Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34043
2010-09-02 15:39:15 +00:00
Anders Broman
b6fc233757 Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34042
2010-09-02 15:38:04 +00:00
Anders Broman
f32d9a570c Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34041
2010-09-02 06:34:04 +00:00
Anders Broman
9b8d6c102c Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34040
2010-09-02 06:22:12 +00:00
Anders Broman
0df3d83670 1.4 version does not display the t.38 graph.
(init/remove tap_listener missing)

svn path=/trunk/; revision=34038
2010-09-01 19:42:59 +00:00
Guy Harris
ca02af3248 Expand and update comments.
svn path=/trunk/; revision=34037
2010-09-01 17:49:27 +00:00
Anders Broman
5ed4941636 From Jaap Keuter:
Fix Wireshark don't show mgcp calls in "Telephony" => "VoIP calls"
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5167

svn path=/trunk/; revision=34036
2010-09-01 12:39:29 +00:00
Stig Bjørlykke
fe341f145a Ensure we always update the display filter when changing profile.
svn path=/trunk/; revision=34030
2010-08-31 07:53:51 +00:00
Anders Broman
761149722e Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34029
2010-08-31 05:48:12 +00:00
Bill Meier
a35e5c72e9 Add #include <stdio.h> for fprintf
svn path=/trunk/; revision=34028
2010-08-30 23:58:19 +00:00
Anders Broman
f51ed4d4c3 Remove the depricated GtkItemFactory code.
svn path=/trunk/; revision=34027
2010-08-30 20:30:20 +00:00
Anders Broman
749c891a91 Switch to GTK UIManager.
svn path=/trunk/; revision=34026
2010-08-30 19:49:57 +00:00
Jeff Morriss
8016df02f1 Include stdio.h. Fixup indent some.
svn path=/trunk/; revision=34025
2010-08-30 19:14:54 +00:00
Jeff Morriss
b4c2ed1b86 Remove some unnecessary includes: a lot of things don't need globals.h and register.h
svn path=/trunk/; revision=34017
2010-08-30 16:10:01 +00:00
Anders Broman
6e5a0a481f Remove a redundant callback.
svn path=/trunk/; revision=34015
2010-08-30 14:32:38 +00:00
Anders Broman
60f258b4e5 Convert to GTKUIManager
svn path=/trunk/; revision=34014
2010-08-30 14:23:25 +00:00
Stig Bjørlykke
835a43312f Always update the display filter when changing a display filter macro
and when changing profile.  Not sure why I have to invalidate cfile.dfilter
in macro_update(), because this will be done in macros_post_update(),
but unless this we get a crash when renaming a macro...

This is a fix for bug 5002.

svn path=/trunk/; revision=34011
2010-08-30 08:47:26 +00:00
Anders Broman
6d0780b8ba Make a note about how to "activare" the filter popup.
svn path=/trunk/; revision=34008
2010-08-30 05:12:27 +00:00
Anders Broman
21107dff38 Switch to GTK UIManager.
svn path=/trunk/; revision=34002
2010-08-29 19:37:15 +00:00
Anders Broman
0042c07d2a Doxygen changes.
svn path=/trunk/; revision=33993
2010-08-29 15:14:38 +00:00
Anders Broman
46b05449ce Doxygen changes.
svn path=/trunk/; revision=33991
2010-08-29 13:18:58 +00:00
Gerald Combs
5aae07254f Forward-port r33953.
Move the SetDllDirectory calls to ws_init_dll_search_path. If
SetDllDirectory fails, pass the Wireshark program path to
SetCurrentDirectory.

svn path=/trunk/; revision=33958
2010-08-27 19:24:44 +00:00
Anders Broman
d936d457c3 Fix a number of doxygen directives.
svn path=/trunk/; revision=33929
2010-08-26 15:02:27 +00:00
Anders Broman
74131df4f0 - Try to fix a couple of doxygen comments.
svn path=/trunk/; revision=33927
2010-08-26 07:12:03 +00:00
Anders Broman
48ac5f90ff - Try to fix a couple of doxygen comments.
- whitspace changes.

svn path=/trunk/; revision=33926
2010-08-26 06:46:30 +00:00
Gerald Combs
607b228df6 Add ws_load_library and ws_module_open, which respectively call
LoadLibrary and g_module_open only for the program directory and system
directory on Windows. Use them to replace a bunch of LoadLibrary and
g_module_open calls. Use the extension ".dll" for all the DLLs that we
load. Add comments about DLL loading in Python.

svn path=/trunk/; revision=33924
2010-08-25 20:30:59 +00:00
Gerald Combs
ad4ffa5d49 Partial fix for bug 5133. On Windows, call SetDllDirectory at startup if
it's present in Wireshark and dumpcap. This takes care of the airpcap.dll
PoC but we need to load wpcap.dll from a full path. We might want to
call SetDllDirectory from our other executables as well.

svn path=/trunk/; revision=33916
2010-08-24 23:39:29 +00:00
Anders Broman
5fbc1e101b Make the expert filter popup behave as in filter_utils.
svn path=/trunk/; revision=33915
2010-08-24 20:03:33 +00:00
Anders Broman
7e8752c70c Change the wording in the menu.
svn path=/trunk/; revision=33902
2010-08-24 05:11:37 +00:00
Bill Meier
e5fc612fb2 Use consistent indentation;
Fix a few @param comments.

svn path=/trunk/; revision=33901
2010-08-24 00:25:50 +00:00
Bill Meier
66d340863f (Minor) Cleanup signal callbak signatures and related:
- Don't mark callback arg as _U_ if actually used (and vice-versa);
- Use Null as user_data in g_signal_callback if unused in callback;
- Use correct signature for certain event callbacks.

svn path=/trunk/; revision=33895
2010-08-23 19:29:08 +00:00
Bill Meier
32f17466e3 [Trivial] Use g_signal_connect() instead of g_signal_connect_data().
svn path=/trunk/; revision=33893
2010-08-23 16:48:42 +00:00
Bill Meier
e637e22313 (Trivial) Use consistent indentation.
svn path=/trunk/; revision=33892
2010-08-23 16:39:52 +00:00
Jeff Morriss
bcca3fb3d5 Remove #if 0'd out code (dfilter_combo_add_empty()).
svn path=/trunk/; revision=33891
2010-08-23 16:18:06 +00:00
Bill Meier
9451aa90a7 (Trivial/Cosmetic) Fix signatures of some signal callback functions;
Also:Add some missing G_CALLBACKs (even in commented out code)

svn path=/trunk/; revision=33890
2010-08-23 15:58:48 +00:00
Bill Meier
254135d807 (Trivial) Whitespace cleanup.
svn path=/trunk/; revision=33889
2010-08-23 14:36:01 +00:00
Bill Meier
539712c5ad new_packet_list_column_button_pressed_cb(): return gboolean (not void): it's an event callback;
Note:
 the original code:
   static void new_packet_list_column_button_pressed_cb() {
     ...
     packet_list_popup(...);
     }
 the revised code:
   static gboolean new_packet_list_column_button_pressed_cb() {
     ...
     return packet_list_popup(...);
     }

 My guess is that the original code happened to work 
 on some?/all? supported platforms depending upon the actual
 details of the generated calling_sequence/return code.
---------------
Also: 
- new_packet_list_column_button_pressed_cb(): 'path' arg is unused;
- new_packet_list_double_click_cb(): user_data arg is unused so 
  don't supply same in the g_signal_connect.

svn path=/trunk/; revision=33888
2010-08-23 14:08:35 +00:00
Gerald Combs
31e1d6463f Initialize a variable before we try to free it.
svn path=/trunk/; revision=33877
2010-08-21 16:38:13 +00:00
Bill Meier
ae6bc8734c Use GType instead of deprecated GtkType
svn path=/trunk/; revision=33875
2010-08-21 13:21:35 +00:00
Jeff Morriss
000b99fc5f Free the err_str from capture_interface_list() even if the error isn't CANT_GET_INTERFACE_LIST.
svn path=/trunk/; revision=33866
2010-08-20 22:15:07 +00:00
Jeff Morriss
522c9b85b8 Don't leak the memory used by the original title when we're appending the version to it.
svn path=/trunk/; revision=33864
2010-08-20 22:12:55 +00:00
Jeff Morriss
7c9aac4d4a From Turney Cal as a followup to rev 33841 and bug 5038:
I tested your update ("wireshark -r foo.pcap" from a cmd window) and 
found that it did not use the current folder for the next Open dialog 
and didn't save the folder in recent.  The attached patch prepends the
filename with the current folder.

From me: don't leak memory when doing it.

svn path=/trunk/; revision=33863
2010-08-20 21:56:52 +00:00
Anders Broman
819f0ab85c Switch wlan_stat_dlg to use GUIManager step 2.
svn path=/trunk/; revision=33860
2010-08-20 14:19:06 +00:00
Stig Bjørlykke
4511d518b6 Use defined functions.
svn path=/trunk/; revision=33859
2010-08-20 12:05:44 +00:00
Anders Broman
9e6e00b9a5 Remove a comment.
svn path=/trunk/; revision=33858
2010-08-20 11:57:20 +00:00
Anders Broman
7b0709b3d5 Fix indentation.
svn path=/trunk/; revision=33857
2010-08-20 11:56:44 +00:00
Anders Broman
383d3d3da9 Switch wlan_stat_dlg to use GUIManager step 1.
svn path=/trunk/; revision=33856
2010-08-20 11:54:18 +00:00
Bill Meier
dac7978557 Minor cleanup of rtp graph:
- Display current value in combo boxes (pixels_per_tick, etc) to always
   match actual values being used to create graph;
 - yscale combo box entries: 
    show values >= 1 sec as sec (not s000 ms);
 - Determine max yscale label width properly as the largest of the
   top or middle label lengths;
 - Cleanup some indentation.

svn path=/trunk/; revision=33855
2010-08-19 22:04:37 +00:00
Bill Meier
d5471f6a3d Fix two bugs related to use of the graph Y-Axis Scale combo-box:
1. Incorrect specification of units: Should be ms & s not us and ms;
   Bug introduced in SVN #33834.
2. Selecting 50ms as the yscale actually used 50us as the scale;
   Bug introduced in SVN #30543.

svn path=/trunk/; revision=33854
2010-08-19 21:51:35 +00:00
Stig Bjørlykke
ec08ecd6fe Fixed the popup menu table:
- Added missing NULL initializers
- Fixed some typos in the menu items

svn path=/trunk/; revision=33853
2010-08-19 20:11:28 +00:00
Anders Broman
4f0a8b5bec Use better naming.
svn path=/trunk/; revision=33852
2010-08-19 19:05:56 +00:00
Anders Broman
ee96dd5c00 Switch over to use the GUIManager(can be turned of by a #define).
svn path=/trunk/; revision=33851
2010-08-19 19:05:11 +00:00
Bill Meier
b662825831 Fix gcc compile errors....
svn path=/trunk/; revision=33850
2010-08-19 15:22:03 +00:00
Bill Meier
3911b90cde Use proper signatures for event callback functions:
EG: Non-event signal callback functions shouldn't
   be directly used as event callback functions.
Replace use of deprecated "GtkSignalFunc";
Whitespace cleanup.

svn path=/trunk/; revision=33849
2010-08-19 15:02:23 +00:00
Guy Harris
89c43c1832 Add placeholder items for ^Z as Edit->Undo, shift-^Z as Edit->Redo,
and ^A as Edit->Select All.

Add more details about implementing Undo/Redo/Cut/Copy/Paste/Select All
in the comment for the placeholder items.

svn path=/trunk/; revision=33845
2010-08-19 00:14:07 +00:00
Bill Meier
5ff36b1a2a Use correct signature for "button-press-event" callback function;
Whitespace cleanup;
Use gboolean as appropriate; 

svn path=/trunk/; revision=33844
2010-08-19 00:09:56 +00:00
Bill Meier
fac1cfc492 Various minor cleanup:
- Non-event signal callback functions should return void;
 - Event signal callback had missing 'user_data' arg;
 - Rename various symbols for clarity;
 - Rename local functions with names of form gtk_...;
 - Use gboolean where appropriate;
 - Remove all 'exit(10)' statements;
 - Whitespace;
 - ...

svn path=/trunk/; revision=33843
2010-08-18 22:20:01 +00:00
Jeff Morriss
323c282897 main_cf_cb_file_read_finished(): use get_dirname() to get the directory of the
current file name.

This fixes a crash after failing to allocate some massive number of bytes if
the file name did not contain a path--which is the case when doing
"wireshark -r myfile.pcap".

svn path=/trunk/; revision=33841
2010-08-18 19:11:07 +00:00
Anders Broman
d5460f420d From Cal Turney:
Restores Mark All Displayed item when all packets are displayed.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5115

svn path=/trunk/; revision=33836
2010-08-18 07:48:37 +00:00
Bill Meier
b0fcd85278 Various minor cleanups....
svn path=/trunk/; revision=33835
2010-08-18 01:01:06 +00:00
Bill Meier
d97116bd7a Minor cleanup of iax2 graph:
- Display current value in combo boxes (pixels_per_tick, etc) to always
  match actual values being used to create graph;
- yscale combo box entries: 
   show ms values as ms (not x000 usecs);
   show us values with unit "us" (not "ms");
- Determine max yscale label width properly as the largest of the
  top or middle label lengths;
- Cleanup some indentation.

svn path=/trunk/; revision=33834
2010-08-18 00:04:53 +00:00
Bill Meier
d00be24b23 (Trivial) Reword comments about callback function signatures.
svn path=/trunk/; revision=33830
2010-08-17 14:01:33 +00:00
Bill Meier
1b0339247f (Trivial) window_delete_event_cb() 'user_data' arg is unused ...
svn path=/trunk/; revision=33829
2010-08-17 13:59:15 +00:00
Bill Meier
8fe3afba29 Minor changes related to signal callback functions:
- all: filter_te_syntax_check_cb should have an (unused) 'gpointer user_data' arg;
- filter_dlg.c: filter_sel_list_cb user_data arg is unused;

svn path=/trunk/; revision=33828
2010-08-17 13:44:12 +00:00
Guy Harris
cdf1196e58 Discourage people from stealing <control> keystrokes that have somewhat
standard meanings for anything other than those standard purposes.

svn path=/trunk/; revision=33826
2010-08-17 01:36:53 +00:00
Guy Harris
37dbda5b82 No need to have the same separator line twice, once with the new packet
list and once with the old packet list.

Have Boolean variables for some of the predicates in
set_menus_for_selected_packet(), to clarify what they're testing.

Clean up indentation.

Add some comments for various issues.

(FYI, what "Restore the functionality of <Ctrl>A and <Ctrl>X to the
filter textbox." means, in the comment for the previous checkin, "don't
use <Ctrl>A or <Ctrl>X for our own purposes, so they work the same way
they do in other applications using GTK+"; the checkin changed some menu
items not to use <Ctrl>A and <Ctrl>X as accelerators.)

svn path=/trunk/; revision=33823
2010-08-16 23:26:36 +00:00
Gerald Combs
366d3cf473 Fix an include.
svn path=/trunk/; revision=33819
2010-08-16 18:58:24 +00:00
Gerald Combs
303030f5c1 Fix compilation on Windows.
svn path=/trunk/; revision=33818
2010-08-16 18:32:27 +00:00
Anders Broman
46cd4a8507 From Cal Turney:
1. Restore the functionality of <Ctrl>A and <Ctrl>X to the filter textbox.  
2. Assign intuitive shortcuts without consuming any new shortcut letters.  
3. Add 'Un-Time Reference All Packets' to the menu.
4. Disallow the marking or ignoring of all packets in the capture.  
5. Make the Mark/Ignore/Time Reference-related menu items context sensitive. 
6. Add 'ref_time_count' to the capture_file structure
7. Utilize marked/ignored/ref_time_count vars to prevent needless looping thru
   the entire packet list by exiting the loop when it becomes zero.

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

svn path=/trunk/; revision=33817
2010-08-16 18:17:45 +00:00
Gerald Combs
6ef98db3bb Don't drop characters in the middle of a UTF-8 sequence. Fixes bug 5066.
Use an ellipsis character instead of three dots.

svn path=/trunk/; revision=33816
2010-08-16 17:53:43 +00:00
Gerald Combs
4b7cfcdb25 Convert our argument list to UTF-8 at startup on Windows. This lets us
double-click on files with non-Latin characters, e.g. "0_αßΓπ∟σµ.cap".

svn path=/trunk/; revision=33797
2010-08-13 21:21:28 +00:00
Gerald Combs
902b964597 Fix module names.
svn path=/trunk/; revision=33796
2010-08-13 21:03:29 +00:00
Guy Harris
ceb7f5e9d5 Get rid of some no-longer-necessary includes of simple_dialog.h (now
that cf_read_frame() and cf_read_frame_r() pop up an alert box on an
error, its callers no longer do so).

svn path=/trunk/; revision=33792
2010-08-13 08:13:23 +00:00
Guy Harris
2a328da4ef Instead of using a Boolean for the search direction, use an enum, so
that you can tell from examination whether the search is forward or
backward.

Make the cf_find_packet routines take the direction as an explicit
argument, rather than, in the cases where you don't want to permanently
set the direction, saving the direction in the capture_file structure,
changing it, doing the search, and restoring the saved direction.  Give
more information in the Doxygen comments for those routines.

Add a cf_find_packet_dfilter_string() routine, which takes a filter
string rather than a compiled filter as an argument.  Replace
find_previous_next_frame_with_filter() with it.

Have cf_read_frame_r() and cf_read_frame() pop up the error dialog if
the read fails, rather than leaving that up to its caller.  That lets us
eliminate cf_read_error_message(), by swallowing its code into
cf_read_frame_r().  Add Doxygen comments for cf_read_frame_r() and
cf_read_frame().

Don't have find_packet() read the packet before calling the callback
routine; leave that up to the callback routine.

Add cf_find_packet_marked(), to find the next or previous marked packet,
and cf_find_packet_time_reference(), to find the next or previous time
reference packet.  Those routines do *not* need to read the packet data
to see if it matches; that lets them run much faster.

Clean up indentation.

svn path=/trunk/; revision=33791
2010-08-13 07:39:46 +00:00
Bill Meier
f6f6cb8e8f Fix two memory leaks;
(Various other minor cleanup: whitespace, formatting, etc).

svn path=/trunk/; revision=33779
2010-08-12 01:54:10 +00:00
Bill Meier
84c6db776b Remove 1K line limit when saving a flow graph to a file;
(Refactor code to write directly to file instead of first storing data
 in an array of fixed size).

Fixes Bug #5101: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5101

svn path=/trunk/; revision=33772
2010-08-11 16:42:21 +00:00
Stig Bjørlykke
7678d060ae From Cal Turney via bug 5038:
Fix for bug introduced in revision 33759.

svn path=/trunk/; revision=33762
2010-08-10 21:16:41 +00:00
Anders Broman
c34f5acf83 Switch to GtkUIManager in stead of the deprecated GtkItemFactory.
In case of problems switch back by removing the line: 
#define USE_GUIMANAGER 1

svn path=/trunk/; revision=33761
2010-08-10 15:47:29 +00:00
Stig Bjørlykke
baef640b37 Fixed warning: format not a string literal and no format arguments.
svn path=/trunk/; revision=33760
2010-08-10 13:19:31 +00:00
Anders Broman
f083675919 Use g_snprintf isf strncpy.
svn path=/trunk/; revision=33759
2010-08-10 12:54:23 +00:00
Anders Broman
26274eb701 From Cal Turney:
Remember folder of capture selected from Welcome screen file dialog.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5038

svn path=/trunk/; revision=33758
2010-08-10 11:36:18 +00:00
Anders Broman
777a4ee10e - Fix a crash when an entry in the popup menue is selected and there
are no epert info entries.
- Updates to GUManager code(still incomplete).

svn path=/trunk/; revision=33757
2010-08-10 11:08:18 +00:00
Anders Broman
93f65bb572 Update the experimental code to use the UI manager.
svn path=/trunk/; revision=33743
2010-08-09 16:16:58 +00:00
Guy Harris
1e5aeaac2a You can't free a string constant.
svn path=/trunk/; revision=33740
2010-08-08 21:38:36 +00:00
Guy Harris
e85c2051ff Don't set the icon name:
1) the GTK+ documentation recommends against it;

	2) the X11 implementation of gtk_window_set_title() sets the
	   icon name to the title, so gdk_window_set_icon_name() doesn't
	   do anything interesting, and the Win32 and Quartz
	   implementations of gdk_window_set_icon_name() don't do
	   anything;

	3) gdk_window_set_icon_name() either crashes or complains if
	   it's handed a null pointer, which happens at startup.

Clean up indentation.

svn path=/trunk/; revision=33739
2010-08-08 21:26:39 +00:00
Anders Broman
c9a7fade6a From Cal Turney:
Optionally display Wireshark version in the main window's title bar.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040

svn path=/trunk/; revision=33729
2010-08-07 14:37:37 +00:00
Bill Meier
25c0d9a667 (Trivial) Whitespace cleanup.
svn path=/trunk/; revision=33723
2010-08-05 22:34:59 +00:00
Bill Meier
88953d2818 (Trivial) Define rpcprogs_packet() as returning gboolean; Whitespace cleanup.
svn path=/trunk/; revision=33722
2010-08-05 22:27:17 +00:00
Bill Meier
80fee5052b From Cal Turney: Need 6 dec places of SRT precision in WS SRT dialogs and the values should be rounded to the nearest 1us.
From me: 
 -Slight revision of the patch to prevent overflows 
   when time_t is 32 bits (eg: on 32 bit Linux);
 -Other minor changes.

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

svn path=/trunk/; revision=33721
2010-08-05 22:14:16 +00:00
Stig Bjørlykke
4a72d7eabc Initialize tmp_info to avoid warnings from clang:
"Assigned value is garbage or undefined".

svn path=/trunk/; revision=33714
2010-08-05 07:12:56 +00:00
Balint Reczey
dba9b31fbe Fix Windows builds broken by previous commit
svn path=/trunk/; revision=33684
2010-08-01 11:14:49 +00:00
Balint Reczey
a89c52939f Use local copy of Wireshark documentation on UNIX if it's available.
Installation has to be done manually to the location specified by --docdir
configure option.

svn path=/trunk/; revision=33683
2010-08-01 10:45:42 +00:00
Bill Meier
74450c6cfb 'extern gint popup_menu_handler' ==> 'extern gboolean popup_menu_handler' to match just committed menus.c
svn path=/trunk/; revision=33680
2010-07-30 12:56:37 +00:00
Bill Meier
6cdec04e59 (Minor) Cleanup some "event callback" function declarations/definitions:
- Add missing 'user_data' arg as needed;
- Use gboolean rather than int as the type of the value returned.
Also: Cleanup whitespace & reformat long lines in a few cases.

svn path=/trunk/; revision=33679
2010-07-30 12:41:56 +00:00
Bill Meier
9a7e8cdddf Minor code cleanup:
- Define several event callback functions with the correct number of args;
- Remove several unnecessary 'if (!user_data)  exit(10);' code sequences;
- Use 'user_data' arg of event callbacks instead of an object property
  in several cases;
- Reformat some long lines.


svn path=/trunk/; revision=33677
2010-07-30 00:17:49 +00:00
Bill Meier
01a16291ab (Trivial) Indentation cleanup (mostly: fix "4 space tabs").
svn path=/trunk/; revision=33669
2010-07-29 14:23:32 +00:00
Bill Meier
92429e22b0 Use a custom sort function for each column of the dissector tables display:
1. Numeric values in the 'Integer Tables' now sort properly.
   (For some reason just using a fixed width string for numeric values sorted
    OK on Windows but not on *nix).
2. The sort may be even faster since it's reputed that the default sort used 
   by Gtk [g_utf8_collate()] is "expensive".

svn path=/trunk/; revision=33666
2010-07-29 00:29:06 +00:00
Bill Meier
41c3ed255a Minor changes:
Use gtk_tree_store_insert_with_values if GTK >= 2.10;
 Change numeric formatting slightly in integer tables so values will
   sort numerically;
 Misc whitespace changes.

svn path=/trunk/; revision=33657
2010-07-28 22:47:48 +00:00
Bill Meier
020ceaeb1a (Trivial) Fix some typos; Also: Use consistent indentation.
svn path=/trunk/; revision=33647
2010-07-28 13:34:41 +00:00
Guy Harris
deae609c44 Backing out r33631 for now - it has a number of issues.
svn path=/trunk/; revision=33646
2010-07-28 01:12:41 +00:00
Bill Meier
e826e0f567 (Trivial) Fix a typo
svn path=/trunk/; revision=33644
2010-07-27 18:59:30 +00:00
Bill Meier
8633c8bb20 (Trivial) use gboolean instead of int in a few places; Whitespace cleanup.
svn path=/trunk/; revision=33636
2010-07-26 16:22:33 +00:00
Bill Meier
f862c7cada (Trivial) Fix references to "clist" in comments;
svn path=/trunk/; revision=33635
2010-07-26 16:15:34 +00:00
Bill Meier
fd29a93da3 (Trivial) Use gboolean instead of int in a few places; Whitespace cleanup.
svn path=/trunk/; revision=33634
2010-07-26 16:11:56 +00:00
Anders Broman
2bd0983a36 From Cal Turney:
Optionally display Wireshark version in the main window's title bar.
(Modified to include SVN version).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040

svn path=/trunk/; revision=33631
2010-07-26 13:23:30 +00:00
Bill Meier
59f8f254a3 (Trivial) Use enum definitions instead of numbers in a switch statement;
Whitespace cleanup.

svn path=/trunk/; revision=33622
2010-07-23 14:01:47 +00:00
Jaap Keuter
7330e63128 Backing out r33612.
svn path=/trunk/; revision=33619
2010-07-23 05:08:07 +00:00
Bill Meier
99c52f1c94 (Trivial): Whitespace cleanup.
svn path=/trunk/; revision=33618
2010-07-22 20:53:24 +00:00
Bill Meier
bf7415da42 Rework code so start-time, end-time, & packets columns sort properly and are right-justified;
Remove some redundant code;
Widen the VOIP calls window slightly so all columns are displayed initially;
Minor whitespace cleanup.

svn path=/trunk/; revision=33617
2010-07-22 18:44:11 +00:00
Jaap Keuter
210227d8da From Cal Turney:
Remember folder of capture selected from Welcome screen file dialog.

svn path=/trunk/; revision=33612
2010-07-21 19:42:01 +00:00
Bill Meier
f3526b9cf5 Fix checkAPI targets so gtk-deprecated and gtk-deprecated-todo checks are
properly done. (gtk-deprecated check got inadvertantly removed a while back).

svn path=/trunk/; revision=33599
2010-07-21 00:04:04 +00:00
Bill Meier
5183360ecd (Minor) Fix several usages of deprecated GTK functions.
svn path=/trunk/; revision=33597
2010-07-20 23:48:56 +00:00
Bill Meier
4a70616cc6 GtkOptionMenu ==> GtkComboBox
(Let's see if the UI seems OK or should be replaced with something
 simpler. (See comments in thecode)).

svn path=/trunk/; revision=33592
2010-07-20 14:34:00 +00:00
Bill Meier
4f48117483 Add ws_combo_box_new_text_and_pointer_full() to allow returning
the cell renderer associated with the ComboBox.

svn path=/trunk/; revision=33591
2010-07-20 14:30:41 +00:00
Martin Mathieson
d091583897 Add new UEs to the end of the list.
svn path=/trunk/; revision=33589
2010-07-20 08:57:15 +00:00
Jörg Mayer
8c03a4472a Updading opensuse 11.2 -> 11.3 updated gcc to 4.5.0, which created
a few warnings that needed fixing when compiling with -Werror.

svn path=/trunk/; revision=33587
2010-07-20 08:27:34 +00:00
Bill Meier
fa5fecf047 Change ws_combo_box... to use a tree-store instead of a list-store;
This allows the dispay of the ws_combo_box choices as a tree.
Also: Rename ws_combo_box_append_text_and_pointer_with_sensitivity() to
             ws_combo_box_append_text_and_pointer_full().

svn path=/trunk/; revision=33538
2010-07-15 15:05:39 +00:00
Guy Harris
cc3540b0fb Move the code to get version information for libraries used by
libwireshark into libwireshark, and call it only in programs linked with
libwireshark.  That way, programs that don't link with libwireshark
don't have to link with libgcrypt or libgnutls solely so that they can
say that they're linked with a particular version of libgcrypt or
libgnutls.

Don't link dumpcap with libgcrypt or libgnutls any more.

svn path=/trunk/; revision=33531
2010-07-15 02:07:16 +00:00
Gerald Combs
aa75147f9b Get our dynamic payload name from the correct location.
svn path=/trunk/; revision=33525
2010-07-14 18:40:11 +00:00
Bill Meier
08fb59e773 Trivial: Replace deprecated GTK_CHECK... macros with apropriate G_TYPE_CHECK... macros
svn path=/trunk/; revision=33502
2010-07-13 14:50:16 +00:00
Bill Meier
dd47063e3d Minor cleanup:
- GHFunc's return void not void *;
 - Use gboolean where apropriate.

svn path=/trunk/; revision=33500
2010-07-13 14:12:06 +00:00
Bill Meier
2da541c42e Minor cleanup:
- rename rpcstat_t to dcerpcstat_t since a different definition of rpcstat_t in
  another Wireshark source file apparently confuses the Windows debugger;
- GHFunc's return void not void *;
- Use gboolean where apropriate.

svn path=/trunk/; revision=33499
2010-07-13 13:51:25 +00:00
Bill Meier
b139720101 Whitespace cleanup: consistent indentation; tabs==>spaces; etc
svn path=/trunk/; revision=33498
2010-07-13 01:38:54 +00:00
Bill Meier
c76f89bf35 GtkOptionMenu ==> GtkComboBox
svn path=/trunk/; revision=33497
2010-07-13 00:46:00 +00:00
Bill Meier
40de4ed2b0 ws_combo_box_text_and_pointer: allow setting entries as "insensitive".
svn path=/trunk/; revision=33494
2010-07-13 00:17:08 +00:00
Jörg Mayer
bd09fbef8a Add dissector_tables_dlg.c
svn path=/trunk/; revision=33477
2010-07-08 14:19:32 +00:00
Anders Broman
ab2eaa1001 Add "WS internal" to the menues this can be used to display internal information like the curren "entry" dissector tables. Emem statistics
could be another item to add.

Add dissector tables treview. This cab be used to find which UDP ports are registered for example.

svn path=/trunk/; revision=33474
2010-07-08 11:05:16 +00:00
Guy Harris
e1d0087af9 NEW_FILTER_COMBO_BOX no longer does anything - it's not checked for - so
there's no need to define it.

svn path=/trunk/; revision=33469
2010-07-07 20:33:19 +00:00
Anders Broman
3d431c8258 Remove the #ifdefs and code related to the switch to gtk_combo_box().
svn path=/trunk/; revision=33465
2010-07-07 16:07:09 +00:00
Guy Harris
ba77133cbb I added PCAP_NETMASK_UNKNOWN in libpcap 1.1.0; it's not present in
1.0.0.  You're supposed to just use 0 in releases prior to 1.1.0 - in
1.1.0 and later, a netmask of PCAP_NETMASK_UNKNOWN will cause errors if
you try to use "ip broadcast" (as you need the netmask to check for
local broadcasts), but, prior to that, the netmask value is blindly used
even if the filter will always fail.

svn path=/trunk/; revision=33461
2010-07-07 01:55:34 +00:00
Jaap Keuter
b87d82d0b4 Add button to look at compiled BPF.
This allows to test and experiment with BPF expressions, before launching
the capture itself. 

svn path=/trunk/; revision=33459
2010-07-06 21:02:19 +00:00
Anders Broman
b722b193a6 - Show droped packets counter after stopping a live capture.
- Don't show "Load time" during live capture.
- Fix indentation and minor changes to comments.
Should ignored packets be shown also when drops is known?

svn path=/trunk/; revision=33440
2010-07-05 22:09:10 +00:00
Martin Mathieson
e0871291f7 Add a checkbox to allow DCT errors to be included in generated display filter.
svn path=/trunk/; revision=33434
2010-07-05 12:38:09 +00:00
Stig Bjørlykke
060001dc95 We have no first and second block when dumping bits view, so no adjustments.
svn path=/trunk/; revision=33433
2010-07-05 10:53:48 +00:00
Martin Mathieson
735ec2d6d2 For DL HARQ retx, support knowing result or not.
svn path=/trunk/; revision=33431
2010-07-05 10:35:17 +00:00
Stig Bjørlykke
7b64be6a80 Revert COL_DSCP_VALUE back to value set in packet-ip.c.
Right justify COL_DSCP_VALUE (and COL_DCE_CALL as in the old packet list).

svn path=/trunk/; revision=33430
2010-07-05 09:05:27 +00:00
Stig Bjørlykke
0c2e3652e6 Recreate the packet list on DND columns.
This is a quick'n'dirty fix and not optimal, but it fixes the problems we
have with DND columns.  We have to rewrite new_packet_list_recreate() to
handle both new, delete and reorder columns.

svn path=/trunk/; revision=33400
2010-07-01 14:33:36 +00:00
Stig Bjørlykke
6b5a031808 Fetch filter and copy summary from correct column after DND columns.
This does not recreate the internal structures, but we we fix the problem
with fetching wrong data.  Printing still uses the configured column order.

svn path=/trunk/; revision=33399
2010-07-01 12:21:29 +00:00
Stig Bjørlykke
9877a63dc7 Remove some double GTK_TREE_VIEW casts.
svn path=/trunk/; revision=33398
2010-07-01 11:31:24 +00:00
Gerald Combs
bc9f8d0cd7 Add Visual C++ project files to the distribution.
svn path=/trunk/; revision=33386
2010-06-30 23:20:03 +00:00
Guy Harris
ea7ec90221 Back out what I suspect were private/not-ready-for-prime-time changes,
not all of the parts of which were present, causing the build to fail.

svn path=/trunk/; revision=33377
2010-06-29 22:38:00 +00:00
Anders Broman
9cf8b495fe Fix:new_packet_list: Crash triggered when changing display filter from right-mouse pop-up menu via packet-list.
g_object_set_data() was using physical_row rather than row.

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

svn path=/trunk/; revision=33376
2010-06-29 21:29:53 +00:00
Stig Bjørlykke
abb629c4f8 Fixed removing a Time Reference from a column not matching the display filter.
svn path=/trunk/; revision=33334
2010-06-26 22:53:36 +00:00
Stig Bjørlykke
2ae635a51a Cleanup some whitespace.
svn path=/trunk/; revision=33333
2010-06-26 21:42:12 +00:00
Stig Bjørlykke
59e35b0fbc Always show packets with Time Reference (as in the old packet list).
Recreate visible rows when removing a Time Reference which has not passed
the display filter.

svn path=/trunk/; revision=33332
2010-06-26 21:30:36 +00:00
Martin Mathieson
b040f1ac8c Improve UM analysis - make it more like AM.
svn path=/trunk/; revision=33328
2010-06-25 23:04:16 +00:00
Gerald Combs
96558700c1 UTF-8-ize a bunch more arrows. If IE6 on XP can render them then they
*must* be safe to use, right?

svn path=/trunk/; revision=33326
2010-06-25 22:09:34 +00:00
Gerald Combs
ca6d2031cd Try replacing "-->" with the UTF-8 byte sequence for "RIGHTWARDS ARROW".
If this works we can replace ASCII arrows elsewhere in the UI.

svn path=/trunk/; revision=33325
2010-06-25 21:01:42 +00:00
Stig Bjørlykke
1fdc2a2428 Initialize recent.gui_fileopen_remembered_dir correctly.
Set last open dir when changing profile.

svn path=/trunk/; revision=33324
2010-06-25 19:33:18 +00:00
Stig Bjørlykke
86d55f9a13 Fall back to get_persdatafile_dir() if recent.gui_fileopen_remembered_dir
does not exist or is no directory.

svn path=/trunk/; revision=33323
2010-06-25 19:22:32 +00:00
Stig Bjørlykke
7608a89820 From Cal Turney via bug 4849:
Save the folder path of the last capture selected in the Open dialog in recent.

svn path=/trunk/; revision=33322
2010-06-25 18:55:09 +00:00
Stig Bjørlykke
5a69e41f6e Enable "Show Resolved" for custom OID columns.
svn path=/trunk/; revision=33320
2010-06-25 10:44:12 +00:00
Stig Bjørlykke
beb4314276 Introduce "Show Resolved" as an option in custom columns. This will determine
if we show the value or the string representing the value.

This setting is not stored in the preferences file yet, and the option is
not available in the columns preferences window.

svn path=/trunk/; revision=33317
2010-06-25 06:42:34 +00:00
Stig Bjørlykke
476bc1cfcc Add the "Follow Stream" button to the TCP conversations and UDP conversations
dialog.

svn path=/trunk/; revision=33305
2010-06-23 19:49:33 +00:00
Stig Bjørlykke
ea17dd9edf Added a "Follow Stream" button to the conversations dialog.
svn path=/trunk/; revision=33304
2010-06-23 16:49:17 +00:00
Michael Tüxen
792c7add3a From Robin Seggelmann: Improve SCTP chunk statistics.
svn path=/trunk/; revision=33297
2010-06-23 07:47:15 +00:00
Stig Bjørlykke
ad2e1ed37a Use the fetched cur_fmt for format number.
svn path=/trunk/; revision=33296
2010-06-23 07:29:53 +00:00
Stig Bjørlykke
2e5c2b805f Check for custom column before using custom_field.
Store hidden columns correctly.

svn path=/trunk/; revision=33288
2010-06-22 13:40:28 +00:00
Stig Bjørlykke
737c0e843b Always make new columns visible.
svn path=/trunk/; revision=33285
2010-06-22 11:09:07 +00:00
Stig Bjørlykke
667845d267 Include some column details in the "Displayed Columns" list.
svn path=/trunk/; revision=33284
2010-06-22 08:56:05 +00:00
Stig Bjørlykke
591ef8ab4a Highlight correct number of bytes when highlighted hex dump ends at the end
of the first block.

svn path=/trunk/; revision=33283
2010-06-22 08:49:12 +00:00
Stig Bjørlykke
1cef658661 Added the displayed columns menu in the heading popup.
svn path=/trunk/; revision=33281
2010-06-21 20:33:39 +00:00
Stig Bjørlykke
3e829eb564 Rename "Visible" to "Displayed" for hide columns functions.
svn path=/trunk/; revision=33279
2010-06-21 13:57:03 +00:00
Jaap Keuter
d31046f46e Fix for bug 4875:
Don't hint at a local User's Gude when there isn't one.

svn path=/trunk/; revision=33267
2010-06-20 16:27:03 +00:00
Stig Bjørlykke
d3e1e2df1e Added "Hide Column" functionality.
svn path=/trunk/; revision=33266
2010-06-20 16:23:43 +00:00
Martin Mathieson
f006198edd Don't refer to file-static variables as extern (my gcc didn't like it).
svn path=/trunk/; revision=33241
2010-06-17 05:03:08 +00:00
Guy Harris
c81cbe1842 Go back to 64-bit sizes, but, before passing those sizes to
g_try_malloc() or g_try_realloc(), check whether they fit in a gsize
and:

	if not, just pretend the allocation failed;

	if so, cast them to gsize to squelch compiler warnings.

svn path=/trunk/; revision=33239
2010-06-16 18:28:28 +00:00
Stig Bjørlykke
791649f6d5 Use gsize for file sizes.
svn path=/trunk/; revision=33235
2010-06-16 15:26:47 +00:00
Guy Harris
d3f0c70724 Cast bytes_left down to an int once we've established it will fit.
svn path=/trunk/; revision=33232
2010-06-16 03:09:16 +00:00
Guy Harris
d4cc16d4a1 Handle WTAP_ERR_SHORT_WRITE in file_write_error_message().
In eo_save_entry(), don't assume you can write the entire object in a
single write call - if the object is big enough (which would require a
64-bit address space), and you're not lucky enough to be running on
UN*X (which means LP64, so size_t and ssize_t are big enough for the
entire object), you can't.

svn path=/trunk/; revision=33231
2010-06-16 01:30:29 +00:00
Stig Bjørlykke
b940189f7a Cleanup header file define guards.
svn path=/trunk/; revision=33230
2010-06-15 21:18:31 +00:00
Stig Bjørlykke
e915e93532 From David Perez & Jose Pico from Taddong S.L. via bug 4451:
This functionality keeps track of all SMB objects contained in a capture,
and is able to export to a file a full or partial captured file that has
been transfered through the SMB protocol. In a partial capture, the holes
produced by the non-captured information are filled out with zeros.
It includes the needed modifications of the SMB dissector in the way it keeps
track of the opened SMB files and also to feed the eo_smb tap listener.

svn path=/trunk/; revision=33227
2010-06-15 14:03:49 +00:00
Bill Meier
59af566844 Fix Bug #4871: Wrong Ack value in TCP flow graph when using relative sequence numbers.
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4871  

svn path=/trunk/; revision=33223
2010-06-14 12:37:43 +00:00
Bill Meier
3493bad7e8 Add info to the "Enable OID resolution" tooltip that if 'True' then the 'SMI paths' and the 'SMI modules' preferences will be shown;
Fix a comment. 

svn path=/trunk/; revision=33219
2010-06-13 20:27:21 +00:00
Martin Mathieson
d2087d514e Add Copy (to clipboard) to expert item popup menu.
svn path=/trunk/; revision=33214
2010-06-13 14:55:11 +00:00
Bill Meier
d5140df7e1 Rename some variables; At least one ('end') seemed to confuse the Windows debugger;
Also: Udate some coments.

svn path=/trunk/; revision=33213
2010-06-13 14:31:11 +00:00
Stig Bjørlykke
372cdf09e4 From Jim Young via bug 4862:
GLIB 2.14 necessary to compile Wireshark with Protocol help.

svn path=/trunk/; revision=33204
2010-06-10 10:13:34 +00:00
Stig Bjørlykke
49330ef460 Avoid a crash when deleting the first character in the filter.
svn path=/trunk/; revision=33168
2010-06-08 21:36:31 +00:00
Jeff Morriss
dd1de7cf83 NEW_FILTER_COMBO_BOX: Make the Expression... button work again.
svn path=/trunk/; revision=33163
2010-06-08 18:42:20 +00:00
Jeff Morriss
1728c1e4af NEW_FILTER_COMBO_BOX: dfilter_combo_add_empty() doesn't appear to be needed: the entry field is empty even after populating thelist of recent filters.
svn path=/trunk/; revision=33161
2010-06-08 16:01:50 +00:00
Jeff Morriss
3e2ab3e0bd dfilter_entry_match() (for NEW_FILTER_COMBO_BOX): unset value each time through the loop to avoid duplicate initialization warnings from glib.
svn path=/trunk/; revision=33160
2010-06-08 14:40:31 +00:00
Guy Harris
968fc63f3c Rename the NEW_FILTER_COMBO_BOX routine dfilter_entry_match_new() to
dfilter_entry_match(), as the old dfilter_entry_match() isn't defined or
used if NEW_FILTER_COMBO_BOX is defined.

Clean up indentation a bit.

svn path=/trunk/; revision=33154
2010-06-07 23:33:16 +00:00
Guy Harris
90a1fa7fe6 Don't define dfilter_entry_match() if we're using a combo box, as it's
not used.

Clean up indentation.

svn path=/trunk/; revision=33148
2010-06-07 19:17:12 +00:00
Guy Harris
6599fc59f0 Declare dfilter_list only if we're going to use it.
svn path=/trunk/; revision=33144
2010-06-07 18:49:37 +00:00
Anders Broman
52ecd9d44a Use NEW_FILTER_COMBO_BOX.
If there is no major problems the code can be cleaned up in a few days time.

svn path=/trunk/; revision=33141
2010-06-07 18:28:17 +00:00
Anders Broman
427dca65d0 Update the code for NEW_FILTER_COMBO_BOX.
svn path=/trunk/; revision=33140
2010-06-07 18:25:37 +00:00
Anders Broman
1b3be7a754 From Jim Young:
Remove unneeded "gtk_tree_path_free(path);" from case
"GDK_Return:" in tree_view_key_pressed_cb() that was reverted in r32957 to restore X11 functionality lost in refactored code from r32323.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4847

svn path=/trunk/; revision=33112
2010-06-06 16:25:41 +00:00
Gerald Combs
28d7c73588 From Chris Maynard via bug 1546:
Add units to the rate.

svn path=/trunk/; revision=33099
2010-06-04 23:16:31 +00:00
Stephen Fisher
217b344bd9 Per Jaap's suggestion on -dev list: remove "with new_packet_list" from
version output since it has been the default for a while now and show
"with old_packet_list" if compiled as such. 


svn path=/trunk/; revision=33035
2010-06-01 18:33:16 +00:00
Jeff Morriss
47e2d75820 Move some code (including the optional objects) into libwsutil
svn path=/trunk/; revision=33012
2010-05-28 20:19:55 +00:00
Gerald Combs
17807a6b21 From Jakub Zawadzki via bug 4273:
After appending new record set packet_list->columnized to FALSE.

From me:

Use g_ptr_array_sort_with_data instead of g_qsort_with_data in case the
GPtrArray internals ever change.

svn path=/trunk/; revision=33011
2010-05-28 18:04:56 +00:00
Jörg Mayer
c160ddd1de Add proto_help.c to the list of files.
svn path=/trunk/; revision=33008
2010-05-28 11:18:04 +00:00
Bill Meier
64d6943ddf Add svn:keywords & svn:eol-style properties
svn path=/trunk/; revision=33007
2010-05-28 01:37:32 +00:00
Gerald Combs
f5df768724 fopen -> ws_fopen
svn path=/trunk/; revision=33002
2010-05-27 21:17:55 +00:00
Gerald Combs
8bdb1bff8d Protocol Help requires GLib 2.6+. Add newlines. Fixup whitespace.
svn path=/trunk/; revision=33001
2010-05-27 19:54:02 +00:00
Gerald Combs
fa5f6cced7 From Edgar Gladkich:
This is an extension to the Wireshark context sensitive protocol help. Rows in
TreeView window are analyzed and suitable help file (as HTML) is opened in a
browser.

The help part (large file, 23 MB) of the Protocol Help can be downloaded under
www.inacon.com/dowload/stuff/protocol_help.tar.gz

This protocol help "light" provides descriptive content for the most frequently
used standard protocols, including IP, TCP or SMTP.

From me:

Changes:

Rename "ph_" in some function names to "proto_help_". Move the protocol
help code to its own module.

Make a bunch of functions static. Remove unused code.

Use browser_open_url() instead of a custom function.

Increase the logging levels. Don't clobber the normal log handler.

Update some Doxygen comments to match the format in the rest of the code
base.

Removed GTK version checks. We've been 2.x only for a while.

Move ph_replace_string to string_replace() in epan/strutil.[ch].

Fix a bunch of memory leaks.

Add a NULL pointer check.

Reformat the overview menu label.

Document the file format and locations.

Add Edgar to AUTHORS.

svn path=/trunk/; revision=32995
2010-05-27 15:51:25 +00:00
Gerald Combs
b3a83551a3 Make sure our prefix length is > 0 before lopping off the last
character.  Fixes bug 4797.

svn path=/trunk/; revision=32987
2010-05-27 00:49:01 +00:00
Anders Broman
9992de5a4a From Jakub Zawadzki:
One more change from wtap_seek_read to cf_read_frame.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4666

svn path=/trunk/; revision=32984
2010-05-26 21:39:24 +00:00
Gerald Combs
074b9660b6 Have new_packet_list_queue_draw() redraw the packet detail as well. Call
new_packet_list_queue_draw() whenever we mark/unmark frames. Fixes bug
4669.

svn path=/trunk/; revision=32981
2010-05-26 19:44:40 +00:00
Anders Broman
65ee4e797a From Jakub Zawadzki:
New functions: cf_read_frame_r, cf_read_frame

It's much easier to write:
 cf_read_frame (cf, fdata, &err, &err_info)
Than:
 wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd,
fdata->cap_len, &err, &err_info)

svn path=/trunk/; revision=32980
2010-05-26 19:11:23 +00:00
Martin Mathieson
763a397ae3 Add a tooltip.
svn path=/trunk/; revision=32977
2010-05-26 15:51:47 +00:00
Martin Mathieson
13c9cf1d38 Add some tooltips.
svn path=/trunk/; revision=32976
2010-05-26 15:20:10 +00:00
Gerald Combs
237eef2ae7 r32323 broke packet detail tree expansion using the left/right keys on
X11. Add back the removed code and add checks for expandable items.

svn path=/trunk/; revision=32957
2010-05-25 23:55:33 +00:00
Martin Mathieson
892d3112ed Add a filter for DCT2000 error strings, and allow it be included in generated filters from RLC status window.
svn path=/trunk/; revision=32946
2010-05-25 14:02:17 +00:00
Guy Harris
36623bcb71 From H.sivank: GtkOSXApplication support.
Call the various flavors of OS X integration just "OS X integration",
not anything with "IGE" in it - it appears that, in some places,
"ige-mac-integration" refers only to the older Carbon-based functions,
although the library still appears to be called -ligemacintegration.

Update the URLs for the information about the OS X integration
libraries.

Clean up help message for --with-pcap-remote.

Clean up white space a bit.

Speaking of white space, it's "Mac OS X", not "MacOS X".

svn path=/trunk/; revision=32941
2010-05-25 00:35:44 +00:00
Bill Meier
4dcaf67f37 Fix regression: unable to enter values in Filter Expression window unless value list present.
(Regression introduced in SVN #30918).
Code reworked slightly for clarification.

svn path=/trunk/; revision=32912
2010-05-20 23:49:57 +00:00
Jaap Keuter
1a3fd99542 Fix for bug 4778:
Check that the widget pointer is still present.

svn path=/trunk/; revision=32911
2010-05-20 19:03:13 +00:00
Guy Harris
9d819eb925 Don't assume that certain address columns are always constant strings -
they're no more guaranteed to be constant strings than the columns we're
*not* assuming are constant strings.  Fixes bug 4771.

svn path=/trunk/; revision=32906
2010-05-20 07:15:27 +00:00
Guy Harris
15e546e65d If the user asks for the Capture -> Interfaces dialog, and there are no
network interfaces, pop up a dialog saying that, rather than popping up
an empty Interfaces dialog.

svn path=/trunk/; revision=32884
2010-05-19 03:05:40 +00:00
Guy Harris
991c5e9898 When dumpcap is run to get an interface list, interface capabilities, or
interface statistics, have its error messages come out as sync-pipe
errors, have it send a sync-pipe "success" message on success, and have
the callers get that message and display it.

svn path=/trunk/; revision=32843
2010-05-17 18:40:23 +00:00
Stig Bjørlykke
2bb480e70d Ensure we update default link-layer list when toggeling monitor mode.
svn path=/trunk/; revision=32835
2010-05-16 15:44:43 +00:00
Guy Harris
342d436705 If we don't know whether a device supports monitor mode, turn off
monitor mode in the checkbox before making the checkbox insensitive.

svn path=/trunk/; revision=32829
2010-05-16 08:14:29 +00:00
Stig Bjørlykke
01a135ef05 Also set sensitive on monitor and linktype label, as it's not clear that
the monitor mode is disabled when only the check box is disabled.

svn path=/trunk/; revision=32827
2010-05-15 23:25:53 +00:00
Stig Bjørlykke
5f58400065 Set the correct "monitor mode" button state.
svn path=/trunk/; revision=32826
2010-05-15 22:54:44 +00:00