diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-16 22:46:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-16 22:46:25 +0000 |
commit | 9aa7670a4eb9e7aac604180b00ca4fa751d68ea7 (patch) | |
tree | aa09ab7e91aa70df10e78c4ee02b0eabfda0c8db /packet-vrrp.c | |
parent | 4179944c14ac8026099f6416fa80421a29c673b8 (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-vrrp.c')
-rw-r--r-- | packet-vrrp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packet-vrrp.c b/packet-vrrp.c index a383c9c966..e3754fa3e0 100644 --- a/packet-vrrp.c +++ b/packet-vrrp.c @@ -4,7 +4,7 @@ * * Heikki Vatiainen <hessu@cs.tut.fi> * - * $Id: packet-vrrp.c,v 1.3 2000/03/12 04:47:51 gram Exp $ + * $Id: packet-vrrp.c,v 1.4 2000/04/16 22:46:25 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -41,6 +41,7 @@ #include <string.h> #include <glib.h> #include "packet.h" +#include "packet-ip.h" static gint proto_vrrp = -1; static gint ett_vrrp = -1; @@ -91,7 +92,8 @@ static const value_string vrrp_prio_vals[] = { }; -void dissect_vrrp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) +static void +dissect_vrrp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { struct vrrp_header vrh; gboolean short_hdr = FALSE; @@ -211,3 +213,9 @@ void proto_register_vrrp(void) return; } + +void +proto_reg_handoff_vrrp(void) +{ + dissector_add("ip.proto", IP_PROTO_VRRP, dissect_vrrp); +} |