summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-12-05 08:07:00 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-12-05 08:07:00 +0000
commitf611704fd222939bc85c36c5ba474591d562ada4 (patch)
tree5602a39479816e8882370b40cde7c4c0aa459c68
parent3c8dcc67bb3df5473ce41ea456aa700ef6d2d299 (diff)
downloadwireshark-f611704fd222939bc85c36c5ba474591d562ada4.tar.gz
fix output of PROFINET specific MAC addresses - it simply displayed garbage
svn path=/trunk/; revision=20044
-rw-r--r--epan/dissectors/packet-lldp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c
index 725ed52bc8..6aba95f9fb 100644
--- a/epan/dissectors/packet-lldp.c
+++ b/epan/dissectors/packet-lldp.c
@@ -2072,7 +2072,7 @@ dissect_profinet_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gu
guint32 port_tx_delay_local;
guint32 port_tx_delay_remote;
guint32 cable_delay_local;
- guint8 mac_addr[6];
+ const guint8 *mac_addr = NULL;
e_guid_t * uuid;
guint16 mrrt_PortStatus;
@@ -2155,13 +2155,15 @@ dissect_profinet_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gu
}
case 5: /* Chassis MAC */
{
- proto_tree_add_ether(tree, hf_profinet_cm_mac, tvb, offset, 6, mac_addr);
+ mac_addr=tvb_get_ptr(tvb, offset, 6);
+ proto_tree_add_ether(tree, hf_profinet_cm_mac, tvb, offset, 6, mac_addr);
offset += 6;
break;
}
case 6: /* PTCP status */
{
/* MasterSourceAddress */
+ mac_addr=tvb_get_ptr(tvb, offset, 6);
proto_tree_add_ether(tree, hf_profinet_master_source_address, tvb, offset, 6, mac_addr);
offset += 6;
/* SubdomainUUID */
@@ -2551,7 +2553,7 @@ proto_register_lldp(void)
VALS(profinet_mrrt_port_status_vals), 0x0, "", HFILL }
},
{ &hf_profinet_cm_mac,
- { "CMMacAdd", "lldp.profinet.rtc3_port_status", FT_ETHER, BASE_NONE,
+ { "CMMacAdd", "lldp.profinet.cm_mac_add", FT_ETHER, BASE_NONE,
NULL, 0x0, "CMResponderMacAdd or CMInitiatorMacAdd", HFILL }
},
{ &hf_profinet_master_source_address,