aboutsummaryrefslogtreecommitdiffstats
path: root/packet-h261.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-27 07:37:46 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-27 07:37:46 +0000
commitddec2eb25b1fb535576da03b6a53c163de29a45f (patch)
tree463e4a74b4e675516a4390b15565c37debd0ffd4 /packet-h261.c
parentd2cd48b08684630c88ca38fefc3089afe17a7b8d (diff)
Call the H.261 dissector through a handle.
Set the reported length of the tvbuff we hand to the H.261 dissector. svn path=/trunk/; revision=3464
Diffstat (limited to 'packet-h261.c')
-rw-r--r--packet-h261.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-h261.c b/packet-h261.c
index 205fe6f5c4..66cfda4618 100644
--- a/packet-h261.c
+++ b/packet-h261.c
@@ -6,7 +6,7 @@
* Andreas Sikkema <andreas.sikkema@philips.com>
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
@@ -51,8 +51,6 @@
#include <stdio.h>
#include <string.h>
-#include "packet-h261.h"
-
/* H.261 header fields */
static int proto_h261 = -1;
static int hf_h261_sbit = -1;
@@ -69,7 +67,7 @@ static int hf_h261_data = -1;
/* H.261 fields defining a sub tree */
static gint ett_h261 = -1;
-void
+static void
dissect_h261( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
{
proto_item *ti = NULL;
@@ -259,4 +257,6 @@ proto_register_h261(void)
"H.261", "h261");
proto_register_field_array(proto_h261, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ register_dissector("h261", dissect_h261, proto_h261);
}