From f35e7f874de990bbd1a028b057539212e0ebbedd Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Sat, 19 Jan 2019 22:22:02 +0100 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- dfilter_macros | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dfilter_macros') 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" -- cgit v1.2.3