diff options
Diffstat (limited to 'asn1/sv/packet-sv-template.c')
-rw-r--r-- | asn1/sv/packet-sv-template.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/asn1/sv/packet-sv-template.c b/asn1/sv/packet-sv-template.c index c44321a8dd..d587a0237b 100644 --- a/asn1/sv/packet-sv-template.c +++ b/asn1/sv/packet-sv-template.c @@ -186,8 +186,8 @@ dissect_PhsMeas1(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tv /* * Dissect SV PDUs inside a PPDU. */ -static void -dissect_sv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) +static int +dissect_sv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { int offset = 0; int old_offset; @@ -225,8 +225,8 @@ dissect_sv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) } } - if(tree) - tap_queue_packet(sv_tap, pinfo, &sv_data); + tap_queue_packet(sv_tap, pinfo, &sv_data); + return tvb_captured_length(tvb); } @@ -314,7 +314,7 @@ void proto_register_sv(void) { /* Register protocol */ proto_sv = proto_register_protocol(PNAME, PSNAME, PFNAME); - register_dissector("sv", dissect_sv, proto_sv); + new_register_dissector("sv", dissect_sv, proto_sv); /* Register fields and subtrees */ proto_register_field_array(proto_sv, hf, array_length(hf)); |