Commit graph

4974 commits

Author SHA1 Message Date
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
Guy Harris
e1e576c11b Support monitor mode in the capture preferences.
Use prefs_is_capture_device_hidden() to find out whether a device should
be hidden - don't scan the list of hidden devices ourselves.

svn path=/trunk/; revision=32820
2010-05-15 19:38:13 +00:00
Guy Harris
a41f89c8f5 Fix the tooltip for the "monitor mode" checkbox.
Speak of network adapters rather than network cards (most personal
computers these days have no network cards - the network adapters are on
the motherboard).

svn path=/trunk/; revision=32810
2010-05-14 17:36:17 +00:00
Jeff Morriss
54082c6ed0 Add Cmake stuff to the source distribution so more people can try it out.
svn path=/trunk/; revision=32807
2010-05-14 16:27:03 +00:00
Guy Harris
0ad496957f Fix compilation when we don't have pcap_create().
svn path=/trunk/; revision=32805
2010-05-14 07:48:50 +00:00
Guy Harris
6aac80597f Support monitor mode from the GUI.
svn path=/trunk/; revision=32804
2010-05-14 05:15:40 +00:00
Guy Harris
8d56103f48 Don't include capture-related headers if we don't support capturing
network traffic.

svn path=/trunk/; revision=32802
2010-05-14 01:39:02 +00:00
Guy Harris
9307251bb8 Um, no, the problem with the Leopard x86 build is that we first do a
build without libpcap, to make sure that works, and then do a build with
libpcap, to put into a binary release.  It's the former that's failing;
I'll back out the previous change and then work on that.

svn path=/trunk/; revision=32801
2010-05-14 00:49:28 +00:00
Guy Harris
0e54136213 See whether the Leopard x86 buildbot is upset because of the name
if_capabilities_t - it doesn't fail on Snow Leopard, even if I undefine
HAVE_PCAP_CREATE, and doesn't fail on the Leopard PPC buildbot, either.

svn path=/trunk/; revision=32799
2010-05-14 00:10:15 +00:00
Guy Harris
1c18115bd3 Fetch an indication of whether the interface supports capturing in
monitor mode at the same time that we fetch its list of link-layer
types.  Support fetching that list in monitor mode, as the list may be
different in regular and monitor mode.  If the interface supports
monitor mode, when printing the list of link-layer types, indicate
whether they're fetched in monitor mode or not, as tcpdump 4.1.x does.

svn path=/trunk/; revision=32789
2010-05-13 17:37:39 +00:00
Guy Harris
74b7ca5802 Don't set the sensitivity of the Open button based on whether we can
open the currently-selected file; that button is also used to select the
file or directory typed in the location bar.  This should fix bug 1791.

svn path=/trunk/; revision=32774
2010-05-12 19:44:23 +00:00
Gerasimos Dimitriadis
35efe5e36f Initialize the GValues without triggering any warnings
svn path=/trunk/; revision=32767
2010-05-11 21:50:54 +00:00
Jaap Keuter
58843eaf03 Make the changes compile on Linux also.
svn path=/trunk/; revision=32762
2010-05-11 20:57:15 +00:00
Anders Broman
55572b41b3 Start to replace deprecated gtk_combo_new() with
gtk_combo_box_entry_new_text().

