diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-03 10:34:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-03 10:34:42 +0000 |
commit | b151ddecbb6800271e1cc2b8b0d2bb355dadbe89 (patch) | |
tree | b9e74ab80383b0add3d88c281308f9fb06f0b32e /packet-trmac.c | |
parent | b92ebd4a23fb75f3972527609abd4f8360489805 (diff) |
Have the TR MAC and LLC dissectors register themselves, make them
static, and have other dissectors call them through handles.
svn path=/trunk/; revision=2816
Diffstat (limited to 'packet-trmac.c')
-rw-r--r-- | packet-trmac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-trmac.c b/packet-trmac.c index 9cd4fc32d9..8c1da0ddf4 100644 --- a/packet-trmac.c +++ b/packet-trmac.c @@ -2,7 +2,7 @@ * Routines for Token-Ring Media Access Control * Gilbert Ramirez <gram@xiexie.org> * - * $Id: packet-trmac.c,v 1.27 2001/01/03 06:55:34 guy Exp $ + * $Id: packet-trmac.c,v 1.28 2001/01/03 10:34:42 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -271,7 +271,7 @@ sv_text(tvbuff_t *tvb, int svoff, proto_tree *tree) return sv_length; } -void +static void dissect_trmac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *mac_tree = NULL; @@ -406,4 +406,6 @@ proto_register_trmac(void) "TR MAC", "trmac"); proto_register_field_array(proto_trmac, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); + + register_dissector("trmac", dissect_trmac); } |