Commit Graph

3756 Commits

Author SHA1 Message Date
Balint Reczey 172d8448e8 temporary fix for return type warning
svn path=/trunk/; revision=26404
2008-10-10 16:29:09 +00:00
Balint Reczey feed6d124f fixed conversion warning
svn path=/trunk/; revision=26403
2008-10-10 16:06:04 +00:00
Stig Bjørlykke 91977bfa15 Add a "Field name" label for the custom column.
svn path=/trunk/; revision=26402
2008-10-10 15:50:08 +00:00
Balint Reczey 8ae1ce5822 support float and double values in IO Graph calculations
svn path=/trunk/; revision=26400
2008-10-10 15:18:37 +00:00
Stig Bjørlykke 7e3514c200 Add a hidden preference to show the version in the welcome page.
svn path=/trunk/; revision=26371
2008-10-07 15:18:40 +00:00
Stig Bjørlykke 66f160728f Fix printing of version in welcome page.
svn path=/trunk/; revision=26370
2008-10-07 14:06:44 +00:00
Gerald Combs a6bb39afe3 Add a hidden preference to set the welcome screen title.
svn path=/trunk/; revision=26366
2008-10-06 22:49:01 +00:00
Anders Broman cee238507d From Kari Tiirikainen:
Req/resp tracking and service response time stats for GTP-C

svn path=/trunk/; revision=26361
2008-10-06 20:11:44 +00:00
Ronnie Sahlberg 24b76bdc14 add a -K command line option to provide the name of the kerberos keytab
file to use for decryption of Krb5 and GSS-KRB


svn path=/trunk/; revision=26343
2008-10-03 05:21:28 +00:00
Sake Blok 0996e23a81 Fix for Bug 2891:
Read the capture setting from the preferences *before* parsing the
capture command line arguments.


svn path=/trunk/; revision=26268
2008-09-25 06:21:02 +00:00
Anders Broman dc8a11f7bb Fix:About dialog: all text selected when switching tabs
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1349
Hopfully the right thing to do :)

svn path=/trunk/; revision=26247
2008-09-22 21:28:55 +00:00
Jeff Morriss 4dcba9a359 Don't define a static variable (the_tapinfo_struct) in a header file; instead declare it in each C file that needs it.
svn path=/trunk/; revision=26244
2008-09-21 14:50:05 +00:00
Gerald Combs ba485a4163 Add /D_BIND_TO_CURRENT_CRT_VERSION=1 to LOCAL_CFLAGS in modern versions
of Visual C++. (How did this "feature" ever see the light of day?) Make
sure we use LOCAL_CFLAGS *everywhere*. This should fix problems with
building a usable installer under Visual Studio 2008 SP1.

Add comments with links to Visual C++'s idiotic handling of assemblies
and deployment using xcopy. Move to c-ares 1.5.3. Make sure we remove
all of our manifests in epan and packaging/u3/tools.

svn path=/trunk/; revision=26219
2008-09-16 21:08:18 +00:00
Sake Blok bb4173e140 Close filter autocompletion list when it's empty. This re-enables
entering a filter like this:

ip.addr==1.1.1.1<ENTER>


svn path=/trunk/; revision=26154
2008-09-06 23:22:50 +00:00
Guy Harris af49f01616 The AFP field containing the command is "afp.command", not "afp.cmd".
Fixes bug 2847.

svn path=/trunk/; revision=26126
2008-09-03 10:24:38 +00:00
Guy Harris 28971d38fc Fix typo in #define.
Fix indentation (a tab doesn't necessarily expand to 4 spaces).

svn path=/trunk/; revision=26118
2008-09-02 18:20:36 +00:00
Anders Broman f3fd97dc39 Make it easy to put the version on the Welcom page if wanted.
svn path=/trunk/; revision=26117
2008-09-02 17:41:47 +00:00
Bill Meier c9898d7f6b #include <emem.h> not req'd
svn path=/trunk/; revision=26094
2008-08-26 02:53:21 +00:00
Bill Meier 99c797748e Fix minor typo/spelling ...
svn path=/trunk/; revision=26048
2008-08-20 19:27:07 +00:00
Gerald Combs 1ac736e634 Simplify the PortAudio section.
svn path=/trunk/; revision=26030
2008-08-15 00:07:16 +00:00
Gerald Combs bb8e507f31 From cjkelly1: Add "/MD" to the PortAudio compilation flags. Fixes
bug 2791.

Don't use "-o" in the PortAudio compilation flags. If we're running Visual
C++ 2008, don't use "/Zd" when compiling packet-rrc.c. Fixes bug 2795.

svn path=/trunk/; revision=26023
2008-08-14 20:56:34 +00:00
Bill Meier 871036f49d Fix a spelling error
svn path=/trunk/; revision=26016
2008-08-14 16:37:44 +00:00
Guy Harris ce89de75da If capture_dlg_prep() finds an error, don't continue with the capture.
Get rid of an extra g_strdup() (get_if_name() doesn't mangle its
argument and doesn't modify prefs.capture_device).

If there's no interface on which to capture, pop up a dialog to indicate
that.

svn path=/trunk/; revision=25997
2008-08-13 08:15:47 +00:00
Jaap Keuter bfc12627c9 From Alexey Neyman:
Start Wireshark without a preference file saved. Open the capture options dialog, 
then click "Start" button without selecting any interface. Wireshark segfaults while
dereferencing NULL pointer in get_if_name() called from capture_start_cb().

svn path=/trunk/; revision=25987
2008-08-12 05:14:29 +00:00
Anders Broman 3eadb385c3 From Alexey Neyman:
Implement dissector for IPMB (DLT_IPMB_LINUX, 209).

svn path=/trunk/; revision=25986
2008-08-12 04:44:35 +00:00
Luis Ontanon 55e3c847cf try to avoid:
funnel_stat.c:528: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
funnel_stat.c:535: error: expected ‘)’ before ‘*’ token
funnel_stat.c:541: error: expected ‘)’ before ‘*’ token
funnel_stat.c:572: error: ‘funnel_new_progress_window’ undeclared here (not in a function)


