diff options
author | Anish Bhatt <anish@chelsio.com> | 2014-04-28 15:18:04 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-04-28 22:23:01 +0000 |
commit | ec205458b163be993f73801acf6323c4bec35391 (patch) | |
tree | e876d854b963a0bb54162887750174072c32b190 /epan/dissectors/packet-lldp.c | |
parent | eadaa0c50f0de42e329080366e4a27f4bd2af89a (diff) |
Fix checkAPIs warnings in packet-lldp.c. repoted_length() used instead of captured_length() as is seems more logical
Change-Id: I02860d5c45e3fd794d9f99e2d382bc02ae886b36
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Reviewed-on: https://code.wireshark.org/review/1422
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lldp.c')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index 59cdcb929d..ee81387922 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -2046,7 +2046,7 @@ dissect_ieee_802_3_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint16 tempShort; guint32 tempLong; guint32 tempOffset = offset; - guint16 tlvLen = tvb_length(tvb)-offset; + guint16 tlvLen = tvb_reported_length(tvb)-offset; proto_tree *mac_phy_flags = NULL; proto_tree *autoneg_advertised_subtree = NULL; @@ -2267,7 +2267,7 @@ static void dissect_media_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint32 offset) { guint32 tempOffset = offset; - guint16 tlvLen = tvb_length(tvb)-offset; + guint16 tlvLen = tvb_reported_length(tvb)-offset; guint8 subType; guint16 tempShort; guint16 tempVLAN; @@ -2945,7 +2945,7 @@ dissect_organizational_specific_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_tre guint16 tempLen; guint16 tempShort; gint tempTree; - guint32 oui, tLength = tvb_length(tvb); + guint32 oui, tLength = tvb_reported_length(tvb); guint8 subType; const char *ouiStr; const char *subTypeStr; @@ -3126,7 +3126,7 @@ dissect_organizational_specific_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_tre dissect_oui_default_tlv(tvb, pinfo, org_tlv_tree, (offset + 5)); } - return offset + tvb_length(tvb); + return offset + tvb_reported_length(tvb); } /* Dissect Unknown TLV */ |