From b1bf10bacb0ba3668c99812195dad873c7129255 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 8 Apr 2000 07:55:11 +0000 Subject: The "llc_ctrl_vals[]" value_string table isn't used to generate the protocol tree text for the control field - that protocol tree entry is added by "dissect_xdlc_control()", which uses "proto_tree_add_uint_format()" - and it's not a simple enumerated field (which is why "proto_tree_add_uint_format()" is used, to more fully describe the field). Eliminate it. svn path=/trunk/; revision=1824 --- packet-llc.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'packet-llc.c') diff --git a/packet-llc.c b/packet-llc.c index acd96d1f55..59760b95d9 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.49 2000/02/15 21:02:33 gram Exp $ + * $Id: packet-llc.c,v 1.50 2000/04/08 07:55:11 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -167,14 +167,6 @@ static struct sap_info saps[] = { { 0x00, NULL, NULL} }; -static const value_string llc_ctrl_vals[] = { - { 0, "Information Transfer" }, - { 1, "Supervisory" }, - { 2, "Unknown" }, - { 3, "Unnumbered Information" }, - { 0, NULL } -}; - /* * See * @@ -499,7 +491,7 @@ proto_register_llc(void) { &hf_llc_ctrl, { "Control", "llc.control", FT_UINT8, BASE_HEX, - VALS(llc_ctrl_vals), 0x0, "" }}, + NULL, 0x0, "" }}, /* registered here but handled in ethertype.c */ { &hf_llc_type, -- cgit v1.2.3