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-gre.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-gre.c')
-rw-r--r-- | packet-gre.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-gre.c b/packet-gre.c index dbe20248c6..985f0aa479 100644 --- a/packet-gre.c +++ b/packet-gre.c @@ -2,7 +2,7 @@ * Routines for the Generic Routing Encapsulation (GRE) protocol * Brad Robel-Forrest <brad.robel-forrest@watchguard.com> * - * $Id: packet-gre.c,v 1.17 2000/03/27 17:53:19 gram Exp $ + * $Id: packet-gre.c,v 1.18 2000/04/16 22:46:18 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -71,7 +71,7 @@ static const value_string typevals[] = { { 0, NULL } }; -void +static void dissect_gre(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { guint16 flags_and_ver = pntohs(pd + offset); @@ -287,3 +287,9 @@ proto_register_gre(void) proto_register_field_array(proto_gre, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } + +void +proto_reg_handoff_gre(void) +{ + dissector_add("ip.proto", IP_PROTO_GRE, dissect_gre); +} |