Wireshark-commits: [Wireshark-commits] master c3d198c: dfilter: add string() function.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 14 Jan 2019 16:00:36 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c3d198c401d5ec17289159cc88e2f891070e7779
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

c3d198c by Dario Lombardo (lomato@xxxxxxxxx):

    dfilter: add string() function.
    
    This function can convert non-string fields into strings. This allows the
    user to apply string functions (like contains and matches) to non-string fields.
    
    Examples:
    
    string(frame.number) matches "[13579]$" => for odd frames
    string(eth.dst) matches "aa\.bb\.cc\.dd\.ee\..." => to match a group of stations
    string(snmp.name) matches "^1.2.3.4" => for all OIDs under a specific node
    
    Change-Id: I18173f50ba5314ecdcd1e4b66c7e8ba5b44257ee
    Reviewed-on: https://code.wireshark.org/review/31427
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  252938e   CMake: remove --clean from rpmbuild invocation
     add  c3d198c   dfilter: add string() function.


Summary of changes:
 CMakeLists.txt                               |   1 +
 doc/wireshark-filter.pod                     |  10 ++
 docbook/release-notes.asciidoc               |   3 +
 docbook/wsug_src/WSUG_chapter_work.asciidoc  |  16 +++
 epan/dfilter/dfunctions.c                    | 139 ++++++++++++++++++++++++++-
 test/suite_dfilter/group_dfunction_string.py |  39 ++++++++
 6 files changed, 204 insertions(+), 4 deletions(-)
 create mode 100644 test/suite_dfilter/group_dfunction_string.py