aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-07-13 12:15:59 +0200
committerDaniel Willmann <daniel@totalueberwachung.de>2016-07-13 12:15:59 +0200
commitf6f9f7cc8964f267efd552fd70035cc9dec25791 (patch)
treee7218934e82eb156d910296bf49702e45209da19
parent62d66df57ce65e6515ad9fa41381b2a6b916b6e8 (diff)
osmux: Queue packet to the tap system
-rw-r--r--epan/dissectors/packet-osmux.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-osmux.c b/epan/dissectors/packet-osmux.c
index 1322149..8d464b7 100644
--- a/epan/dissectors/packet-osmux.c
+++ b/epan/dissectors/packet-osmux.c
@@ -24,6 +24,8 @@
#include "config.h"
#include <epan/packet.h>
+#include <epan/stats_tree.h>
+#include <epan/tap.h>
#include <epan/prefs.h>
void proto_register_osmux(void);
@@ -42,7 +44,9 @@ static const value_string osmux_ft_vals[] =
};
/* Initialize the protocol and registered fields */
+static dissector_handle_t osmux_handle;
static int proto_osmux = -1;
+static int osmux_tap = -1;
static int hf_osmux_ft_ctr = -1;
static int hf_osmux_ft = -1;
@@ -139,6 +143,8 @@ dissect_osmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U
offset++;
}
+ tap_queue_packet(osmux_tap, pinfo, NULL);
+
return offset;
}
@@ -213,13 +219,13 @@ void proto_register_osmux(void)
void proto_reg_handoff_osmux(void)
{
static gboolean osmux_initialized = FALSE;
- static dissector_handle_t osmux_handle;
if (!osmux_initialized) {
osmux_handle = create_dissector_handle(dissect_osmux, proto_osmux);
dissector_add_uint("udp.port", 1984, osmux_handle);
osmux_initialized = TRUE;
}
+ osmux_tap = register_tap("osmux");
}
/*