Commit Graph

51 Commits

Author SHA1 Message Date
Jeff Morriss b4c2ed1b86 Remove some unnecessary includes: a lot of things don't need globals.h and register.h
svn path=/trunk/; revision=34017
2010-08-30 16:10:01 +00:00
Bill Meier 66d340863f (Minor) Cleanup signal callbak signatures and related:
- Don't mark callback arg as _U_ if actually used (and vice-versa);
- Use Null as user_data in g_signal_callback if unused in callback;
- Use correct signature for certain event callbacks.

svn path=/trunk/; revision=33895
2010-08-23 19:29:08 +00:00
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
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
Anders Broman 8035954712 Didier Gautheron:
Expert info clean up.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3971

svn path=/trunk/; revision=29663
2009-09-02 05:48:38 +00:00
Anders Broman beb57e259b make the columns sortable.
svn path=/trunk/; revision=29583
2009-08-27 06:57:53 +00:00
Anders Broman 0267ffb01c Don't copy const strings, store the pointer in the list store instead,
saves memory.

svn path=/trunk/; revision=29582
2009-08-27 05:34:06 +00:00
Anders Broman 5e4e5755a8 From Didier Gautheron:
expert info clean up,
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3948

svn path=/trunk/; revision=29566
2009-08-26 17:26:26 +00:00
Guy Harris 04544e1213 We no longer need the "ascending arrow" and "descending arrow" images
for clists, as we're not using a clist.

Clean up white space, and use C89 comments rather than C99/C++ comments.

svn path=/trunk/; revision=29540
2009-08-24 18:20:20 +00:00
Anders Broman efba5a7678 Use list_store isf deprecated clist.
Try to optimize expert_comp_table.

svn path=/trunk/; revision=29539
2009-08-24 16:11:00 +00:00
Kovarththanan Rajaratnam 60a30e223e From Didier gautheron via bug 3929:
* Expert Info / Expert Info Composite requires a full protocol tree.
* Delay tree NULL pointer check in bootp dissector

svn path=/trunk/; revision=29530
2009-08-23 18:32:29 +00:00
Kovarththanan Rajaratnam 7c1d96d831 From Didier gautheron via bug 3929:
* Don't use g_string_chunk_clear(). It is only defined if GLib >= 2.14

From me:

* Whitespace fixes

svn path=/trunk/; revision=29529
2009-08-23 18:13:03 +00:00
Anders Broman 3c86b750e5 expert_comp_table.c: Minor cleanup
expert_dlg.c change GtkOptionMenu to GtkComboBox.

svn path=/trunk/; revision=29504
2009-08-22 16:17:42 +00:00
Anders Broman a599db08d8 Destroy window with parent, update label when showing window.
svn path=/trunk/; revision=29481
2009-08-19 19:20:45 +00:00
Anders Broman 7ec476b88a From Didier Gautheron:
Part 2
Extracted from optimizations patch http://wiki.wireshark.org/Development/Optimization
Optimize expert info.
Slightly changed by me.

svn path=/trunk/; revision=29478
2009-08-19 18:37:13 +00:00
Anders Broman a033f4e6a9 Windows transient to main window and destoyed with it.
svn path=/trunk/; revision=28704
2009-06-11 16:24:06 +00:00
Guy Harris cf91fdf16b Have tap listeners specify whether the "packet" routine requires
a protocol tree;

	the column values.

This includes stats-tree listeners.

Have the routines to build the packet list, and to retap packets, honor
those requirements.  This means that cf_retap_packets() no longer needs
an argument to specify whether to construct the column values or not, so
get rid of that argument.

This also means that there's no need for a tap to have a fake filter
to ensure that the protocol tree will be built, so don't set up a fake
"frame" filter.

While we're at it, clean up some cases where "no filter" was represented
as a null string rather than a null pointer.

Have a routine to return an indication of the number of tap listeners
with filters; use that rather than the global num_tap_filters.

Clean up some indentation and some gboolean vs. gint items.

svn path=/trunk/; revision=28645
2009-06-05 22:42:47 +00:00
Guy Harris 54c159cb41 Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats).  Hopefully this will catch at least
some P64 issues on UN*X.

svn path=/trunk/; revision=28108
2009-04-21 16:57:52 +00:00
Stig Bjørlykke 8608c8f1de Fix some "format not a string literal and no format arguments" warnings.
svn path=/trunk/; revision=26641
2008-10-31 09:53:56 +00:00
Anders Broman 939367b801 Bring the windows to front when rescanning of packets are done.
svn path=/trunk/; revision=26423
2008-10-12 16:56:38 +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
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
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 0a4ab4b039 Force foreground when background is forced in expert info dialogs.
svn path=/trunk/; revision=25211
2008-05-01 18:03:46 +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
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
Ulf Lamping 38c4ebeb4a move all code from color.c into color_utils.c
remove color.c
rename colors.h into color_utils.h (hopefully this reduces confusion to /color.h)

svn path=/trunk/; revision=24974
2008-04-13 12:41:22 +00:00
Ulf Lamping 8e3e8b588f sort #includes by directories
svn path=/trunk/; revision=24968
2008-04-13 01:54:20 +00:00
Ulf Lamping d91e0e350a move tap_dfilter_dlg.h from / to /gtk (and use the callback mechanism in main.c instead)
svn path=/trunk/; revision=24956
2008-04-12 20:31:18 +00:00
Ulf Lamping e3a9b675d1 proto_draw -> main_proto_draw
svn path=/trunk/; revision=24954
2008-04-12 20:11:12 +00:00
Ulf Lamping d4ccf577a8 where it's not necessary, remove #include "compat_macros.h"
svn path=/trunk/; revision=24922
2008-04-12 01:02:59 +00:00
Ulf Lamping f9f87904c4 second round to replace SIGNAL_CONNECT with g_signal_connect
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time. 

Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ...

