aboutsummaryrefslogtreecommitdiffstats
path: root/packet-raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet-raw.c')
-rw-r--r--packet-raw.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/packet-raw.c b/packet-raw.c
index f0fab49ab0..ae7b829e9e 100644
--- a/packet-raw.c
+++ b/packet-raw.c
@@ -1,7 +1,7 @@
/* packet-raw.c
* Routines for raw packet disassembly
*
- * $Id: packet-raw.c,v 1.10 1999/07/07 22:51:52 gram Exp $
+ * $Id: packet-raw.c,v 1.11 1999/11/16 11:42:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -35,6 +35,8 @@
#include <glib.h>
#include "packet.h"
+static gint ett_raw = -1;
+
void
capture_raw( const u_char *pd, guint32 cap_len, packet_counts *ld ) {
@@ -72,7 +74,7 @@ dissect_raw( const u_char *pd, frame_data *fd, proto_tree *tree ) {
layer (ie none) */
if(tree) {
ti = proto_tree_add_text(tree, 0, 0, "Raw packet data" );
- fh_tree = proto_item_add_subtree(ti, ETT_RAW);
+ fh_tree = proto_item_add_subtree(ti, ett_raw);
proto_tree_add_text(fh_tree, 0, 0, "No link information available");
}
@@ -90,3 +92,12 @@ dissect_raw( const u_char *pd, frame_data *fd, proto_tree *tree ) {
dissect_ip(pd, 0, fd, tree);
}
+void
+proto_register_raw(void)
+{
+ static gint *ett[] = {
+ &ett_raw,
+ };
+
+ proto_register_subtree_array(ett, array_length(ett));
+}