diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-04-07 06:18:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-04-07 06:18:55 +0000 |
commit | 2184232ca2f67eea5028847b4b7e895db9a40119 (patch) | |
tree | ca345ca4b9b62a194eba10983ff17fa71cb2ecc2 /packet-ipmi.c | |
parent | 9cf3a7d97db8893f7e2cde5e5bda342ce71c9ad9 (diff) |
From Duncan Laurie: the LUN field in IPMI packets is only in the lower 2
bits.
svn path=/trunk/; revision=10559
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; } |