(I'll try to get back to this tomorrow)

svn path=/trunk/; revision=32759
2010-05-11 19:52:40 +00:00
Anders Broman
677e54d0a9 Replace deprecated gtk_input_add_full()
svn path=/trunk/; revision=32750
2010-05-11 08:36:16 +00:00
Jeff Morriss
60b8391d5b Follow on to rev 32593: apparently delaying the start of resolv_update_cb() isn't always enough. Delaying it further is would require adding the function call to several cases of an already complicated if/then/else + #ifdef/#else, so instead just put in a NULL check before calling gdk_window_invalidate_rect().
svn path=/trunk/; revision=32743
2010-05-11 02:25:22 +00:00
Bill Meier
7e9418f687 Fix a gcc -Wshadow warning.
svn path=/trunk/; revision=32736
2010-05-10 16:39:53 +00:00
Stig Bjørlykke
f4418004f6 Bring back "1 min" and "10 min" in IO Graph Tick interval.
svn path=/trunk/; revision=32733
2010-05-10 10:48:45 +00:00
Jaap Keuter
a7c62614d7 Clean comments and indentation.
svn path=/trunk/; revision=32726
2010-05-09 05:40:29 +00:00
Sake Blok
0618e53168 Enable "Decode As..." for ethertype 0x0000 (fix for bug 4721)
svn path=/trunk/; revision=32723
2010-05-08 07:55:12 +00:00
Guy Harris
547b9e48a2 The default capture buffer size is, in fact, *nominally* 1MB; however,
libpcap/WinPcap and the capture mechanism atop which they run might
either silently limit the buffer size to a smaller value or raise it to
a higher value - that's the part that's platform-dependent.

svn path=/trunk/; revision=32718
2010-05-08 00:39:07 +00:00
Guy Harris
0b62cc144e Don't define err_str twice if building on Win32 with AirPcap support.
svn path=/trunk/; revision=32717
2010-05-08 00:17:06 +00:00
Guy Harris
077ff72ac1 As with the list of data link types, so with the list of interfaces; move
the code to print the machine-readable format into dumpcap, and have the
code in capture_opts.c just print the human-readable format.

svn path=/trunk/; revision=32714
2010-05-07 19:24:32 +00:00
Guy Harris
13bf4a0c55 Add routines vfprintf_stderr() and fprintf_stderr() to print to the
standard error and, in Wireshark on Windows, create a console if
necessary.  Have the cmdarg_err routines use them.

Use *fprintf_stderr() to print the output of -L, rather than using
cmdarg_err_cont(), so that we don't get extra newlines in the output (it
should look similar to the output of tcpdump).

svn path=/trunk/; revision=32711
2010-05-07 08:40:02 +00:00
Guy Harris
cc05b9250d For TShark and Wireshark, get the list of link-layer types for an
interface by running dumpcap, so that if you need privileges to open an
interface, and dumpcap has those privileges, neither TShark nor
Wireshark need them.

svn path=/trunk/; revision=32710
2010-05-07 08:06:25 +00:00
Guy Harris
1ec0105817 Add monitor mode support to Wireshark *on the command line*; support
through the GUI requires more work.