svn path=/trunk/; revision=25978
2008-08-11 01:55:27 +00:00
Luis Ontanon dfd6dd53a4 Add a slightly modified version of Paolo Abeni's funneled progress dialog (ref https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2725) and its wslua interface.
svn path=/trunk/; revision=25977
2008-08-11 01:33:31 +00:00
Stig Bjørlykke e0740e22e5 Remove the "Save column widths" option so we always save the widths.
svn path=/trunk/; revision=25968
2008-08-09 16:14:34 +00:00
Stig Bjørlykke d182dfab21 Check if the recent_common file exists instead of having a setting in
the recent file.

svn path=/trunk/; revision=25967
2008-08-09 16:12:41 +00:00
Sake Blok b08d70271d From Alexey Neyman (Bug 2786):
Make "stop" button in the capture info dialog work


svn path=/trunk/; revision=25966
2008-08-09 08:17:53 +00:00
Jaap Keuter d6df3a1f1c Fix for bug 2780:
Correct reverse direction payload save.

svn path=/trunk/; revision=25961
2008-08-08 19:57:50 +00:00
Sake Blok 643d1baa53 From Kovarththanan Rajaratnam (Bug 2660):
Make display filter max recent entries a preference

(From me: fixed an off by one bug in saving to the recent file)


svn path=/trunk/; revision=25960
2008-08-08 19:41:35 +00:00
Gerald Combs 021a926793 Add support for the c-ares asynchronous DNS resolution library to the
Windows build. Add support for async IPv6 lookups. Update the ADNS
code slightly.

This is not supported (yet) on the UNIX side.

svn path=/trunk/; revision=25953
2008-08-07 21:41:48 +00:00
Bill Meier 4b53209990 Remove some obsolete comments related to GTK 1.
svn path=/trunk/; revision=25949
2008-08-07 12:31:43 +00:00
Jeff Morriss c77c787122 Merge files chronologically by default which:
- makes (much) more sense to me
	- makes the GUI's default behavior the same as mergecap's

For whatever reason the default behavior was to append the new file
/if transport resolution was enabled/ (not sure what those two things have to
do with each other).

