aboutsummaryrefslogtreecommitdiffstats
path: root/packet-h263.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-08-23 06:36:46 +0000
committerGuy Harris <guy@alum.mit.edu>2003-08-23 06:36:46 +0000
commit555652a37f17cccc4caa779470fcabeb286a750d (patch)
tree18703fada771039d686ae62ff720bf65a67952a8 /packet-h263.c
parent22b60d9812bc2151a3969753c3aa3b44f830d10a (diff)
downloadwireshark-555652a37f17cccc4caa779470fcabeb286a750d.tar.gz
wireshark-555652a37f17cccc4caa779470fcabeb286a750d.tar.bz2
wireshark-555652a37f17cccc4caa779470fcabeb286a750d.zip
Add a dissector table for RTP payload types, and have dissectors
register themselves in that table rather than exporting their dissectors by name and having the RTP dissector know about particular dissectors for particular payload types. svn path=/trunk/; revision=8215
Diffstat (limited to 'packet-h263.c')
-rw-r--r--packet-h263.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/packet-h263.c b/packet-h263.c
index 098fb2b24b..a4c8c4d463 100644
--- a/packet-h263.c
+++ b/packet-h263.c
@@ -5,7 +5,7 @@
* Copyright 2003 Niklas Ögren <niklas.ogren@7l.se>
* Seven Levels Consultants AB
*
- * $Id: packet-h263.c,v 1.1 2003/08/23 04:19:22 sahlberg Exp $
+ * $Id: packet-h263.c,v 1.2 2003/08/23 06:36:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -31,8 +31,6 @@
/*
* This dissector tries to dissect the H.263 protocol according to
* ITU-T Recommendations and RFC 2190
- *
- * This dissector is called by the RTP dissector
*/
@@ -46,6 +44,8 @@
#include <stdio.h>
#include <string.h>
+#include "rtp_pt.h"
+
/* H.263 header fields */
static int proto_h263 = -1;
@@ -485,6 +485,13 @@ proto_register_h263(void)
"H.263", "h263");
proto_register_field_array(proto_h263, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+}
+
+void
+proto_reg_handoff_h263(void)
+{
+ dissector_handle_t h263_handle;
- register_dissector("h263", dissect_h263, proto_h263);
+ h263_handle = create_dissector_handle(dissect_h263, proto_h263);
+ dissector_add("rtp.pt", PT_H263, h263_handle);
}