diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-11-05 09:30:11 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-11-05 09:30:11 +0000 |
commit | 2b74b36060fd016a031e60d2c056fb5f6505ac10 (patch) | |
tree | 993708af4bd68a7453e64eb2ba582bded54c7d29 /packet-rtcp.c | |
parent | 054142bcfcaa8ffdd3c5fb86a072755732211e82 (diff) |
Make the RTCP, RTP, WSP, and WTP dissectors check whether their
protocols have been disabled.
Get rid of the "no tvbuff" dissectors for WSP and WTP - they're not used
(and shouldn't ever be used).
Make "dissect_wtp()" static, as it's not used outside "packet-wtp.c".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2568 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r-- | packet-rtcp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c index 5096caa3d6..4774282db4 100644 --- a/packet-rtcp.c +++ b/packet-rtcp.c @@ -234,12 +234,16 @@ static void rtcp_init( void ) gboolean dissect_rtcp_heur( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) { + conversation_t* pconv; + + if (!proto_is_protocol_enabled(proto_rtcp)) + return FALSE; /* RTCP has been disabled */ + /* This is a heuristic dissector, which means we get all the UDP * traffic not sent to a known dissector and not claimed by * a heuristic dissector called before us! * So we first check if the frame is really meant for us. */ - conversation_t* pconv; if ( ( pconv = find_conversation( &pi.src, &fake_addr, pi.ptype, pi.srcport, 0, 0 ) ) == NULL ) { /* @@ -624,6 +628,8 @@ 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); + pinfo->current_proto = "RTCP"; if ( check_col( pinfo->fd, COL_PROTOCOL ) ) { |