From b151ddecbb6800271e1cc2b8b0d2bb355dadbe89 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 3 Jan 2001 10:34:42 +0000 Subject: 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 --- packet-llc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packet-llc.c') diff --git a/packet-llc.c b/packet-llc.c index 54a1829f87..4d731e094d 100644 --- a/packet-llc.c +++ b/packet-llc.c @@ -2,7 +2,7 @@ * Routines for IEEE 802.2 LLC layer * Gilbert Ramirez * - * $Id: packet-llc.c,v 1.74 2001/01/03 06:55:29 guy Exp $ + * $Id: packet-llc.c,v 1.75 2001/01/03 10:34:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -262,7 +262,7 @@ capture_llc(const u_char *pd, int offset, packet_counts *ld) { } } -void +static void dissect_llc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *llc_tree = NULL; @@ -475,6 +475,8 @@ proto_register_llc(void) /* subdissector code */ subdissector_table = register_dissector_table("llc.dsap"); cisco_subdissector_table = register_dissector_table("llc.cisco_pid"); + + register_dissector("llc", dissect_llc); } void -- cgit v1.2.1