svn path=/trunk/; revision=25947
2008-08-06 14:11:46 +00:00
Luis Ontanon a8ddad6d91 Have the window being resizable
svn path=/trunk/; revision=25946
2008-08-06 12:03:16 +00:00
Luis Ontanon a4412aa3c1 Make the buttons of the UAT dialog usable again, and get rid of some gtk warnings.
svn path=/trunk/; revision=25940
2008-08-06 00:43:01 +00:00
Luis Ontanon 42c3239a1a luis.ontanon@gmail.com => luis@ontanon.org
svn path=/trunk/; revision=25937
2008-08-05 21:03:46 +00:00
Jeff Morriss dd6a15e1c7 Don't put (non-extern'd) prototypes for protect_thread_critical_region() and
unprotect_thread_critical_region() in every module in gtk/: instead have those
modules include main.h (which has the properly extern'd prototype).

This should fix the link error on HP-UX described in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2702

svn path=/trunk/; revision=25933
2008-08-05 17:33:14 +00:00
Gerald Combs 7d8e29f501 From Pascal Quantin via bug 2719: Fix support for Microsoft Visual C++ 2008.
From me:

Instead of adding adns_config.h, place it a custom adns package in
wireshark-win32-libs. Update tools/win32-setup.sh accordingly.

Split the MSVC2008EE variant into MSVC2008 and MSVC2008EE, similar to
MSVC2005 and MSVC2005EE. We have to worry about vcredist_x86.exe in
both cases.

Add Pascal to AUTHORS.

Update the Developer's Guide.

svn path=/trunk/; revision=25921
2008-08-04 23:05:32 +00:00
Anders Broman 96aa45646d First step to split the gsm_a dissector into several smaller ones ( done by Neil Piercy)
rename the "old" one to gsm_a_common.

svn path=/trunk/; revision=25915
2008-08-04 16:11:17 +00:00
Anders Broman 449e40f6b1 From Abhik Sarkar:
Some buttons are always disabled in the "User DLTs Table" dialog.

svn path=/trunk/; revision=25904
2008-08-02 13:47:31 +00:00
Anders Broman 8db1e7a8b2 From David Aggeler:
Follow-up from SVN 25825 check in

The g_slist_free() is really needed in export_object.c, otherwise, the export
list has false (repetitive) entries in it, that cause a crash when selecting
them.

Whether false entries are in the list, only depends on the speed of the export
processing, since this tap is 

Replaced all guchar with gchar. This should eliminate the warnings on solaris. 
I guess I used the wrong reference.

Added patch for 'Authors' in case I need to add myself to the list.

svn path=/trunk/; revision=25834
2008-07-25 22:58:05 +00:00
Anders Broman b7f89ecec1 From David Aggeler:
Patch to enable DICOM Export

svn path=/trunk/; revision=25825
2008-07-25 13:45:31 +00:00
Bill Meier 7631d2b494 Add NULL termination element to value_string array
svn path=/trunk/; revision=25798
2008-07-22 20:20:17 +00:00
Bill Meier 3b6cd83389 Add NULL termination element to value_string arrays;
Fix some indentation

svn path=/trunk/; revision=25797
2008-07-22 20:19:17 +00:00
Martin Mathieson 75890548d7 Filter autocompletion from Bahaa Naamneh (bug 2581).
There are still display filter controls where this isn't being used
yet, but I'm committing it now so hopefully people can report any
problems.

Some commenting and formatting was done by myself.

svn path=/trunk/; revision=25788
2008-07-22 15:19:10 +00:00
Gerald Combs a7d388325e From Dustin Johnson: Don't pop up a warning dialog every time we can't save
our AirPcap configuration. Just print out a warning to the console instead.

svn path=/trunk/; revision=25781
2008-07-21 18:51:05 +00:00
Jaap Keuter e86825b8f8 From Francesco Fondelli:
Attached is a patch for:
- PW Associated Channel Header dissection as per RFC 4385
- PW MPLS Control Word dissection as per RFC 4385
- mpls subdissector table indexed by label value
- enhanced "what's past last mpls label?" heuristic
- Ethernet PW (w/o CW) support as per RFC 4448

svn path=/trunk/; revision=25730
2008-07-13 17:19:33 +00:00
Stig Bjørlykke b1e0d8edc5 Correct help topic for firewall dialog.
svn path=/trunk/; revision=25725
2008-07-12 19:28:08 +00:00
Jeff Morriss c50b4aec09 More (mostly stats tree) unsigned->signed char cleanup
svn path=/trunk/; revision=25717
2008-07-12 01:48:24 +00:00
Guy Harris 08b4f712c8 Note bug 2699, which reports a bug in xdg-open.
svn path=/trunk/; revision=25700
2008-07-10 18:36:19 +00:00
Gerald Combs 98f5096bbd Replace r25638 with a better fix. On Windows, don't open a console window if
we've been passed "-i -", since it clobbers stdio.

svn path=/trunk/; revision=25695
2008-07-09 23:28:18 +00:00
Bill Meier c18d922045 Fix compile error
svn path=/trunk/; revision=25674
2008-07-08 03:21:54 +00:00
Bill Meier d3fc3b6c3e Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_button_box_set_spacing()  ==> gtk_box_set_spacing()

svn path=/trunk/; revision=25673
2008-07-08 02:43:40 +00:00
Bill Meier 44efa0ed2e Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_timeout_add()     ==> g_timeout_add
   gtk_timeout_remove()  ==> g_source_remove()

Also: timer callback should return gboolean (not void or gint)

svn path=/trunk/; revision=25672
2008-07-08 02:25:30 +00:00
Guy Harris a04774395f Add Makefile.common files for epan/dfilter and epan/ftypes.
Add checkapi rules to Makefile.am files.

svn path=/trunk/; revision=25656
2008-07-02 01:44:30 +00:00
Jeff Morriss 83f9ecf96f Move privileges.c and unicode-utils.c from epan to wsutil (so things like
capinfos and dumpcap don't need to depend on libwireshark nor directly pull
in those modules).  Because capinfos and editcap were only being linked with
privileges.c if we had plugins, this allows those programs to be linked when
someone is compiling --without-plugins.

svn path=/trunk/; revision=25640
2008-06-30 17:16:29 +00:00
Gerald Combs 6d4f9c1eda When we open a debug console on Windows, don't grab stdin. We never read
anything on this particular console, and if we open stdin here we can't
read a capture from an anonymous pipe.

svn path=/trunk/; revision=25638
2008-06-30 16:36:37 +00:00
Bill Meier 56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Sake Blok cd7405c44d From Kovarththanan Rajaratnam (bug 2657):
Resolve accelerator ambiguity in filter toolbar


svn path=/trunk/; revision=25633
2008-06-29 14:59:23 +00:00
Sake Blok 50fa079b11 From Kovarththanan Rajaratnam (bug 2658):
Leading $ will now be propageted to display filter entry (on keyboards
where AltGr needs to be used to enter a '$').


svn path=/trunk/; revision=25632
2008-06-29 12:55:14 +00:00
Sake Blok be8956d104 Add accelerator keys for (un)mark all packets
svn path=/trunk/; revision=25630
2008-06-29 09:01:12 +00:00
Sake Blok 9fe2206771 From Kovarththanan Rajaratnam (bug 2652):
Add accelerator keys for Find Next/Previous Reference


svn path=/trunk/; revision=25629
2008-06-29 08:36:24 +00:00
Gerald Combs 72965329b0 Remove a lot of vestigal GTK-Wimp stuff. It's been included with
GTK+ since version 2.8, when its name was changed to the "GTK MS
Windows-Engine."

Simplify the Windows installer by removing the GTK-Wimp option (which
means the "Wireshark" item can be an entry instead of a group). Move
Rawshark to the "Tools" group.

(If anyone wants to disable the MS Windows Engine they can still do so
after installation by disabling or removing libwimp.dll.)

svn path=/trunk/; revision=25611
2008-06-26 16:42:07 +00:00
Guy Harris 83fc9d5e09 Constify a bunch of stuff, to squelch -Wwrite-strings warnings.
epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not
ready to enable that warning by default yet.

Throw in some casts to handle GLib routines that take arbitrary
non-const pointers (they can later return the pointers, and some
callers might want to modify or free up those pointers in cases where
they're known to be writable or allocated).

Use ep_tvb_memdup() rather than a combination of ep_alloc() and
tvb_memcpy().

Clean up some indentation.

svn path=/trunk/; revision=25601
2008-06-25 09:12:35 +00:00
Gerald Combs 495ddc2830 Make it obvious that this is a development version. Fix a makefile
dependency on the splash images.

svn path=/trunk/; revision=25594
2008-06-24 22:53:52 +00:00
Guy Harris c4932893e3 Have separate callback mechanisms in file.c and capture.c; pass the
capture callbacks the capture_options * as its second argument in all
cases.  This makes it a bit clearer what arguments callbacks take, and
means we can get rid of all global_capture_opts references in
gtk/main_statusbar.c.

Put the interface between gtk/main.c and gtk/main_statusbar.c into a
private header.

svn path=/trunk/; revision=25576
2008-06-24 08:05:45 +00:00
Guy Harris a9ffacc1b3 Only include gtk/capture_globals.h if we're building with capture
support.

svn path=/trunk/; revision=25575
2008-06-24 04:04:47 +00:00
Guy Harris f441b8941e Add gtk/capture_globals.h, to declare global_capture_opts, so files that
don't need global_capture_opts don't need to have it declared and thus
don't need capture_options defined.

Include gtk/capture_globals in the files in question.

Change some more capture_opts references to refer to
global_capture_opts.

Change some global_capture_opts references in routines with a
capture_opts argument to refer to capture_opts.

The structure type is capture_options, not capture_opts; fix some
references.

Include <sys/types.h>, if it's present, in capture_opts.h, so we get
gid_t defined.

Clean up indentation.

svn path=/trunk/; revision=25574
2008-06-24 03:38:15 +00:00
Guy Harris 881a38f96e For now, just refer to global_capture_opts, replacing references to the
now-defult global capture_opts pointer; we eventually should try to
minimize the use of global variables.

svn path=/trunk/; revision=25572
2008-06-24 02:24:17 +00:00
Guy Harris e53bf053f9 For now, just refer to global_capture_opts, replacing references to the
now-defult global capture_opts pointer; we eventually should try to
minimize the use of global variables.

Export global_capture_opts from gtk/main.h.

Clean up indentation.

svn path=/trunk/; revision=25571
2008-06-24 02:22:36 +00:00
Guy Harris 2a691a0aec Have capture_info_ui_create() and capture_info_open() take a pointer to
the capture_opts structure as an argument, rather than just a pointer to
the interface name.

Don't declare a global "capture_opts" pointer, as we don't define it any
more.

svn path=/trunk/; revision=25570
2008-06-24 01:23:33 +00:00
Guy Harris 0b1a0718ce Get rid of the static capture_opts pointer - it collides with parameter
names, as noted by John Smith.

svn path=/trunk/; revision=25546
2008-06-23 20:29:13 +00:00
Guy Harris bbccb9cbfb Give more details on the stuff Beast does, and suggest a possible scheme
for getting things as right as possible.

gnome_url_show() is run by gnome-open, so just running gnome-open - or
xdg-open, which runs gnome-open on GNOME - will suffice.

svn path=/trunk/; revision=25533
2008-06-23 18:46:29 +00:00
Guy Harris 4745bbf0d5 Add stuff to a comment, and move stuff to that comment from elsewhere,
discussing the fun of launching on UNIX+X11.

svn path=/trunk/; revision=25519
2008-06-21 23:53:15 +00:00
Guy Harris 8f244766f3 If we have xdg-open, always run that to launch a Web browser, and ignore
the Web browser setting; that should honor the user's *real* preferred
Web browser setting (i.e., the one they've selected in their desktop
environment).

Don't bother defining HTML_VIEWER as "xdg-open" if we have xdg-open - we
don't need it.

svn path=/trunk/; revision=25514
2008-06-21 18:09:17 +00:00
Stig Bjørlykke 45e0a74c15 And use correct help topic...
svn path=/trunk/; revision=25507
2008-06-21 14:06:08 +00:00
Stig Bjørlykke 7c29c08046 Added help topic item previous reused for another topic.
Todo: add documentation text.

svn path=/trunk/; revision=25506
2008-06-21 13:59:52 +00:00
Stig Bjørlykke 860028c634 Removed the usage of topic_available() as we now have all topics.
svn path=/trunk/; revision=25505
2008-06-21 13:36:31 +00:00
Stig Bjørlykke 960d9138af Added a help button in the Interface Options dialog.
Added the Interface Options docbook chapter.

svn path=/trunk/; revision=25502
2008-06-21 13:08:02 +00:00
Stig Bjørlykke 01de1202bc Update the statusbar expert info icon when changing profile.
svn path=/trunk/; revision=25491
2008-06-19 21:56:25 +00:00
Stig Bjørlykke 4889fc41e9 Make storage-based and time-based "Next file every" checkboxes behave equal
in "Use multiple files".  Also default to storage-based if not time-based.

This fixes the initial problem in bug #2599.

svn path=/trunk/; revision=25489
2008-06-19 17:25:34 +00:00
Guy Harris 19470978ef Encase another variable used only if we support capture in #ifdef
HAVE_LIBPCAP/#endif.

svn path=/trunk/; revision=25482
2008-06-18 21:23:52 +00:00
Stig Bjørlykke 4235740cad Put a variable inside a ifdef HAVE_LIBPCAP
svn path=/trunk/; revision=25481
2008-06-18 20:59:57 +00:00
Stig Bjørlykke 52bb83fd57 Reload the interface list on the welcome page when changing profile and
after editing the interface options.

svn path=/trunk/; revision=25479
2008-06-18 20:14:28 +00:00
Stig Bjørlykke 9e4cb36cba Draw menu items with radio buttons.
svn path=/trunk/; revision=25471
2008-06-18 15:57:12 +00:00
Stig Bjørlykke d69f8cd46c The recent.gui_time_precision fix introduced a worse bug when changing
profiles, so I revert this and will investigate some more...

svn path=/trunk/; revision=25469
2008-06-17 20:37:34 +00:00
Stig Bjørlykke 4cd3667832 Popup a menu with configuration profiles instead of the profile dlg
when clicking the profile in the statusbar.  Much easier to use.

svn path=/trunk/; revision=25468
2008-06-17 19:50:22 +00:00
Stig Bjørlykke b82eba3f42 Initialize recent.gui_time_precision when changing profile to avoid a crash
in some rare cases.

svn path=/trunk/; revision=25457
2008-06-15 20:53:06 +00:00
Stig Bjørlykke 2198a435da Cleanup return values from info_bar_new() and packets_bar_new().
svn path=/trunk/; revision=25456
2008-06-15 20:50:10 +00:00
Stig Bjørlykke 15963a143b Click on the profile in the statusbar will open Configuration Profiles dialog.
svn path=/trunk/; revision=25455
2008-06-15 20:47:06 +00:00
Stig Bjørlykke f9b3982cd2 Moved setting of E_MPACKET_LIST_KEY object data to the function creating
packet_list to ensure it's created before we set it.

Applying filter from the packet list still doesn't work correctly.

svn path=/trunk/; revision=25454
2008-06-15 18:29:22 +00:00
Stig Bjørlykke c64847fe16 Update all time columns when changing the time precision.
Not implemented for conversation relative and delta time yet, because this
will need a reload as they are set by the dissectors and does not exist in
the frame data.

svn path=/trunk/; revision=25452
2008-06-14 16:51:11 +00:00
Stig Bjørlykke 98325a69c9 Save the column width in the recent list on every change so we can
pick the correct width when changing the time precision.

svn path=/trunk/; revision=25451
2008-06-14 16:45:06 +00:00
Guy Harris aeda5cffa7 Sun C warns about an integer overflow for 1 << 31, presumably because 1
is signed; make the flags field in "struct magnify" unsigned, and make
the flags unsigned, so we shift 1U rather than 1.

svn path=/trunk/; revision=25421
2008-06-04 00:05:57 +00:00
Guy Harris 60e49f65bc GTK+ 1.2[.x] is no longer relevant - we require 2.x - so don't talk
about it in a comment.

svn path=/trunk/; revision=25419
2008-06-03 23:57:26 +00:00
Stig Bjørlykke 3fe084beb3 Rewrote ifopts_options_add() to make it readable and simpler.
Fixed a bug where a one character comment would skip the interface.
If syntax error in the comment just skip the comment instead of the interface.

svn path=/trunk/; revision=25413
2008-06-02 22:18:25 +00:00
Stig Bjørlykke d8b975c6cb Rewrote to not use gtk_combo_box_get_active_text().
svn path=/trunk/; revision=25412
2008-06-02 21:35:22 +00:00
Stig Bjørlykke 561f66c1b8 Added an option to set default link-layer header type for each interface.
Set linktype history for each interface so we don't mix them.
Fixed some indents.

svn path=/trunk/; revision=25411
2008-06-02 17:45:03 +00:00
Guy Harris 861f06b616 Clean up indentation.
svn path=/trunk/; revision=25404
2008-05-30 07:13:28 +00:00
Stig Bjørlykke 057522cbdc Print correct number of packets for captured "From first to last marked packet".
svn path=/trunk/; revision=25373
2008-05-23 14:51:17 +00:00
Stig Bjørlykke 3e55619b8b Attempt to fix the !win32 build.
svn path=/trunk/; revision=25372
2008-05-23 13:14:08 +00:00
Anders Broman 36d89bb79c Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25368
2008-05-23 05:55:34 +00:00
Stephen Fisher 95caa8f19c Change references to follow TCP stream to just follow stream to reflect
the multi-purpose nature of the follow_stream.c code (you can also follow
SSL and UDP streams with it.)


svn path=/trunk/; revision=25363
2008-05-23 02:33:24 +00:00
Stephen Fisher 4b87014937 Remove backward compability code for GTK 2.2.1 and lower since we only
support GTK 2.4+ now.


svn path=/trunk/; revision=25361
2008-05-23 02:12:22 +00:00
Jeff Morriss a5cee04fad Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.

svn path=/trunk/; revision=25354
2008-05-22 15:46:27 +00:00
Stig Bjørlykke 476fa1e315 Fixed percent sorting and export to csv after text-value switch in last commit.
svn path=/trunk/; revision=25320
2008-05-19 11:51:48 +00:00
Stig Bjørlykke 9612193cec Added check for GTK 2.6.0 for gtk_cell_render_progress_new()
Switched columns for percent text and percent value.
Fixed generated filter for BSSID and/or SSID.
Fix for merging elements with only BSSID or SSID.

svn path=/trunk/; revision=25319
2008-05-18 20:09:03 +00:00
Stig Bjørlykke cbc583a8f2 Added check for GTK 2.6.0 for gtk_cell_renderer_progress_new()
Switched columns for percent text and percent value.

svn path=/trunk/; revision=25318
2008-05-18 19:49:12 +00:00
Stig Bjørlykke 428c5e1eb8 - Rewrote to use GtkTreeView instead of GtkCList.
- Use the common function for applying a selected filter.
- Put a frame around the two tables.
- Enhanced the percent columns to show a progress bar.

svn path=/trunk/; revision=25316
2008-05-17 23:08:36 +00:00
Stig Bjørlykke c89675bf8f - Use the common function for applying a selected filter.
- Allocate data for filter string instead of using a static array.

svn path=/trunk/; revision=25315
2008-05-17 23:03:17 +00:00
Stig Bjørlykke 7da4ad0c47 - Use the common function for applying a selected filter.
svn path=/trunk/; revision=25314
2008-05-17 23:01:28 +00:00
Stig Bjørlykke 1cfa1550e1 - Don't create illegal filter from context menu.
- Use filter defines from common header file.

svn path=/trunk/; revision=25313
2008-05-17 22:59:52 +00:00
Stig Bjørlykke e396477922 - Use the common function for applying a selected filter.
- Enhanced the percent column to show a progress bar.

svn path=/trunk/; revision=25312
2008-05-17 22:57:53 +00:00
Stig Bjørlykke a392e8e88c Added a common function to apply a selected filter according to
values from a context menu.

svn path=/trunk/; revision=25311
2008-05-17 22:54:29 +00:00
Stig Bjørlykke 4af0ec58ef Force foreground when background is forced on welcome page.
svn path=/trunk/; revision=25301
2008-05-14 10:56:31 +00:00
Tomas Kukosa 5f4f0df387 From Alejandro Vaquero:
Added a new checkbox for the RTP player to use the RTP timing instead of the
arriving time of the packets. This is useful when the RTP is being tunneled
(e.g. EtherIP), so the original timing is missing.
In some cases when encapsulating the original IP/RTP over EtherIP, the
encapsulated data comes in chunks of 1sec, so it is useful to use the RTP
timing to play it. In these cases we can not simulate jitter buffer, so this is
disabled when checking the new "Use RTP timestamp" option.

svn path=/trunk/; revision=25293
2008-05-14 06:22:07 +00:00
Tomas Kukosa a1d164a5da Update to Portaudio pa_stable_v19_20071207
svn path=/trunk/; revision=25285
2008-05-13 07:39:23 +00:00
Stig Bjørlykke 355dfa770d Added an option to limit the list to match the current display filter.
svn path=/trunk/; revision=25281
2008-05-12 22:45:08 +00:00
Bill Meier fe5c2d9820 g_string_sprintf --> g_string_printf and g_string_sprintfa --> g_string_append_printf
svn path=/trunk/; revision=25276
2008-05-11 18:33:49 +00:00
Stig Bjørlykke 319f71c537 Sort list before thaw to avoid flicker when doing capture.
Save pane size in recent.

svn path=/trunk/; revision=25275
2008-05-11 18:03:22 +00:00
Anders Broman 1cc7c72db6 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25261
2008-05-09 11:59:44 +00:00
Anders Broman b6454e76ac Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25244
2008-05-06 05:50:31 +00:00
Stig Bjørlykke f51d73bb5d Handle SSID as binary in WLAN Traffic Statistics.
svn path=/trunk/; revision=25237
2008-05-05 19:35:16 +00:00
Stig Bjørlykke 95a44fe52a Remove gtk/isprint.h as it's not in use.
svn path=/trunk/; revision=25234
2008-05-05 18:37:20 +00:00
Stig Bjørlykke b77e2466b8 Improved the WLAN Traffic Statistics:
- Added details for each network
- Added context menu for adding a filter
- Keep the selected network when capturing
- Show probe requests with broadcast ssid
- Print '.' for non-printable characters in ssid

svn path=/trunk/; revision=25226
2008-05-04 22:37:05 +00:00
Stig Bjørlykke 32a4a97c92 Corrected some unused arguments in case someone starts using them,
or just copy the code.

svn path=/trunk/; revision=25225
2008-05-04 22:29:41 +00:00
Jaap Keuter 2b04d42e4b From Shinsuke SUZUKI:
Since this leads to a compilation failure (Warning C4819: unexpected character
in the current code page) on non-european Windows, I'd like you to avoid using
non-ASCII characters in Wireshark code (even in comment).

svn path=/trunk/; revision=25214
2008-05-02 08:23:21 +00:00
Stig Bjørlykke b6de8df503 Force foreground when background is forced in RTP analysis and VOIP calls.
svn path=/trunk/; revision=25212
2008-05-01 18:26:01 +00:00
Stig Bjørlykke 0a4ab4b039 Force foreground when background is forced in expert info dialogs.
svn path=/trunk/; revision=25211
2008-05-01 18:03:46 +00:00
Stig Bjørlykke edfab8e2aa While playing with a dark theme I found it much nicer to use the
selected background color from the packet list.

svn path=/trunk/; revision=25209
2008-05-01 17:46:03 +00:00
Stig Bjørlykke dd553f1906 From Frederic Peters (bug 1735):
Force foreground when background is forced.

From me:
Do the same for expert info's.

svn path=/trunk/; revision=25207
2008-05-01 11:02:14 +00:00
Guy Harris b35278d5d4 ...but not with a comment inside a comment, as that might cause a
warning.

svn path=/trunk/; revision=25206
2008-05-01 07:21:15 +00:00
Guy Harris 2adb021211 Get rid of C++/C99 comment.
svn path=/trunk/; revision=25205
2008-05-01 07:18:58 +00:00
Stephen Fisher dc262064c3 Change an option menu (deprecated in GTK+ 2.4) to a combo box (GTK+ 2.4+).
svn path=/trunk/; revision=25199
2008-04-29 19:14:44 +00:00
Stephen Fisher f07c708a51 Replace an option menu (deprecated as of GTK+ 2.4) with a combo box
(GTK+ 2.4+). 


svn path=/trunk/; revision=25198
2008-04-29 18:46:10 +00:00
Stig Bjørlykke d123a61162 Added flag i new recent file to determine where to get values now
moved to recent_common.  This will convert old recent file to new.

svn path=/trunk/; revision=25188
2008-04-28 13:27:25 +00:00
Stig Bjørlykke 8824568b72 Reopen the recent file when reading older common settings.
This will be optimized later.

svn path=/trunk/; revision=25187
2008-04-28 13:00:49 +00:00
Stig Bjørlykke 4674b866bc Split the recent file in two, one for the configuration profile
and one common for all profiles.  

svn path=/trunk/; revision=25186
2008-04-28 12:35:03 +00:00
Stephen Fisher bbf7ec011a Remove all GTK+ < 2.4 code and minimum version checks.
svn path=/trunk/; revision=25182
2008-04-27 07:01:58 +00:00
Stig Bjørlykke a63ad85c78 Changed to display NCP connection, as in conversations.
svn path=/trunk/; revision=25181
2008-04-25 19:42:27 +00:00
Jaap Keuter cef88c913d From Jim Young:
Small patch to gtk/expert_dlg.c to test for the existance of the etd->label
before use.  This patch stops GTK assertion on Linux.

svn path=/trunk/; revision=25160
2008-04-23 23:12:18 +00:00
Martin Mathieson 1ad98b5c11 Rename "Taps/Statistics" preference group to be simply "Statistics".
"Tap" is a term likely only to be known to developers, and
"Statistics" matches the Menu item under which all of the affected
windows are launched.

svn path=/trunk/; revision=25151
2008-04-23 16:49:34 +00:00
Stig Bjørlykke 0b2837f362 From Chris:
Correct some typos.

svn path=/trunk/; revision=25145
2008-04-22 05:27:28 +00:00
Martin Mathieson e158960f5a Rename prefs_rtp_player files to prefs_taps.
(see rev 25133)

svn path=/trunk/; revision=25143
2008-04-21 21:56:45 +00:00
Martin Mathieson d4dca0d94b Allow configuration of tap update interval.
- rename rtp_player config group to taps/statistics
- will rename prefs_rtp_player files later
  (svn didn't seem keen to rename with changes present,
   and output says its just a copy/delete anyway...)

svn path=/trunk/; revision=25133
2008-04-21 10:57:32 +00:00
Ulf Lamping 92a132d4f4 fix build on GTK 2.0/2.2 and some other code cleanup
svn path=/trunk/; revision=25130
2008-04-21 01:49:53 +00:00
Ulf Lamping 277d241fac remove no longer required parameters from toolbar_item() macro
svn path=/trunk/; revision=25129
2008-04-21 00:54:46 +00:00
Guy Harris 7c60e055c7 Add GTK_SIGNAL_FUNC() casts for GTK+ 2.[0-2] code.
svn path=/trunk/; revision=25128
2008-04-20 23:42:21 +00:00
Ulf Lamping da44c1d084 bugs happen, if you're trying to do two things at once ;-)
svn path=/trunk/; revision=25122
2008-04-19 22:50:14 +00:00
Ulf Lamping be2ddd2fd5 HAVE_LUA_5_1 is no longer required for the Tools menu
svn path=/trunk/; revision=25121
2008-04-19 19:40:05 +00:00
Ulf Lamping a7e8d7f743 I'v fixed the bug reported by Stig that no items appear and also ..
from Jim Young:
The attached patch simply tests for a non-NULL 
welcome_file_panel_vb before attempting to get the 
child_list.

svn path=/trunk/; revision=25120
2008-04-19 18:39:58 +00:00
Ulf Lamping 86ee4fc3fc add a way to place the capture interfaces and recent files list into a scrolled_window once the number of them get's "too large"
svn path=/trunk/; revision=25119
2008-04-19 13:33:42 +00:00
Stig Bjørlykke b205017b3e Display the interface comment if defined.
On non-win32 also display the interface name.

svn path=/trunk/; revision=25114
2008-04-18 14:29:54 +00:00
Jeff Morriss 2f78f0145d filename2uri() doesn't modify its parameter (and in at least one place we hand it a const argument) so make the parameter const. Also move the function up in the file (before its first use).
svn path=/trunk/; revision=25113
2008-04-18 12:47:05 +00:00
Jeff Morriss 7ca7f149ce Change an assignment-in-an-if to a comparison.
svn path=/trunk/; revision=25112
2008-04-18 12:42:27 +00:00
Gerald Combs 15d0f668cf Minor banner tweaks.
svn path=/trunk/; revision=25109
2008-04-17 23:59:56 +00:00
Stig Bjørlykke a4f76f95a0 Added an option to display hidden protocol items.
svn path=/trunk/; revision=25108
2008-04-17 23:14:01 +00:00
Ulf Lamping b11501c457 as the welcome page seems generally accepted, remove #ifdef SHOW_WELCOME_PAGE around it
svn path=/trunk/; revision=25107
2008-04-17 22:11:21 +00:00
Bill Meier 7e9b56cbeb On Windows: filemanager_open_directory: ensure a trailing '\' on path to ShellExecute;
svn path=/trunk/; revision=25105
2008-04-17 20:00:26 +00:00
Guy Harris 1bf91a279c In filemanager_open_directory(), if we're not on Windows or OS X and
don't have xdg-open, convert the pathname to a URI and hand it to the
browser.

svn path=/trunk/; revision=25104
2008-04-17 19:37:40 +00:00
Guy Harris 572efdc1c4 Use the "explore" verb when opening directories; that doesn't fix the case
where there's an openable file and a directory with the same pathname
except for the extension, but at least it prevents us from trying to open
the file.

svn path=/trunk/; revision=25103
2008-04-17 18:40:45 +00:00
Guy Harris 2172b8dfb1 Sigh. g_spawn_async() should take a "const gchar **" argument for argv,
as it shouldn't be modifying the strings, but it's "gchar **", so we
can't make argv an array of "const gchar *" - which means that you can't
put a "{g}char *" into it without a cast.

Clean up white space.

svn path=/trunk/; revision=25100
2008-04-17 16:53:41 +00:00
Bill Meier 9f35411f35 Infos --> Information
svn path=/trunk/; revision=25099
2008-04-17 16:24:55 +00:00
Guy Harris b2f4f0a228 If we have xdg-open, define HAVE_XDG_OPEN.
Add a routine "filemanager_open_directory()", which takes a pathname
(presumed to be UTF-8 in Windows and Mac OS X; this might need work for
other UN*Xes) and attempts to open a file manager window for it, using
ShellExecute on Windows, Launch Services on OS X, and, for now, running
xdg-open on other OSes if we have it (should we have a preference for
the file manaager, just as we have one for the Web browser?).

(For that matter, if we have xdg-open, do we need a preference for the
Web browser, or should we just have xdg-open open the Web browser?)

svn path=/trunk/; revision=25097
2008-04-17 16:14:22 +00:00
Ulf Lamping d570c787cc set_sensitive(FALSE) for recent files that are currently not available
svn path=/trunk/; revision=25095
2008-04-17 08:53:09 +00:00
Ulf Lamping 51baf7769a cut filenames in the middle (not just at the start) and add tooltips for it
svn path=/trunk/; revision=25093
2008-04-17 04:05:14 +00:00
Ulf Lamping ebe83ebcb3 add tooltips for the welcome page buttons
svn path=/trunk/; revision=25092
2008-04-17 03:24:24 +00:00
Guy Harris cc1da67ca7 A GtkImage doesn't take any input, so it doesn't support the "clicked"
signal.

Fix the description for the "Interface List" welcome button.

svn path=/trunk/; revision=25091
2008-04-17 03:06:22 +00:00
Guy Harris 22ae89d766 colors_init() doesn't have anything to do with packet coloring, it's
just our initialization routine for low-level GTK+ stuff, such as
getting the system colormap and the "black" and "white" colors; we have
to call it before calling get_color().

svn path=/trunk/; revision=25090
2008-04-17 02:55:29 +00:00
Guy Harris 1b4b6462e8 Put a space between the number of bytes (for a file < 1024 bytes) and
"Bytes".

"Interface description" vs. "interface name" isn't Windows vs. UN*X,
it's "has a description" vs. "doesn't have a description" - the lack of
descriptions in UN*X is a result of

	1) lack of a mechanism to supply descriptions in some UN*Xes

and

	2) lack of code in libpcap to get those descriptions in some
	   other UN*Xes

