aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-09 05:53:21 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-09 05:53:21 +0000
commita1f75fe99c63add12c6dca8d8c0bc31435568dfa (patch)
tree778736267614d5d1e7675f7357591bfc269be910 /packet-rtp.c
parentbc940e5213a098215671d9b488b48f5e311fbf3c (diff)
Add tables of "conversation" dissectors, which are associated with
particular protocols, and which keep track of all dissectors that could be associated with conversations using those particular protocols - for example, the RTP and RTCP dissectors could be assigned to UDP conversations. This is for future use with UI features allowing the dissector for a given conversation to be set from the UI, to allow 1) conversations between two ports, both of which have dissectors associated with them, that have been given to the wrong dissector to be given to the right dissector; 2) conversations between two ports, neither of which have dissectors associated with them, to be given to a dissector (RTP and RTCP, for example, typically run on random ports, and if you don't have, in a capture, traffic that would say "OK, traffic between these two hosts and ports will be RTP traffic", you may have to tell Ethereal explicitly what protocol the conversation is). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2848 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtp.c')
-rw-r--r--packet-rtp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/packet-rtp.c b/packet-rtp.c
index b7bca40996..c3d49e8b0e 100644
--- a/packet-rtp.c
+++ b/packet-rtp.c
@@ -629,3 +629,13 @@ proto_register_rtp(void)
register_init_routine( &rtp_init );
#endif
}
+
+void
+proto_reg_handoff_rtp(void)
+{
+ /*
+ * Register this dissector as one that can be assigned to a
+ * UDP conversation.
+ */
+ conv_dissector_add("udp", dissect_rtp);
+}