aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mndp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-mndp.c')
-rw-r--r--epan/dissectors/packet-mndp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mndp.c b/epan/dissectors/packet-mndp.c
index ecae863f3c..c5261ad2ff 100644
--- a/epan/dissectors/packet-mndp.c
+++ b/epan/dissectors/packet-mndp.c
@@ -255,9 +255,8 @@ test_mndp(tvbuff_t *tvb)
return TRUE;
}
-#if 0
static gboolean
-dissect_mndp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+dissect_mndp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
if ( !test_mndp(tvb) ) {
return FALSE;
@@ -265,7 +264,6 @@ dissect_mndp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissect_mndp(tvb, pinfo, tree);
return TRUE;
}
-#endif
static int
dissect_mndp_static(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
@@ -362,7 +360,7 @@ proto_reg_handoff_mndp(void)
mndp_handle = new_create_dissector_handle(dissect_mndp_static, proto_mndp);
dissector_add_uint("udp.port", PORT_MNDP, mndp_handle);
- /* heur_dissector_add("udp", dissect_mndp_heur, "MNDP over UDP", "mndp_udp", proto_mndp); */
+ heur_dissector_add("udp", dissect_mndp_heur, "MNDP over UDP", "mndp_udp", proto_mndp, HEURISTIC_DISABLE);
}
/*