summaryrefslogtreecommitdiff
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-09 05:53:21 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-09 05:53:21 +0000
commit925ce160144e354b91b25f6b28f60e0df689f043 (patch)
tree778736267614d5d1e7675f7357591bfc269be910 /packet-udp.c
parent2cedf1666a3a1338694992e7cdea45c5a48a432f (diff)
downloadwireshark-925ce160144e354b91b25f6b28f60e0df689f043.tar.gz
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). svn path=/trunk/; revision=2848
Diffstat (limited to 'packet-udp.c')
-rw-r--r--packet-udp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-udp.c b/packet-udp.c
index 9782e7d39c..fcadf250ee 100644
--- a/packet-udp.c
+++ b/packet-udp.c
@@ -1,7 +1,7 @@
/* packet-udp.c
* Routines for UDP packet disassembly
*
- * $Id: packet-udp.c,v 1.82 2001/01/06 08:44:03 guy Exp $
+ * $Id: packet-udp.c,v 1.83 2001/01/09 05:53:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -73,6 +73,7 @@ typedef struct _e_udphdr {
static dissector_table_t udp_dissector_table;
static heur_dissector_list_t heur_subdissector_list;
+static conv_dissector_list_t conv_subdissector_list;
/* Determine if there is a sub-dissector and call it. This has been */
/* separated into a stand alone routine to other protocol dissectors */
@@ -273,6 +274,7 @@ proto_register_udp(void)
/* subdissector code */
udp_dissector_table = register_dissector_table("udp.port");
register_heur_dissector_list("udp", &heur_subdissector_list);
+ register_conv_dissector_list("udp", &conv_subdissector_list);
}
void