aboutsummaryrefslogtreecommitdiffstats
path: root/packet-pim.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-pim.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-pim.c')
-rw-r--r--packet-pim.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-pim.c b/packet-pim.c
index bcd5a0b8d0..9868af188c 100644
--- a/packet-pim.c
+++ b/packet-pim.c
@@ -2,7 +2,7 @@
* Routines for PIM disassembly
* (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org>
*
- * $Id: packet-pim.c,v 1.10 2000/03/12 04:47:47 gram Exp $
+ * $Id: packet-pim.c,v 1.11 2000/04/16 22:46:22 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -601,3 +601,10 @@ proto_register_pim(void)
proto_register_field_array(proto_pim, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
}
+
+void
+proto_reg_handoff_pim(void)
+{
+ dissector_add("ip.proto", IP_PROTO_PIM, dissect_pim);
+}
+