aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/conversations_table.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-10Removed some unused variables and unused assignments.stig1-4/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30918 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-09From Didier Gautheron:etxrab1-2/+3
- memory leak, free the list after walking it, ie free a NULL list, ie free nothing. I've only fixed bugs introduced by me with GTKCList to TreeView modifs, it seems there's the same bug in gtk/dlg_utils.c. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30421 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-09From Didier Gautheron:etxrab1-49/+28
- Display number with a space as thousand separator. - Move functions use both by conversations and hostlist in gui_utils.c, they may be useful for other taps too. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30416 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-08From Didier Gautheron:etxrab1-6/+11
conversations table leaks hash keys memory on close. Modified by me to use g_hash_table_new_full(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30396 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-06From : Didier Gautheronetxrab1-417/+605
gtktreeview for conversations: - use a garray rather than g_realloc memory for conversations list. - use a hashtable for finding conversation rather than a linear search. Notes: - sorting is too slow, I disabled it. - the dialog box is really a big problem because it's also empty the idle event queue, slow down a lot. - Test on a 1.5M packets with hundred thousands conversations capture, slow but bearable. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30353 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-06Rename address_to_str() to ep_address_to_str() because:krj1-14/+14
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29747 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-21Change window_new() to dlg_window_new() and destroy the window with the top ↵etxrab1-2/+5
level window. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28796 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-05Have tap listeners specify whether the "packet" routine requiresguy1-4/+4
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28645 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-19-As suggested by Jakub Zawadzki: use sizeof(...) rather than a numeric ↵wmeier1-814/+809
constant in various places; Also: - Change ct_port_to_str to be slightly simpler and more efficient; - Change indentation to be consistent; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27798 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-31Fix some "format not a string literal and no format arguments" warnings.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26641 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-13Bring the windows to front when rescanning of packets are done.stig1-4/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26436 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-05Don't put (non-extern'd) prototypes for protect_thread_critical_region() andmorriss1-2/+1
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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25933 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-29Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵wmeier1-2/+2
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() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25634 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-21Removed the usage of topic_available() as we now have all topics.stig1-19/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25505 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-17- Use the common function for applying a selected filter.stig1-107/+16
- Allocate data for filter string instead of using a static array. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25315 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13sort #includes by directoriesulfl1-12/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24967 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12where it's not necessary, remove #include "compat_macros.h"ulfl1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24922 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11add missing braces to unbreak the buildsahlberg1-320/+318
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24916 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11first round to replace SIGNAL_CONNECT with g_signal_connectulfl1-13/+13
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 ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24912 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11replace ITEM_FACTORY_ENTRY and ITEM_FACTORY_STOCK_ENTRY with their required ↵ulfl1-318/+318
data values to build the menus git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24909 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11replace CHECK_BUTTON_NEW_WITH_MNEMONIC with gtk_check_button_new_with_mnemoniculfl1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24905 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11OBECT_..._DATA --> g_object_..._datawmeier1-15/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24894 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-07Remove GTK1 code and change ugly version checking statements intosfisher1-28/+2
GTK_CHECK_VERSION(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24826 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-17Added an option to Conversations and Endpoints to limit the list to matchstig1-5/+75
the current display filter. Some Hosts -> Endpoints cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24368 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-11Avoid double space in filter when creating from conversations and endpoints.stig1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24299 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-08Added SCTP Endpoints table.stig1-22/+35
Display port number in SCTP Conversations table. Get correct display filter from SCTP Conversations. Arrange Conversations and Endpoints tabs alphabetically. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24291 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-09Add macros for various filter actions, types, and directions, and toguy1-212/+212
combine them into a callback argument and split a callback argument up. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23815 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-04Do not create an illegal filter when having an empty display filter andstig1-4/+16
selecting Apply/Prepare "and/or (not) Selected" in Conversations, Endpoints and Service Response Time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23756 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-04Clean up indentation.guy1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23745 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-20Add relative start time, duration, and average data rate (bps) columnsgerald1-61/+199
to the conversation lists. Move the "copy" button down to the button bar in order to free up some real estate. Add an nstime_cmp() function. Clean up code in a few places. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23516 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-10Apply yet another set of the optimization patches:etxrab1-5/+5
there's two structures with the same name conversation_t, change one to conv_t git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23423 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibguy1-12/+12
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21990 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-29From David Howells :standel1-3/+3
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'. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21975 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-25From Jon Smirlsahlberg1-0/+6
support for USB conversations git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21179 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-29Fix for bug #1278: sfisher1-2/+8
"When analysing a trace with 802.11 packages (made by airpcap) and selecting Statistics->Conversation List->WLAN all wlan conversations are listed. When after this selecting Apply as filter->Selected->A<->B a display filter is created as eth.addr==<A> && eth.addr==<B> when if should be wlan.addr==<A> && wlan.addr==<B>" git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20234 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-17from Stephen Fisher:ulfl1-2/+2
Here is a patch for spelling typos in comments and strings in the gtk/ directories. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19568 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-02From Greg Morris:etxrab1-0/+4
- Change to display NCP connection for each conversation - New NCP Endpoints. Please apply expert_comp_table - Use local variable space instead of pointer. The previous implementation utilized pointers and the values would change the table data. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17446 f5534014-38df-0310-8fa8-9805f1628bb7
2006-01-20Cleaning up copy to CSV codejake1-13/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17064 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-20From Greg Morris, patch to allow proper search/filtering ofgram1-1/+8
NCP conversations. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16278 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-16Sort each conversation column numerically. Fix up whitespace.gerald1-55/+71
It looks like we can't put "COPYCMD=/Y" in config.nmake and expect nmake to do the right thing. Add a comment, and set COPYCMD explicitly in the root Makefile.nmake. The rest of the occurrences of xcopy will have to be taken care of at some point. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15840 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-14Have cf_retap_packets() take an argument that indicates whether toguy1-2/+2
generate columns; use cf_retap_packets instead of cf_redissect_packets() when running taps (the general flow graph stat uses the Info column). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15793 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-25Fix sorting in the "Ports" columns. Add a comment about address sorting.gerald1-12/+16
Remove unused code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15529 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵ulfl1-1/+1
named ui_util.h in / dir git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15465 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-10removed tons of MSVC const related warnings.ulfl1-1/+1
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15286 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-05More char -> const char warning fixes.jmayer1-9/+9
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15227 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-09MSVC: fix some guint64 related compiler warnings, could someone please ↵ulfl1-1/+3
review my comment(s), I don't think it's currently implemented correct git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14887 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-07make the packets/bytes counters 64bit integers to not wrap when using really ↵sahlberg1-15/+15
large captures. setting packet counter to 64bit is overkill but makes it consistent with the very similar bytes counter. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14872 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-20From Mike Duigou:etxrab1-0/+42
In order to get filtering of conversations and > endpoints to work from the endpoints and conversations windows I found > it necessary to add a new AT_URI address type and a SAT_JXTA. This also > necessitated a change to to_str.c to avoid a buffer overflow problem. > Please review these changes carefully. > > Also includes some changes to the jxta dissector to fix filtering on > generated fields and some changes to the types used for ints/unsigned ints. > > Fixes a bug with the processing of messages containing namespaces. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14714 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-22From Francisco Alcoba:lego1-4/+0
changed the behaviour of get_addr_name: - resolve to a name if the address supports it - call address_to_str if it does not, but the address is valid - return "NONE" if it is AT_NONE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13463 f5534014-38df-0310-8fa8-9805f1628bb7