aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lldp.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-09-24 01:12:44 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-09-24 01:12:44 +0000
commit31267e5a21dba9dc873887dad2728f1ed33cf9c2 (patch)
treec9475a36a155a37286dde4342fe7bb086b16b492 /epan/dissectors/packet-lldp.c
parent221f85fd678e6dd43dc40e2da0fee762e21f9c3f (diff)
From Wido Kelling via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9176 :
Fix decoding of the Auto-Negotiation bits in LLDP (they were off by one). svn path=/trunk/; revision=52199
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 c9919956d9..f50456df77 100644
--- a/epan/dissectors/packet-lldp.c
+++ b/epan/dissectors/packet-lldp.c
@@ -2651,7 +2651,7 @@ dissect_lldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tempShort = tvb_get_ntohs(tvb, offset);
tempType = TLV_TYPE(tempShort);
/* pass only TLV to dissectors, Zero offset (point to front of tlv) */
- new_tvb = tvb_new_subset(tvb, offset, TLV_INFO_LEN(tempShort)+2, TLV_INFO_LEN(tempShort)+2);
+ new_tvb = tvb_new_subset(tvb, offset, TLV_INFO_LEN(tempShort)+2, TLV_INFO_LEN(tempShort)+2);
switch (tempType)
{
case CHASSIS_ID_TLV_TYPE:
@@ -2877,11 +2877,11 @@ proto_register_lldp(void)
},
{ &hf_ieee_802_3_mac_phy_auto_neg_status_supported,
{ "Auto-Negotiation", "lldp.ieee.802_3.mac_phy_auto_neg_status.supported", FT_BOOLEAN, 8,
- TFS(&tfs_supported_not_supported), 0x02, NULL, HFILL }
+ TFS(&tfs_supported_not_supported), 0x01, NULL, HFILL }
},
{ &hf_ieee_802_3_mac_phy_auto_neg_status_enabled,
{ "Auto-Negotiation", "lldp.ieee.802_3.mac_phy_auto_neg_status.enabled", FT_BOOLEAN, 8,
- TFS(&tfs_enabled_disabled), 0x04, NULL, HFILL }
+ TFS(&tfs_enabled_disabled), 0x02, NULL, HFILL }
},
{ &hf_ieee_802_3_pmd_auto_neg_advertised_caps,
{ "PMD Auto-Negotiation Advertised Capability", "lldp.ieee.802_3.pmd_auto_neg_advertised_caps", FT_UINT16, BASE_HEX,