aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lldp.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2009-06-09 16:51:04 +0000
committerJörg Mayer <jmayer@loplof.de>2009-06-09 16:51:04 +0000
commit0db429e50c2239eff4ac4fc3dc2f7d620f223906 (patch)
tree019c9a744c5c3afbcef3ac1ccd9fc2ed405271ed /epan/dissectors/packet-lldp.c
parent3677441868313c3245e6efc5d5998a675d0958d7 (diff)
Powervalue is in units of 100mW, print effective value and unit
svn path=/trunk/; revision=28674
Diffstat (limited to 'epan/dissectors/packet-lldp.c')
-rw-r--r--epan/dissectors/packet-lldp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c
index a74071c9fa..a195bf8fa0 100644
--- a/epan/dissectors/packet-lldp.c
+++ b/epan/dissectors/packet-lldp.c
@@ -1974,10 +1974,10 @@ dissect_media_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint
tempOffset++;
- /* Get power value */
- tempShort = tvb_get_ntohs(tvb, tempOffset);
+ /* Power Value: 0 – 102.3 Watts (0.1 W increments) */
+ tempShort = tvb_get_ntohs(tvb, tempOffset) * 100;
if (tree)
- proto_tree_add_text(tree, tvb, tempOffset, 2, "Power Value: %u", tempShort);
+ proto_tree_add_text(tree, tvb, tempOffset, 2, "Power Value: %u mW", tempShort);
break;
}