aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipsec.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-16 22:46:25 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-16 22:46:25 +0000
commit9aa7670a4eb9e7aac604180b00ca4fa751d68ea7 (patch)
treeaa09ab7e91aa70df10e78c4ee02b0eabfda0c8db /packet-ipsec.c
parent4179944c14ac8026099f6416fa80421a29c673b8 (diff)
Register an "ip.proto" dissector table for IPv4, and have dissectors for
protocols that run inside IPv4 register themselves with it using "dissector_add()". Make various dissectors static if they can be, and get rid of any header files that no longer contain any information as a result of that change. svn path=/trunk/; revision=1870
Diffstat (limited to 'packet-ipsec.c')
-rw-r--r--packet-ipsec.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/packet-ipsec.c b/packet-ipsec.c
index f2dd9164bd..3475cf852f 100644
--- a/packet-ipsec.c
+++ b/packet-ipsec.c
@@ -1,7 +1,7 @@
/* packet-ipsec.c
* Routines for IPsec/IPComp packet disassembly
*
- * $Id: packet-ipsec.c,v 1.12 2000/03/12 04:47:40 gram Exp $
+ * $Id: packet-ipsec.c,v 1.13 2000/04/16 22:46:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -40,6 +40,7 @@
#include <glib.h>
#include "packet.h"
#include "packet-ipsec.h"
+#include "packet-ip.h"
#include "resolv.h"
static int proto_ah = -1;
@@ -281,3 +282,10 @@ proto_register_ipsec(void)
proto_register_subtree_array(ett, array_length(ett));
}
+
+void
+proto_reg_handoff_ipsec(void)
+{
+ dissector_add("ip.proto", IP_PROTO_ESP, dissect_esp);
+ dissector_add("ip.proto", IP_PROTO_IPCOMP, dissect_ipcomp);
+}