aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ayiya.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-08 20:15:22 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-09 15:59:42 +0000
commit0aa9e9864721d5f425ffeba85bbb642ebd12e771 (patch)
tree98918da5fd1c719a3ca17b6df2369a663ed66550 /epan/dissectors/packet-ayiya.c
parent8f529628338f20948e80835076b7b18f6d48c6cf (diff)
Convert some UDP subdissectors to "new" style.
Change-Id: I3c1ee97f68af4539b97d50b75c03ff82147dbc5e Reviewed-on: https://code.wireshark.org/review/11649 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-ayiya.c')
-rw-r--r--epan/dissectors/packet-ayiya.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ayiya.c b/epan/dissectors/packet-ayiya.c
index 9630f06a76..a855ff8ff5 100644
--- a/epan/dissectors/packet-ayiya.c
+++ b/epan/dissectors/packet-ayiya.c
@@ -84,8 +84,8 @@ static const value_string opcodes[] = {
#define UDP_PORT_AYIYA 5072
-static void
-dissect_ayiya(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_ayiya(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_tree *ayiya_tree;
int offset = 0;
@@ -132,6 +132,8 @@ dissect_ayiya(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissector_try_uint(ip_dissector_table, next_header, payload, pinfo, tree);
break;
}
+
+ return tvb_captured_length(tvb);
}
void
@@ -195,7 +197,7 @@ proto_register_ayiya(void)
proto_ayiya = proto_register_protocol("Anything in Anything Protocol",
"AYIYA", "ayiya");
- register_dissector("ayiya", dissect_ayiya, proto_ayiya);
+ new_register_dissector("ayiya", dissect_ayiya, proto_ayiya);
proto_register_field_array(proto_ayiya, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
}