aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
AgeCommit message (Collapse)AuthorFilesLines
2011-08-17Fix indentation.etxrab1-41/+41
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38573 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-01Renamed "___tmp_color_filter___" to "___conversation_color_filter___"stig1-3/+3
in the coloring rule name to better describe where it comes from. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37859 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-28Replace all strerror() with g_strerror().stig1-6/+6
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37812 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-17More eradication of old-style function definitions.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37216 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-26Get rid of a cast that was causing alignment warnings and that was bogusguy1-1/+1
anyway (the second argument to g_slist_find_custom is a gconstpointer, not a gpointer * or a gconstpointer *). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36863 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-08Display a console warning instead of a simple_dialog for invalid color filters.cmaynard1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36173 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-08A little more old packet list cleanupsfisher1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36172 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-08Removal of the old packet-list in favor of the new packet list.sake1-13/+0
It compiles with "./configure without options" on my Mac. Let's see what the buildbots have to say about it :-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36161 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-12Define some vars & fcns as static;wmeier1-28/+28
Also: do some minor reformmating and cleanup of whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34492 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-02From Hitoshi Irino:etxrab1-24/+24
Displaying value and type of IPFIX reverse PEN elements in data records https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4399 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32082 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-19Made some functions static.stig1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30616 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Store 'color_filter' as const in 'frame_data'krj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30051 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-06Add NEW_PACKET_LIST guard to color_filters_colorize_packet()krj1-2/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29729 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-26(FWIW) One step towards including stdio.h & stdlib.h only when req'd.wmeier1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29568 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-10From Kovarththanan Rajaratnam:etxrab1-1/+2
- Compute and cache color/custom filters dynamically. - Delay column construction. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29370 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-20Introduce packet list coloring for the NEW_PACKET_LIST. One caveat: whensfisher1-4/+9
enabling/disabling the coloring of the packet list from the menus, the user has to drag the mouse cursor over each displayed row to take away/add the coloring. Dragging the scroll bar up or down will also take care of this as only the displayed rows are colored. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29142 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-30Introduce experimental new feature: GTK2 tree view based packet listsfisher1-0/+4
To use the GTK2 based packet list, define NEW_PACKET_LIST when compiling. To do this with gcc, set the environment variable CPPFLAGS to "-DNEW_PACKET_LIST" and re-run configure. Many features do not yet work. This work began with prototypes by Ulf quite a while back. I've put quite a bit of work into this so far and as discussed with a few of the core team members at Sharkfest09 and it was decided that it would be best to commit what I have so far to allow others to help work on this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28892 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22Move the file utility functions from wiretap to libwsutil so thatmorriss1-16/+16
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-27Fix another compile error ....wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24484 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-26get_datafile_path() and get_persconffile_path() return malloc'd memory,morriss1-0/+2
free it when we're done with the file name. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24478 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-14This patch adds support for configuration profiles, which can be used tostig1-2/+19
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24089 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-15Changes the name of the menu item "View/Reset Coloring" tosake1-0/+15
"View/Reset Coloring 1-10" and adds sensitivity to it so that it will be greyed out when none of the temporary color filters are used. (as per discussion on wireshark-dev some time ago) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23879 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-25Make it possible to "move" a filter around the temporary coloring rulessake1-21/+40
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23585 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-25Reset the temporary coloring filters to defaults instead of doing itsake1-2/+14
implicitly by calling "color_filters_init()". This should probably fix the crashes experienced when pressing ctrl-space a couple of times git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23583 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-25Fixes crashing when opening color filters and pressing OKsake1-4/+6
(introduced in SVN 23560) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23582 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-24This patch adds (ten) temporary coloring rules which will only live until ↵sake1-5/+99
Wireshark is quit. Temporary coloring filters can be set by: - pressing <ctrl>-<digit> will create a conversation coloring filter based on the addresses of the currently selected packet (order TCP/UDP/IP/Ethernet) This can also be achieved from the "View|Colorize Conversation" menu. - Rightclicking on a packet in the packet-list will give the option to "Colorize Conversation" just as "Conversation Filter" does. - Rightclicking on an item in the packet-detail-list will give the option to "Colorize with filter" which works similar to "Apply as filter" Temporary filters can be cleared from the same menus or by pressing <ctrl>-<space>. This patch also adds an item to the above mentioned menu's to add a permanent color filter in the same way. The colors for the temporary coloring rules are now hardcoded as I do not know how to change the color of menu-items and therefore I chose to use icons to show the actual color of each of the ten temporary coloring rules. Is it at all possible to have different menu items in different colors? One other way of solving this is to recreate the icons on the fly after changing the colors. I will have a look into that once it is clear whether I can use different colors within the menu structure. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23560 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-10This patch makes it possible to disable individual coloring rules sake1-3/+15
without having to delete them. The patch has been tested on Fedora-7 with GTK+ 1.2.10 and GTK+ 2.10.11. Since I don't know how to use "strikethrough" in clists in GTK1 there is a little difference in how the disabled coloring rules are displayed. In GTK2 they are striked through and in GTK1 they are shown in lightgrey on a white background. Any info on how to use strikthrough in clists within GTK1 is more than welcome :-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23421 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-21From Florent DROUIN <florent.drouin@alcatel.fr>, bug 1518:richardv1-3/+28
Fix for g_assert when clicking 'OK' on colour filters dialogue whilst individual filter edit window is open. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22572 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-06fix 1203 as found by stephen fisherulfl1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19839 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-10Fix some compiler warnings.guy1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19470 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-03fix the memory leak problem mentioned lately by adding and using ↵ulfl1-13/+16
color_filters_cleanup() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19422 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-03changes of the coloring rules sometimes crashed as dissection keeps pointers ↵ulfl1-1/+11
to the color_filter for later reference -> simply deleting the filters leave the pointers invalid -> crash. for now, don't delete the filters but keep them floating around in memory (leaking) -> at least better than crashing git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19421 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-03Implement a real "Cancel" button for the coloring rules dialog - this was a ↵ulfl1-87/+137
hard one! It seems to be working without bugs and as designed now. As this was a huge internal change, new bugs are very probable - please report. The implementation isn't still perfect, a new dialog internal list could possibly be removed again. However, I want to check in at this condition, just in case I make things worse - again. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19413 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-02further code cleanup: don't use the term "marked" for the color filters, the ↵ulfl1-17/+24
right term is "selected". That caused me "concerns" wether the marked feature of the packet list was involved - which is actually not git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19399 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-02refactor apply_color_filter() as it was a bit confusing - it will also be a ↵ulfl1-67/+46
bit faster now - and some other minor code cleanup git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19398 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-22ethereal->wireshark updatessahlberg1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18206 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
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵ulfl1-5/+6
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16403 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-14Some 'no previous declararion' warning fixesjmayer1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15355 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-05More char -> const char warning fixes.jmayer1-2/+2
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-03-27add a new checkitem "Colorize Packet List" into the View menuulfl1-1/+10
keep it's setting in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13929 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-26move some color_filter related things from file.c to color_filters.culfl1-0/+54
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13920 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-26There's no need to create a directory just because you're about toguy1-11/+0
remove a file in it - the directory presumably exists already, if you're about to remove a file in it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13914 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-26code cleanup: use common prefix for all functions in color_filters.hulfl1-11/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13910 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-25code cleanup: the term filter_list was used with different meanings ↵ulfl1-9/+9
throughout the code, and the filter_list of the color_filters is "global". use appropriate prefixes to avoid confusion and bugs git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13905 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-13change nmake makefiles in /trunk and /trunk/epan so thatlroland1-4/+0
object code for libethereal.dll isn't generated by the makefile in /trunk. Having no code in /trunk linked into libethereal.dll anymore, the definition of the macro _NEED_VAR_IMPORT_ can be moved from various source files in /trunk to /trunk/Makefile.nmake . So do that, too. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13389 f5534014-38df-0310-8fa8-9805f1628bb7
2004-12-31"get_persconffile_path()" doesn't return a "const char *", it justguy1-3/+3
returns a "char *", so don't assign its return value to a "const char *". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12882 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-21fixed some comment typosulfl1-8/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12057 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-25From Lars Roland: _NEED_VAR_IMPORT_ has to be defined so that variablesguy1-0/+5
are imported correctly from libethereal.dll when compiling with MSVC. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11516 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-24Rename "create_color()" to "initialize_color()", as that reflects a bitguy1-2/+2
better what it actually does. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11502 f5534014-38df-0310-8fa8-9805f1628bb7