diff options
Diffstat (limited to 'epan/dissectors/packet-tsp.c')
-rw-r--r-- | epan/dissectors/packet-tsp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-tsp.c b/epan/dissectors/packet-tsp.c index bd4f2ba745..99f980ce09 100644 --- a/epan/dissectors/packet-tsp.c +++ b/epan/dissectors/packet-tsp.c @@ -105,8 +105,8 @@ static const value_string names_tsp_type[] = { }; -static void -dissect_tsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_tsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_tree *tsp_tree; proto_item *tsp_item; @@ -158,6 +158,7 @@ dissect_tsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(tsp_tree, hf_tsp_name, tvb, 12, -1, ENC_ASCII|ENC_NA); } + return tvb_captured_length(tvb); } @@ -166,7 +167,7 @@ proto_reg_handoff_tsp(void) { dissector_handle_t tsp_handle; - tsp_handle = create_dissector_handle(dissect_tsp, proto_tsp); + tsp_handle = new_create_dissector_handle(dissect_tsp, proto_tsp); dissector_add_uint("udp.port", UDP_PORT_TIMED, tsp_handle); } |