Wireshark-bugs: [Wireshark-bugs] [Bug 6057] New: Lua API: add support to temporary color filters
Date: Fri, 24 Jun 2011 03:08:18 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6057

           Summary: Lua API: add support to temporary color filters (10
                    color slots)
           Product: Web sites
           Version: N/A
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Low
         Component: Source code repository - anonsvn.wireshark.org
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=6556)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=6556)
All attachment mention in description

Build Information:
N/A
--
This is an enhancement! 

Overview:
---------
Handling color filter slots from Lua scripts would be helpful to automate
coloring based on dynamically changed data. 
(Meaning: different value in each pcap file)


Modification:
-------------
New function added

set_tmp_filter(guint8 filter_slot_nr, gchar* filter_rule).

It adds a new filter rule to the given filter slot number.
(Those are the slots available under Colorize with Filter context menu.)


How to use:
-----------
Write your listener to add colors to any packets you want to color, based on
your rules.


Documentation:
--------------
None.
Attached lua script is well commented.


Attachments: 
------------
lua_api_set_tmp_filter.diff - actual diff.
sip_coloring.lua - it colorize your sip packets based on sip.Call-ID.
wireshark_color.jpg - example picture of the result

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.