and I need to work on fixing 2) (I think it can be dredged out of
FreeBSD 6 and 7, I seem to remember current OpenBSD supplying them, and
for OS X we might as well cheat the way the network preference pane does
and just call en0 the main Ethernet and en1 the AirPort interface).

Use an adverb rather than an adjective to modify a noun, as per Chris
Maynard's suggestion.

svn path=/trunk/; revision=25089
2008-04-17 02:38:21 +00:00
Guy Harris 04daff59de Oh, what the heck, go for it - do the size calculations in 64 bits, just
in case a file has more than 2^32 megabytes of data :-); we already
require 64-bit support for calculations and formatting.

svn path=/trunk/; revision=25088
2008-04-17 02:29:43 +00:00
Ulf Lamping fe630dbde0 ... bring into alphabetical order
svn path=/trunk/; revision=25087
2008-04-17 02:17:55 +00:00
Ulf Lamping 85e14ceb86 rename REGISTER_xxx_GROUP_NONE to REGISTER_xxx_GROUP_UNSORTED, as NONE seems a bit misleading
svn path=/trunk/; revision=25086
2008-04-17 02:16:39 +00:00
Stephen Fisher 3ad27f2ff8 Mark a paramter as unused
svn path=/trunk/; revision=25085
2008-04-17 02:08:23 +00:00
Ulf Lamping 061df434cb try to fix the buildbot
svn path=/trunk/; revision=25083
2008-04-17 01:13:06 +00:00
Ulf Lamping 8a6bd7e262 enable welcome page
add file size of recent files
tweak colors
code cleanup

