diff options
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); +} |