svn path=/trunk/; revision=32706
2010-05-07 01:55:13 +00:00
Guy Harris
4c5b8c5277 Instead, say that the default is platform-dependent.
svn path=/trunk/; revision=32701
2010-05-07 00:28:42 +00:00
Guy Harris
96f67d9517 Now that we support -B on various UN*X platforms as well as Windows, we
can no longer state what the default is (it's platform-dependent).

svn path=/trunk/; revision=32700
2010-05-07 00:16:52 +00:00
Guy Harris
7dbbb8c572 Just check for pcap_create(); it first appeared in libpcap 1.0.0, and
pcap_set_buffer_size() did as well, so there aren't any libpcap releases
with pcap_create() but not pcap_set_buffer_size().

Only do one check for pcap_create.

svn path=/trunk/; revision=32695
2010-05-06 23:33:41 +00:00
Anders Broman
f9981411f1 Checking in Stigs changes from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=475
BUT not activating the check for 
pcap_create()
pcap_set_buffer_size()
This should make it possible to build with support for setting the buffersize if not capturing 802.11 traffic.

The code for handling the 'B' option should be OK in any case.

svn path=/trunk/; revision=32688
2010-05-06 18:34:30 +00:00
Stig Bjørlykke
54101a8630 Moved command line option for seconds type to -u.
Added this option to tshark.

svn path=/trunk/; revision=32685
2010-05-06 12:31:24 +00:00
Stig Bjørlykke
6efcb1adf0 Added an option to display seconds as hours, minutes and seconds
in the packet list, on this format: "1h 2m 3.456s".

svn path=/trunk/; revision=32683
2010-05-06 10:32:59 +00:00
Stephen Fisher
5ab074c7f8 Update the comment about being based on the GTK Tree View Tutorial,
including putting /tutorial/ at the end of the URL because the 
main web-site is something unrelated to the tutorial.


svn path=/trunk/; revision=32668
2010-05-05 02:33:34 +00:00
Anders Broman
9387dab7fe Try to fix the solaris build bot.
svn path=/trunk/; revision=32640
2010-05-03 05:03:51 +00:00
Anders Broman
fc0932168f Run deprecated-gtk-todoon all files in the gtk dir.
svn path=/trunk/; revision=32638
2010-05-02 21:42:53 +00:00
Stig Bjørlykke
676a95a580 Rewrite: gtk_combo_new -> gtk_combo_box_entry_new_text.
svn path=/trunk/; revision=32636
2010-05-02 19:50:44 +00:00
Anders Broman
e87ddd657c From Jakub Zawadzki:
Fix copy&paste error + add support for proto_tree_add_bits API
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4413

svn path=/trunk/; revision=32634
2010-05-02 15:37:23 +00:00
Stig Bjørlykke
1fc6e6d11b Disable ok button when no name entered.
svn path=/trunk/; revision=32624
2010-05-02 10:01:54 +00:00
Stig Bjørlykke
a64fe86786 Added tooltips for UAT column headers.
svn path=/trunk/; revision=32623
2010-05-02 09:59:02 +00:00
Gerald Combs
1bf2a7c78b Replace GtkClist in uat_gui.c with GtkTreeView+GtkListStore. Pop up the
edit window when an item is double-clicked. Add a couple of convenience
routines to gui_utils.c.

svn path=/trunk/; revision=32621
2010-04-30 22:33:51 +00:00
Bill Meier
3cb2276f19 Fix a gcc -Wshadow warning.
svn path=/trunk/; revision=32613
2010-04-30 18:19:47 +00:00
Gerald Combs
3c8db1cae5 Several dissectors fill in custom custom data in the source and
destination address columns. Don't clobber it in the new packet list.

svn path=/trunk/; revision=32609
2010-04-29 23:53:57 +00:00
Jeff Morriss
87b32b26eb Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4308 :
Make a function that checks if the user is running as root or if npf.sys isn't
loaded (on Windows) and call it *after* showing the main window so that the
popup (if any) shows up above the main window.

svn path=/trunk/; revision=32603
2010-04-29 19:30:54 +00:00
Jeff Morriss
1dc3659de4 From Michael Speck via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4726 :
If "Help -> About Wireshark" is selected from Wireshark's main menu an error
message pops up:

Could not open file "<DevelopmentPath>\Wireshark_Source\wireshark-gtk2\COPYING":
No such file or directory


The attached patch handles this situation by looking for COPYING.txt instead of
COPYING on windows systems.

svn path=/trunk/; revision=32596
2010-04-29 13:12:54 +00:00
Jeff Morriss
c9247a92f1 Delay starting the resolv_update_cb until the main window has been displayed
This avoids this error:

(lt-wireshark:16779): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

before the main window has been drawn if you've got a personal hosts file.

svn path=/trunk/; revision=32593
2010-04-29 00:09:01 +00:00
Jaap Keuter
8e79fd4f87 Replace GtkCList by GtkTreeView.
svn path=/trunk/; revision=32589
2010-04-28 16:29:01 +00:00
Stig Bjørlykke
32ce531601 Added Manual IP address resolve functions.
This can later be extended with ethernet and probably other addresses.

svn path=/trunk/; revision=32571
2010-04-27 06:51:16 +00:00
Gerald Combs
cfb892e316 From Vincenzo Condoleo via bug 3724:
Update the compare stats documentation.

From me: Add a screen shot and editorial updates. Change some lables to
better match the IP and TCP dissectors.

svn path=/trunk/; revision=32545
2010-04-23 21:21:11 +00:00
Anders Broman
c705b3bc88 From Jakub Zawadzki:
Add support for multi byte entries.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4413

svn path=/trunk/; revision=32525
2010-04-20 17:32:12 +00:00
Anders Broman
132c2a43ea From Jakub Zawadzki:
Improve bitview display

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

svn path=/trunk/; revision=32522
2010-04-20 07:47:33 +00:00
Jeff Morriss
e76dd3ebdb Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3387 (crash
when changing the font and deleting a column at the same time while using
the old packet list):

Don't calculate the default column widths until after both the font and column
preferences have been applied.

This isn't a problem in the new packet list.

svn path=/trunk/; revision=32500
2010-04-16 22:48:33 +00:00
Jeff Morriss
50469a8fd6 Include (horizontal) tabs in the Copy (Printable Text Only) output. This
fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2921 .

svn path=/trunk/; revision=32454
2010-04-13 17:56:59 +00:00
Anders Broman
e611923124 Get rid of check_col().
svn path=/trunk/; revision=32428
2010-04-08 15:51:44 +00:00
Tomas Kukosa
a62e401a5d clear the store list before inserting all raws
svn path=/trunk/; revision=32397
2010-04-06 07:19:29 +00:00
Bill Meier
b87424fa7d Fix gcc -Wshadow warnings.
svn path=/trunk/; revision=32395
2010-04-06 00:58:05 +00:00
Jaap Keuter
fa1b1e9143 Replace GtkCList by GtkTreeView.
svn path=/trunk/; revision=32376
2010-04-04 21:32:27 +00:00
Jaap Keuter
68ad976a55 Make UDP Multicast Stream dialog work again.
svn path=/trunk/; revision=32364
2010-04-03 11:42:18 +00:00
Balint Reczey
d3352faa56 Fix compile error caused by the previous commit.
svn path=/trunk/; revision=32363
2010-04-02 21:14:30 +00:00
Balint Reczey
01fbe6644c Fix crash when double clicking in packet list area before capturing any packet.
The crash does not happen when using the new packet list.

svn path=/trunk/; revision=32362
2010-04-02 20:40:20 +00:00
Gerald Combs
cc5d7670bd Keep a copy of the interface description and capture filter around so that
we can use it in the main window title during and after capture. Add a
"-X" option for providing a description for stdin.

svn path=/trunk/; revision=32357
2010-04-01 21:55:01 +00:00
Anders Broman
b75f17ca1b From Jim Young:
patch to gui_utils.c to allow the new packetlist to respond to left/right keystrokes
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4614

svn path=/trunk/; revision=32323
2010-03-28 20:22:09 +00:00
Anders Broman
6c26f4bafc Fix Bug 4388 "Expert Info Composite" : wrong font in tab "Details"
By commenting out gtk_widget_modify_font() in expert_dlg_init_table() as per Geralds comment.

svn path=/trunk/; revision=32322
2010-03-28 20:13:31 +00:00
Jeff Morriss
dc53486da6 Fix (or at least work around the crash in)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4119 :

Never insert more than 1000 silence frames (e.g., if the sequence number jumps
massively).  There may be a better way, but at least now we won't crash.
Leave a comment in the code indicating this.

svn path=/trunk/; revision=32304
2010-03-27 00:54:11 +00:00
Jeff Morriss
14f2f93a35 s/#if DEBUG/#ifdef DEBUG/
svn path=/trunk/; revision=32302
2010-03-26 23:34:54 +00:00
Martin Mathieson
c40e31f2de Initialise a couple of variables to prevent gcc warnings.
svn path=/trunk/; revision=32267
2010-03-22 18:09:33 +00:00
Bill Meier
dabad92be6 Fix a gcc -Wshadow warning inadvertantly introduced in SVN #32262.
svn path=/trunk/; revision=32264
2010-03-22 15:18:06 +00:00
Bill Meier
245f3c1787 Rework code so File ! Merge file_type selection works and to remove use of global 'filetype'.
svn path=/trunk/; revision=32262
2010-03-21 19:26:32 +00:00
Bill Meier
42087e5593 Fix some gcc -Wshadow warnings.
svn path=/trunk/; revision=32261
2010-03-21 18:13:49 +00:00
Jaap Keuter
f8387d1240 Squelch GTK runtime warnings.
svn path=/trunk/; revision=32256
2010-03-20 23:00:23 +00:00
Bill Meier
9e89185da6 Bug Fix: File ! Save As (on *nix) causes a gtk_critical message.
ToDo:    Fix Filetype handling for File ! Merge so it works again; 
(These issues were inroduced in SVN #31950).

svn path=/trunk/; revision=32251
2010-03-20 20:41:50 +00:00
Guy Harris
d37fabf2f2 Squelch a compiler warning.
svn path=/trunk/; revision=32249
2010-03-19 22:38:17 +00:00
Jaap Keuter
0dd7ea4bdc Replace GtkCList by GtkTreeView.
svn path=/trunk/; revision=32248
2010-03-19 22:06:48 +00:00
Jaap Keuter
2187ab38e4 Time to drop the T38 analysis menu option.
svn path=/trunk/; revision=32237
2010-03-18 22:40:07 +00:00
Jörg Mayer
96779de920 cmake changes:
- Add checking for linker flags
- Install plugins with the name including the Wireshark version.
  This will make it easier to find matching plugin versions if
  files get just copied over.


svn path=/trunk/; revision=32231
2010-03-18 10:27:17 +00:00
Guy Harris
e7049f472b Squelch some compiler warnings (one of which would, I think, cause this
to fail with IBM XLC).

svn path=/trunk/; revision=32152
2010-03-09 01:46:17 +00:00
Anders Broman
1a855bfde2 From Andrej Kuehnal:
New feature: extract specified diameter AVPs from large capture files.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4560

svn path=/trunk/; revision=32132
2010-03-06 20:54:58 +00:00
Stig Bjørlykke
2f8830b4d0 From LEGO via bug 3459:
Add a callback to UAT to be called after the table has being updated,
use it to renew the snmp_ue_cache.

svn path=/trunk/; revision=32112
2010-03-04 12:50:18 +00:00
Guy Harris
167ab3a98c In Wireshark and TShark, run dumpcap to get interface lists and lists of
link-layer header types for interfaces; if special privileges are
necessary to open capture devices, Wireshark and TShark shouldn't have
those privileges, but dumpcap should.

svn path=/trunk/; revision=32104
2010-03-04 01:12:04 +00:00
Jaap Keuter
98d800bae8 Implementation of % bytes column.
Cleanup of souce code.

svn path=/trunk/; revision=32103
2010-03-03 23:04:06 +00:00
Guy Harris
4e6821c3aa Cast the result of the subtraction.
svn path=/trunk/; revision=32102
2010-03-03 21:44:41 +00:00
Guy Harris
b38e0bb589 Squelch MSVC compiler warnings - this should really be done better, e.g.
with routines that can display times with a specified precision.

svn path=/trunk/; revision=32101
2010-03-03 21:03:59 +00:00
Jaap Keuter
572534fd0f Remove one too many columns, causing havoc on display and sorting.
svn path=/trunk/; revision=32100
2010-03-03 21:01:41 +00:00
Jaap Keuter
130f1d1170 Allow for other time presentations.
svn path=/trunk/; revision=32099
2010-03-03 20:35:50 +00:00
Balint Reczey
e24d953fe1 Disable OID resolution and loading SMI modules by default.
Add an option to enable OID resolution.
Add an option to suppress errors reported by libsmi.

svn path=/trunk/; revision=32096
2010-03-03 17:19:30 +00:00
Jaap Keuter
905b2ea13a topic_menu_cb() used as callback returning gboolean. Thus make it so.
svn path=/trunk/; revision=32087
2010-03-02 21:21:38 +00:00
Guy Harris
ba5564f32e Squelch some compiler warnings, clean up indentation, clean up a
comment.

svn path=/trunk/; revision=32076
2010-03-02 00:06:20 +00:00
Martin Mathieson
e442f4e192 Use RLC inside MAC frames by default.
svn path=/trunk/; revision=32073
2010-03-01 22:53:28 +00:00
Anders Broman
bc5133f53f From Didier Gautheron:
Right align and numerically sort geoip latitude and longitude info.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4030

svn path=/trunk/; revision=32054
2010-02-28 20:56:21 +00:00
Martin Mathieson
9a1100ce5a Add 'missing SDUs' to tap info / RLC stats window.
Also includes typo fixes from Pascal Quantin.

svn path=/trunk/; revision=32049
2010-02-28 18:42:41 +00:00
Martin Mathieson
b4c327043b When tapping RLC PDUs contained in MAC frames, ignore PDUs that aren't in MAC frames.
svn path=/trunk/; revision=32043
2010-02-28 02:16:32 +00:00
Bill Meier
af69a7236a Use consistent indentation.
svn path=/trunk/; revision=32016
2010-02-26 15:08:12 +00:00
Bill Meier
a6b4ca6d61 GtkCombo --> GtkComboBoxEntry
svn path=/trunk/; revision=32010
2010-02-25 23:37:55 +00:00
Martin Mathieson
def01f5c66 When filtering on MAC PDUs, filter only on MAC PDUs.
svn path=/trunk/; revision=32008
2010-02-25 20:27:33 +00:00
Bill Meier
02296387b0 Rename a number of variables for clarity.
svn path=/trunk/; revision=32007
2010-02-25 20:06:16 +00:00
Jaap Keuter
59c1e948e3 Fix for bug 2478:
"Push to test. Release to detonate."

svn path=/trunk/; revision=32005
2010-02-25 17:41:57 +00:00
Jaap Keuter
8cd9794a00 Fix for bug 4522:
Don't offer "Wiki Protocol Page" and "Filter Field Reference" in the 
context menu when a Text item is selected.

svn path=/trunk/; revision=31987
2010-02-24 19:05:55 +00:00
Bill Meier
1957c4c670 GtkOptionMenu --> GtkComboBox
svn path=/trunk/; revision=31972
2010-02-24 01:22:07 +00:00
Bill Meier
8822e6bf24 Update (slightly) the description of ws_combo_box_clear_text_and_pointer().
svn path=/trunk/; revision=31971
2010-02-24 01:21:09 +00:00
Bill Meier
2b3fd5ba4e GtkOptionMenu --> GtkComboBox
svn path=/trunk/; revision=31950
2010-02-22 18:50:56 +00:00
Bill Meier
644d7d41bf GtkOptionMenu --> GtkComboBox
svn path=/trunk/; revision=31949
2010-02-22 18:47:44 +00:00
Bill Meier
ae40c9021c GtkOPtionMenu ==> GtkComboBox: V2: use ws_combo_box_new_text_and_pointer & etc
svn path=/trunk/; revision=31948
2010-02-22 18:43:36 +00:00
Bill Meier
59dbaca913 Add ws_combo_box_new_text_and_pointer() and related which provides a
variant of gtk_combo_box which stores a pointer along as well as text for
each combo_box entry. 

svn path=/trunk/; revision=31947
2010-02-22 18:39:55 +00:00
Martin Mathieson
5ebfb767a6 Include dialag filter in generated channel filters.
svn path=/trunk/; revision=31944
2010-02-21 22:07:41 +00:00
Martin Mathieson
e3283446cc Allow multiple instances to be created, with filters.
svn path=/trunk/; revision=31942
2010-02-21 21:46:37 +00:00
Martin Mathieson
3ddadbc740 - include given filter in generated filter expressions.
- reselect UE after retapping.
- move some vars from top-level to be locals in _init().

svn path=/trunk/; revision=31941
2010-02-21 18:48:26 +00:00
Martin Mathieson
d28b51b15a Allow multiple instances of LTE MAC statistics windows, each with own filter.
This makes it easier to work with traces including multiple sectors...

svn path=/trunk/; revision=31937
2010-02-21 15:08:50 +00:00
Martin Mathieson
f2944322f6 Add missing SIP response codes from iana sip-parameters
svn path=/trunk/; revision=31932
2010-02-20 17:19:16 +00:00