aboutsummaryrefslogtreecommitdiffstats
path: root/packet-giop.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-07-29 05:47:07 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-07-29 05:47:07 +0000
commit7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3 (patch)
tree3e8a46fe6f7bb69698edb1187655e445bbfda37c /packet-giop.c
parent6f1d3a3be830da628246f7cea77fe9c491470d17 (diff)
downloadwireshark-7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3.tar.gz
wireshark-7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3.tar.bz2
wireshark-7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3.zip
Made the protocol (but not the fields) use the new proto_tree routine,
allowing users to filter on the existence of these protocols. I also added packet-clip.c to the Nmake makefile. svn path=/trunk/; revision=402
Diffstat (limited to 'packet-giop.c')
-rw-r--r--packet-giop.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/packet-giop.c b/packet-giop.c
index 376afe8cba..45558b667b 100644
--- a/packet-giop.c
+++ b/packet-giop.c
@@ -3,7 +3,7 @@
*
* Laurent Deniel <deniel@worldnet.fr>
*
- * $Id: packet-giop.c,v 1.3 1999/07/07 22:51:43 gram Exp $
+ * $Id: packet-giop.c,v 1.4 1999/07/29 05:46:54 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -40,6 +40,8 @@
#include <glib.h>
#include "packet.h"
+static int proto_giop = -1;
+
/*
* GIOP / IIOP types definition - OMG CORBA 2.x / GIOP 1.[01]
* See OMG WEB site <http://www.omg.org> - CORBA+IIOP 2.2 (98-02-01.ps)
@@ -258,9 +260,8 @@ void dissect_giop(const u_char *pd, int offset, frame_data *fd, proto_tree *tree
}
if (tree) {
- ti = proto_tree_add_text(tree, offset,
- GIOP_HEADER_SIZE + message_size,
- "General Inter-ORB Protocol");
+ ti = proto_tree_add_item(tree, proto_giop, offset,
+ GIOP_HEADER_SIZE + message_size, NULL);
clnp_tree = proto_item_add_subtree(ti, ETT_GIOP);
proto_tree_add_text(clnp_tree, offset, 4,
"Magic number: %s", GIOP_MAGIC);
@@ -696,3 +697,14 @@ void dissect_giop(const u_char *pd, int offset, frame_data *fd, proto_tree *tree
} /* dissect_giop */
+void
+proto_register_giop(void)
+{
+/* static hf_register_info hf[] = {
+ { &variable,
+ { "Name", "giop.abbreviation", TYPE, VALS_POINTER }},
+ };*/
+
+ proto_giop = proto_register_protocol("General Inter-ORB Protocol", "giop");
+ /* proto_register_field_array(proto_giop, hf, array_length(hf));*/
+}