diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-18 14:03:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-18 14:03:37 +0000 |
commit | eaf42827f3b4135e122896f27f284818ef4e23c0 (patch) | |
tree | 215debf09b8c12725b7f1325430c6a75df70843d /plugins | |
parent | 49a7eb8e5f22b60624d494d549618968c0041d07 (diff) |
Give the IrDA dissector its own private value_string table for the frame
type in the IrLAP control field - on most UNIXes the dissector should be
able to use the table from the main program, but that doesn't currently
work on Windows.
svn path=/trunk/; revision=9717
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/irda/packet-irda.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/irda/packet-irda.c b/plugins/irda/packet-irda.c index df87a691c5..92aeb6371d 100644 --- a/plugins/irda/packet-irda.c +++ b/plugins/irda/packet-irda.c @@ -6,7 +6,7 @@ * Extended by Jan Kiszka <jan.kiszka@web.de> * Copyright 2003 Jan Kiszka * - * $Id: packet-irda.c,v 1.4 2004/01/18 08:32:46 guy Exp $ + * $Id: packet-irda.c,v 1.5 2004/01/18 14:03:37 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -292,6 +292,13 @@ static const true_false_string set_notset = { "Not set" }; +static const value_string lap_c_ftype_vals[] = { + { XDLC_I, "Information frame" }, + { XDLC_S, "Supervisory frame" }, + { XDLC_U, "Unnumbered frame" }, + { 0, NULL } +}; + static const value_string lap_c_u_cmd_abbr_vals[] = { { XDLC_SNRM, "SNRM" }, { XDLC_DISC, "DISC" }, @@ -2001,11 +2008,11 @@ static void proto_register_irda(void) "", HFILL }}, { &hf_lap_c_i, { "Frame Type", "irlap.c.ftype", - FT_UINT8, BASE_HEX, VALS(ftype_vals), XDLC_I_MASK, + FT_UINT8, BASE_HEX, VALS(lap_c_ftype_vals), XDLC_I_MASK, "", HFILL }}, { &hf_lap_c_s_u, { "Frame Type", "irlap.c.ftype", - FT_UINT8, BASE_HEX, VALS(ftype_vals), XDLC_S_U_MASK, + FT_UINT8, BASE_HEX, VALS(lap_c_ftype_vals), XDLC_S_U_MASK, "", HFILL }}, { &hf_lap_i, { "Information Field", "irlap.i", |