aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/packet-mate.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-16 19:37:00 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-17 02:37:31 +0000
commitb9c6e2d3915bc41b04420fb1fa99b1b7d12b0a21 (patch)
tree05e10cecc28cd9d97a1a907ab924610208bb8b20 /plugins/mate/packet-mate.c
parentacf349ea486799be4c28bc98fb674c145fbb66c6 (diff)
Remove unnecessary tap.
The tap was just a trick to get fields and protocols registered as being of interest. Now that we have mechanisms by which postdissectors can explicitly register fields and protocols as being of interest, and are using that, the trick is no longer needed. Change-Id: Ib2620ff32c41ffa050203c1d4481c63535fb3f4b Reviewed-on: https://code.wireshark.org/review/21156 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins/mate/packet-mate.c')
-rw-r--r--plugins/mate/packet-mate.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c
index cf30903eee..b23035a14d 100644
--- a/plugins/mate/packet-mate.c
+++ b/plugins/mate/packet-mate.c
@@ -35,7 +35,6 @@
void proto_register_mate(void);
void proto_reg_handoff_mate(void);
-static int mate_tap_data = 0;
static mate_config* mc = NULL;
static int proto_mate = -1;
@@ -323,13 +322,6 @@ mate_tree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
return tvb_captured_length(tvb);
}
-static int
-mate_packet(void *prs _U_, packet_info* tree _U_, epan_dissect_t *edt _U_, const void *dummy _U_)
-{
- /* nothing to do yet */
- return 0;
-}
-
static void
initialize_mate(void)
{
@@ -340,8 +332,6 @@ extern
void
proto_reg_handoff_mate(void)
{
- GString* tap_error = NULL;
-
if ( *pref_mate_config_filename != '\0' ) {
if (current_mate_config_filename) {
@@ -365,20 +355,6 @@ proto_reg_handoff_mate(void)
set_postdissector_wanted_hfids(mate_handle,
mc->wanted_hfids);
- tap_error = register_tap_listener("frame", &mate_tap_data,
- (char*) mc->tap_filter,
- 0,
- (tap_reset_cb) NULL,
- mate_packet,
- (tap_draw_cb) NULL);
-
- if ( tap_error ) {
- ws_g_warning("mate: couldn't (re)register tap: %s",tap_error->str);
- g_string_free(tap_error, TRUE);
- mate_tap_data = 0;
- return;
- }
-
initialize_mate_runtime(mc);
}