aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isl.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-19 20:53:42 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-19 20:53:42 +0000
commita78465a839a111a707bca2731f63e1ec46b93822 (patch)
tree6c0e3ae1a65433a65f286134b95796550d1c4d4d /epan/dissectors/packet-isl.c
parent38b423ec6b7dc5913994933cf6485d1562aaafe1 (diff)
From Peter Johansson:
My patch changes the decoding of the Destination address to conform with the spec found at http://www.cisco.com/univercd/cc/td/doc/product/lan/trsrb/frames.htm#xtocid75 and adds decoding of user field values 4-7 while updating the description of user field values 0-3 according to IEEE 802.1D-2004, annex G. svn path=/trunk/; revision=14139
Diffstat (limited to 'epan/dissectors/packet-isl.c')
-rw-r--r--epan/dissectors/packet-isl.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/epan/dissectors/packet-isl.c b/epan/dissectors/packet-isl.c
index 44e099de55..8d74ab4bfd 100644
--- a/epan/dissectors/packet-isl.c
+++ b/epan/dissectors/packet-isl.c
@@ -122,10 +122,15 @@ static const value_string type_vals[] = {
};
static const value_string ether_user_vals[] = {
- {0x0, "Normal priority"},
- {0x1, "Priority 1"},
- {0x2, "Priority 2"},
- {0x3, "Highest priority"},
+ /* User values are defined by IEEE 802.1D-2004, annex G */
+ {0x0, "Best effort (default priority)"},
+ {0x1, "Background"},
+ {0x2, "[spare priority]"},
+ {0x3, "Excellent effort"},
+ {0x4, "Controlled load"},
+ {0x5, "\"Video\", < 100ms latency and jitter"},
+ {0x6, "\"Voice\", < 10ms latency and jitter"},
+ {0x7, "Network control"},
{0, NULL}
};
@@ -163,7 +168,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len)
ti = proto_tree_add_protocol_format(tree, proto_isl, tvb, 0, ISL_HEADER_SIZE,
"ISL");
fh_tree = proto_item_add_subtree(ti, ett_isl);
- proto_tree_add_item(fh_tree, hf_isl_dst, tvb, 0, 6, FALSE);
+ proto_tree_add_item(fh_tree, hf_isl_dst, tvb, 0, 5, FALSE);
proto_tree_add_item_hidden(fh_tree, hf_isl_addr, tvb, 0, 6, FALSE);
proto_tree_add_item(fh_tree, hf_isl_type, tvb, 5, 1, FALSE);
switch (type) {
@@ -324,7 +329,7 @@ proto_register_isl(void)
{
static hf_register_info hf[] = {
{ &hf_isl_dst,
- { "Destination", "isl.dst", FT_ETHER, BASE_NONE, NULL, 0x0,
+ { "Destination", "isl.dst", FT_BYTES, BASE_HEX, NULL, 0x0,
"Destination Address", HFILL }},
{ &hf_isl_type,
{ "Type", "isl.type", FT_UINT8, BASE_DEC,