svn path=/trunk/; revision=25082
2008-04-17 00:31:38 +00:00
Stig Bjørlykke f79f9c8504 Added missing comment closing.
svn path=/trunk/; revision=25078
2008-04-16 11:55:23 +00:00
Ulf Lamping 63acc87cf2 ups, missed one
svn path=/trunk/; revision=25077
2008-04-16 10:00:19 +00:00
Ulf Lamping ed7018b6e4 flip the import and export button "sequence", that the import button comes first. So we have the same sequence as the usual open/save menu.
svn path=/trunk/; revision=25076
2008-04-16 09:57:21 +00:00
Ulf Lamping be75f6fa16 remove the copied xpm stock icon files from SVN and use the "GTK built in" stock icons
this will also prevent us from showing different stock icons for "our" xpm stock icons and the "system defaults". GTK (for Windows?) changed the icon theme somewhere around V2.10 (or later?) and/or the user might use a different icon theme, so this isn't an esoteric case ;-)

svn path=/trunk/; revision=25075
2008-04-16 09:54:55 +00:00
Ulf Lamping f3a40604dc use a GTK_STOCK_CLEAR here
svn path=/trunk/; revision=25073
2008-04-16 08:54:50 +00:00
Ulf Lamping 45d5280ff1 add "Save As" and "Save All" buttons to the dialog / stock_icons utils
use them in the export object dialog

