diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 05:13:14 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 05:13:14 +0000 |
commit | 4877553530fc356888edb95332b24eaeaadeee80 (patch) | |
tree | dece920ad31185cc514f42c162bd238ed5edcd14 /packet-rtcp.c | |
parent | fcd5b352af60e034a4b63601272b43b6644029cd (diff) |
Switched from using CHECK_DISPLAY_AS_DATA to using CHECK_DISPLAY_AS_X
which also takes a handle as an argument and thus doesn't call
dissect_data directly.
svn path=/trunk/; revision=4270
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r-- | packet-rtcp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c index c9b937b05b..ffb94eb50b 100644 --- a/packet-rtcp.c +++ b/packet-rtcp.c @@ -1,6 +1,6 @@ /* packet-rtcp.c * - * $Id: packet-rtcp.c,v 1.22 2001/09/08 00:43:51 guy Exp $ + * $Id: packet-rtcp.c,v 1.23 2001/11/26 05:13:12 hagbard Exp $ * * Routines for RTCP dissection * RTCP = Real-time Transport Control Protocol @@ -178,6 +178,8 @@ static gint ett_sdes_item = -1; static address fake_addr; static int heur_init = FALSE; +static dissector_handle_t data_handle; + static gboolean dissect_rtcp_heur( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ); @@ -636,7 +638,7 @@ dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) unsigned int offset = 0; guint16 packet_length = 0; - CHECK_DISPLAY_AS_DATA(proto_rtcp, tvb, pinfo, tree); + CHECK_DISPLAY_AS_X(data_handle,proto_rtcp, tvb, pinfo, tree); pinfo->current_proto = "RTCP"; @@ -1228,6 +1230,7 @@ proto_register_rtcp(void) void proto_reg_handoff_rtcp(void) { + data_handle = find_dissector("data"); /* * Register this dissector as one that can be assigned to a * UDP conversation. |