aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kingfisher.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-22 02:55:14 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-22 02:55:14 +0000
commite156e01bf7afce6ef0dea5fd868ec60c16418971 (patch)
tree2b46f08815d0a30ca9cd0b2d7f8ea10be0050245 /epan/dissectors/packet-kingfisher.c
parent81a9902e425931f21828ad7ed12e2bc69a124c5e (diff)
fix an incorrect shift
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21878 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-kingfisher.c')
-rw-r--r--epan/dissectors/packet-kingfisher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-kingfisher.c b/epan/dissectors/packet-kingfisher.c
index 0e416e58f7..3d6600f5df 100644
--- a/epan/dissectors/packet-kingfisher.c
+++ b/epan/dissectors/packet-kingfisher.c
@@ -287,8 +287,7 @@ dissect_kingfisher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean
}
-/* this shift can not be right */
- message = (kfp->message & 0x0f) | ((kfp->message & 0xf0) >> 8);
+ message = (kfp->message & 0x0f) | ((kfp->message & 0xf0) >> 4);
if(tree){
item = proto_tree_add_protocol_format(tree, proto_kingfisher, tvb, 0, -1, "Kingfisher Protocol, From RTU: %d, Target RTU: %d", kfp->from, kfp->target );