aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-05-12 21:53:32 -0400
committerEvan Huus <eapache@gmail.com>2015-05-16 12:13:45 +0000
commit85f38f9f75a3c7a41d78ec953ebc23f6439ea426 (patch)
tree4915efa3cc9f394eede723952fccde39d8eaf35b /epan/tap.h
parentaa6466a7b5015bcbb2bc43b985eb161745337022 (diff)
tap: Add ability to reject/ignore "error" packets in tap
ICMP (and a few other protocols) can carry "error packets" as payloads in certain cases. In the same way that we don't (by default) call TCP reassembly code on TCP packets we know are out-of-order, we also shouldn't call tap code on frames carried in ICMP error packets. Bug: 11184 Change-Id: Ie83dbb505c8fdc15c5554705488c16fa0274a06a Reviewed-on: https://code.wireshark.org/review/8446 Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/tap.h')
-rw-r--r--epan/tap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/tap.h b/epan/tap.h
index 4b6f72e5ef..fa801c2a49 100644
--- a/epan/tap.h
+++ b/epan/tap.h
@@ -40,8 +40,9 @@ typedef void (*tap_draw_cb)(void *tapdata);
#define TL_REQUIRES_NOTHING 0x00000000 /**< nothing */
#define TL_REQUIRES_PROTO_TREE 0x00000001 /**< full protocol tree */
#define TL_REQUIRES_COLUMNS 0x00000002 /**< columns */
+#define TL_REQUIRES_ERROR_PACKETS 0x00000004 /**< include packet even if pinfo->flags.in_error_pkt is set */
/** Flags to indicate what the tap listener does */
-#define TL_IS_DISSECTOR_HELPER 0x00000004 /**< tap helps a dissector do work
+#define TL_IS_DISSECTOR_HELPER 0x00000008 /**< tap helps a dissector do work
** but does not, itself, require dissection */
#ifdef HAVE_PLUGINS