From 5a8783f5b12e017967ce178bac3d1826630dea1a Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Mon, 10 Sep 2012 21:40:21 +0000 Subject: Initial commit to support yet another method of passing data between dissectors. Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860 --- asn1/h501/packet-h501-template.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'asn1/h501') diff --git a/asn1/h501/packet-h501-template.c b/asn1/h501/packet-h501-template.c index c39dee0757..e606ae3fc3 100644 --- a/asn1/h501/packet-h501-template.c +++ b/asn1/h501/packet-h501-template.c @@ -63,7 +63,7 @@ void proto_reg_handoff_h501(void); #include "packet-h501-fn.c" static int -dissect_h501_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_h501_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { proto_item *ti = NULL; proto_tree *h501_tree = NULL; @@ -73,18 +73,18 @@ dissect_h501_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ti = proto_tree_add_item(tree, proto_h501, tvb, 0, -1, ENC_NA); h501_tree = proto_item_add_subtree(ti, ett_h501); - return dissect_Message_PDU(tvb, pinfo, h501_tree); + return dissect_Message_PDU(tvb, pinfo, h501_tree, NULL); } static int -dissect_h501_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_h501_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { dissect_tpkt_encap(tvb, pinfo, tree, FALSE, h501_pdu_handle); return tvb_length(tvb); } static int -dissect_h501_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_h501_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { dissect_tpkt_encap(tvb, pinfo, tree, h501_desegment_tcp, h501_pdu_handle); return tvb_length(tvb); -- cgit v1.2.3