svn path=/trunk/; revision=24913
2008-04-11 21:39:16 +00:00
Bill Meier 74e1c12021 OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24895
2008-04-11 16:44:31 +00:00
Stig Bjørlykke fd9486cea6 Added help button in expert info and expert info composite dialogs.
svn path=/trunk/; revision=24374
2008-02-17 21:22:00 +00:00
Sebastien Tandel 76729e5d0f From David Howells :
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an
x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat
4.1.2-8).

The failures fall into two categories:
  (1) Casts between pointers and 32-bit integers without an intermediary cast
via 'long' or 'unsigned long'.  This results in a compiler warning complaining
about casts between a pointer and an integer of a different size.
  (2) Passing values to "%lld" or similar printf-style format options that the
compiler thinks are a different size.  Such values need to be cast to 'long
long' or 'unsigned long long'.

svn path=/trunk/; revision=21975
2007-05-29 02:43:18 +00:00
Jörg Mayer dd26a7021b nikai@nikai.net:
Remaining fixes from:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1225

svn path=/trunk/; revision=19895
2006-11-14 20:32:29 +00:00
Ulf Lamping d4499eb9a7 move value_strings from expert_dialogs into expert.c to remove duplicates
keep the highest severity level of the current file (experimental)

svn path=/trunk/; revision=19104
2006-08-31 22:56:38 +00:00
Guy Harris 92552c2d76 Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUI
strings, and function names.

svn path=/trunk/; revision=18205
2006-05-22 07:29:40 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Anders Broman 61b223303a From Greg Morris:
Modification to (proto.h) is made to add an additional expert group type of PI_REQUEST_CODE to allow Request tag information to be passed to the expert tap. This is for such reasons where a dissector would like to echo specific information about certain types of requests. For example: NCP connection request is really a request not a REPLY_CODE. Same is true for the TCP SYN request.

Changes to packet-ncp.c
1. Server broadcast message flag. Now indicates if the message is a pending message or an oplock clear notification.
2. Cleanup of packet signature detection process. Previous method had some flaws so I redesigned it. Appears to be solid now.
3. Echo NCP Server Session information to expert tap.
 
Note on item #3: NCP Connection+Task = NCP Session, a Single connection can have many tasks. The server sees each connection/task as a unique session. For this reason the NCP session information is now echoed to the expert composite statistics so that you can easily identify the different NCP processes and sessions. It is important to NCP analysis to understand that each session is most likely a different program on the requesting host sharing the same NCP connection.
 
Changes to packet-ncp2222.inc
1. Comment out the echo of NCP connection info to expert tap. Replaced by NCP sessions.
2. Add displayEID in request decode (resolves Coverity defect for dead code in NCP dissector)
 
Changes to ncp2222.py
1. Fix for endian display of bindery object type in NCP 0x1720.
2. Fix for size of bindery object type to 2 bytes instead of 4 to match other bindery NCP's.

svn path=/trunk/; revision=17636
2006-03-15 18:56:35 +00:00
Luis Ontanon 8e121c003c Don't se_leak expert_info records.
se_alloc them where and if  needed, not every time expert_set_info_vformat is called.


svn path=/trunk/; revision=17293
2006-02-13 23:20:38 +00:00
Luis Ontanon fcf7b3789c add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations.
svn path=/trunk/; revision=17252
2006-02-11 13:05:24 +00:00
Gilbert Ramirez 0b3c9ad5ce Revert 16279.
svn path=/trunk/; revision=16281
2005-10-21 13:11:04 +00:00
Gilbert Ramirez 385fb3eea2 From Greg Morris.
Expert data must perform a re-dissection to trigger the NCP dissector.
Change the call cf_retap_packets() to cf_redissect_packets().

svn path=/trunk/; revision=16279
2005-10-20 18:07:03 +00:00
Ulf Lamping e0e8cb76a3 move the list down to the latest message while new messages rush in. We might want to have a checkbox or alike to en/disable this (as discussed for the Statistics) lately.
svn path=/trunk/; revision=16092
2005-10-03 19:37:17 +00:00
Guy Harris 52ebbfd1ab Mark some unused and unremovable arguments as unused.
svn path=/trunk/; revision=15846
2005-09-17 00:39:52 +00:00
Guy Harris f34e1a97c6 Have cf_retap_packets() take an argument that indicates whether to
generate columns; use cf_retap_packets instead of cf_redissect_packets()
when running taps (the general flow graph stat uses the Info column).

svn path=/trunk/; revision=15793
2005-09-14 08:59:41 +00:00
Ulf Lamping 7900675ab5 Move "Expert Info" from "Statistics" to "Analyze" menu item.
*significantly* improve performance (100000 infos from ~5min to 25sec!)

Add a simple severity based filter mechanism.

replace // style comments by /**/

svn path=/trunk/; revision=15791
2005-09-13 23:46:42 +00:00
Guy Harris d8873511a7 Frame numbers are unsigned, and they start at 1; 0 is what's used for
"unknown" for frame numbers.  Note that in epan/frame_data.h, and make
the frame number in experts unsigned, and use 0 for "unknown", and
display it as an unsigned number - and, if it's 0, don't display it at
all.

Fix the signature of "expert_dlg_draw()" to match what a tap's draw
routine's signature is expected to be.

svn path=/trunk/; revision=15760
2005-09-11 22:25:33 +00:00
Ulf Lamping 57d099a0c2 some things fixed, leftover from code cleanup (thanks to the buggy MSVC dependencies)
svn path=/trunk/; revision=15755
2005-09-11 17:15:00 +00:00