dfilter: add string() function.
authorDario Lombardo <lomato@gmail.com>
Sun, 6 Jan 2019 09:34:32 +0000 (10:34 +0100)
committerPeter Wu <peter@lekensteyn.nl>
Mon, 14 Jan 2019 16:00:29 +0000 (16:00 +0000)
commitc3d198c401d5ec17289159cc88e2f891070e7779
treefee286134f8799ecc84211baf6099ab204876338
parent252938ed253846671a101f6b3f3e90354be3e4b2
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@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
CMakeLists.txt
doc/wireshark-filter.pod
docbook/release-notes.asciidoc
docbook/wsug_src/WSUG_chapter_work.asciidoc
epan/dfilter/dfunctions.c
test/suite_dfilter/group_dfunction_string.py [new file with mode: 0644]