aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isakmp.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-isakmp.c
parent6f1d3a3be830da628246f7cea77fe9c491470d17 (diff)
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-isakmp.c')
-rw-r--r--packet-isakmp.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/packet-isakmp.c b/packet-isakmp.c
index 5e2b936ec7..c6267a0904 100644
--- a/packet-isakmp.c
+++ b/packet-isakmp.c
@@ -2,7 +2,7 @@
* Routines for the Internet Security Association and Key Management Protocol (ISAKMP)
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-isakmp.c,v 1.6 1999/07/13 02:52:52 gram Exp $
+ * $Id: packet-isakmp.c,v 1.7 1999/07/29 05:46:57 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -50,6 +50,8 @@
# include "snprintf.h"
#endif
+static int proto_isakmp = -1;
+
#define NUM_PROTO_TYPES 5
#define proto2str(t) \
((t < NUM_PROTO_TYPES) ? prototypestr[t] : "UNKNOWN-PROTO-TYPE")
@@ -291,8 +293,7 @@ void dissect_isakmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tr
proto_item * ti;
proto_tree * isakmp_tree;
- ti = proto_tree_add_text(tree, offset, len,
- "Internet Security Association and Key Management Protocol");
+ ti = proto_tree_add_item(tree, proto_isakmp, offset, len, NULL);
isakmp_tree = proto_item_add_subtree(ti, ETT_ISAKMP);
proto_tree_add_text(isakmp_tree, offset, sizeof(hdr->icookie),
@@ -1049,3 +1050,14 @@ num2str(const guint8 *pd, guint16 len) {
return numstr;
}
+void
+proto_register_isakmp(void)
+{
+/* static hf_register_info hf[] = {
+ { &variable,
+ { "Name", "isakmp.abbreviation", TYPE, VALS_POINTER }},
+ };*/
+
+ proto_isakmp = proto_register_protocol("Internet Security Association and Key Management Protocol", "isakmp");
+ /* proto_register_field_array(proto_isakmp, hf, array_length(hf));*/
+}