aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-01-19 22:22:02 +0100
committerGerald Combs <gerald@wireshark.org>2019-06-05 17:04:22 +0000
commitf35e7f874de990bbd1a028b057539212e0ebbedd (patch)
tree8c0b8542442a9079fa70ca528d1ef88d8dcd9a35
parent443df9389661901e8347f33864e2cd7539dbda9f (diff)
ship the dfilter_macros file.
By providing such a file, we give the users a basic toolbox of macros. At the moment 3 macros have been added, for private mac addresses, as well al IP v4 and v6. Change-Id: Icc33efce437adef00e268172c184c8b52167df23 Reviewed-on: https://code.wireshark.org/review/33449 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--CMakeLists.txt1
-rw-r--r--dfilter_macros6
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbd7736911..36adea0a6d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1661,6 +1661,7 @@ set(INSTALL_FILES
cfilters
colorfilters
dfilters
+ dfilter_macros
enterprises.tsv
ipmap.html
manuf
diff --git a/dfilter_macros b/dfilter_macros
index e69de29bb2..4f0eae07f7 100644
--- a/dfilter_macros
+++ b/dfilter_macros
@@ -0,0 +1,6 @@
+# DO NOT MODIFY
+# This file is the macro file shipped with Wireshark.
+# For your personal macros, use the same file in your profile dir.
+"private_ipv4","$1 == 192.168.0.0/16 or $1 == 172.16.0.0/12 or $1 == 10.0.0.0/8"
+"private_ethernet","($1[0-0] & 02) == 0x02 or ($1[0-0] & 06) or ($1[0-0] & 0A) or ($1[0-0] & 06)"
+"private_ipv6", "ipv6 && $1 == fc00::/7"