svn path=/trunk/; revision=25072
2008-04-16 08:47:12 +00:00
Ulf Lamping a18fefb91f a better spacing between the help and copy buttons
svn path=/trunk/; revision=25071
2008-04-16 08:06:55 +00:00
Ulf Lamping 0f34f9fd6a don't use a Close button for the preparation dialog, use a Cancel one instead
svn path=/trunk/; revision=25065
2008-04-16 00:46:16 +00:00
Ulf Lamping 80abf46094 fix button sequence, show filter... button left to Cancel button
svn path=/trunk/; revision=25064
2008-04-16 00:45:23 +00:00
Ulf Lamping ac1dbb7c85 add #include <sys/types.h>
svn path=/trunk/; revision=25063
2008-04-16 00:17:51 +00:00
Ulf Lamping 4be30a0240 special handling for the dialog boxes Copy buttons, as the behaviour is more like an auxiliary button (like Help), than one of the "action" buttons as "Ok" (as e.g. Ok will close the dialog).
To make this more clear put the Copy button to the left of the button row ...

svn path=/trunk/; revision=25062
2008-04-16 00:14:01 +00:00
Ulf Lamping 2e125b32e2 use the standard dialog button mechanism for the firewall dialog
svn path=/trunk/; revision=25061
2008-04-16 00:10:47 +00:00
Ulf Lamping 8642844fef add the firewall ACL dialog to the help topics (would be a good idea to better describe that dialog anyway...)
svn path=/trunk/; revision=25060
2008-04-16 00:09:15 +00:00
Ulf Lamping 769bd28a5d use the "Clear" icon for the "Continue without saving" action, as the icon metapher seem to fit well here
svn path=/trunk/; revision=25059
2008-04-15 23:33:39 +00:00
Ulf Lamping 5a8e585962 further work on the yet to come welcome page ...
svn path=/trunk/; revision=25057
2008-04-15 22:46:35 +00:00
Ulf Lamping 15b3bb93df don't mark a used parameter as unused
svn path=/trunk/; revision=25054
2008-04-15 20:53:41 +00:00
Ulf Lamping 7a8c589d32 don't use strdup() if you want to free the memory later with g_free(), this doesn't work (at least) on MSVC2005 builds!
svn path=/trunk/; revision=25037
2008-04-15 02:21:04 +00:00
Ulf Lamping 08db55300c further improve the welcome page, still incomplete so still "commented out"
svn path=/trunk/; revision=25036
2008-04-15 02:14:22 +00:00
Ulf Lamping d064016e66 add some more "links" to online pages
svn path=/trunk/; revision=25035
2008-04-15 02:10:41 +00:00
Ulf Lamping bfa3cad089 try to improve the help menu
svn path=/trunk/; revision=25034
2008-04-15 02:06:38 +00:00
Stig Bjørlykke e1aebe1cb6 get_profile_name() will always return a valid string.
svn path=/trunk/; revision=25017
2008-04-14 15:20:12 +00:00
Sake Blok a287b0f3f5 From Jim Young (bug 2212):
Add the profile name to the title of all the configuration windows.
(this is a rewrite of Jim's patch)


svn path=/trunk/; revision=25016
2008-04-14 15:01:34 +00:00