diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-04-07 06:18:55 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-04-07 06:18:55 +0000 |
commit | a4fcb99c841fdbebbc304a4eb9b04daba91a7b50 (patch) | |
tree | ca345ca4b9b62a194eba10983ff17fa71cb2ecc2 /packet-ipmi.c | |
parent | e4e991c7add1515d72954d075dc709bbdc289b0e (diff) |
From Duncan Laurie: the LUN field in IPMI packets is only in the lower 2
bits.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10559 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ipmi.c')
-rw-r--r-- | packet-ipmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ipmi.c b/packet-ipmi.c index 1c2b16bf5f..44f297e62a 100644 --- a/packet-ipmi.c +++ b/packet-ipmi.c @@ -3,7 +3,7 @@ * * Duncan Laurie <duncan@sun.com> * - * $Id: packet-ipmi.c,v 1.4 2003/12/13 01:08:32 guy Exp $ + * $Id: packet-ipmi.c,v 1.5 2004/04/07 06:18:55 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -483,7 +483,7 @@ dissect_ipmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(field_tree, response ? hf_ipmi_msg_rqlun : hf_ipmi_msg_rslun, tvb, offset, 1, TRUE); - lun = tvb_get_guint8(tvb, offset); + lun = tvb_get_guint8(tvb, offset) & 3; proto_item_append_text(tf, ", LUN 0x%02x", lun); offset += 1; } @@ -514,7 +514,7 @@ dissect_ipmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(field_tree, response ? hf_ipmi_msg_rslun : hf_ipmi_msg_rqlun, tvb, offset, 1, TRUE); - lun = tvb_get_guint8(tvb, offset); + lun = tvb_get_guint8(tvb, offset) & 3; proto_item_append_text(tf, ", LUN 0x%02x", lun); offset += 1; } |