diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-06-22 19:19:41 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-06-22 19:19:41 +0000 |
commit | efb558955d35c8f3932afcceb76d3aa4ac5f255e (patch) | |
tree | e561c8a38ca12bb33f1720e3a8f48e9724733322 /epan | |
parent | a016d9ee4542e8d341805736d2d5f7eaf35c954b (diff) |
add another PROFINET specific subtype (5:CHASSIS_MAC)
svn path=/trunk/; revision=18549
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index e5a73879b5..2a240ea09b 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -94,6 +94,7 @@ static int hf_profinet_port_rx_delay_remote = -1; static int hf_profinet_port_tx_delay_local = -1; static int hf_profinet_port_tx_delay_remote = -1; static int hf_profinet_cable_delay_local = -1; +static int hf_profinet_cm_mac = -1; static int hf_unknown_subtype = -1; /* Initialize the subtree pointers */ @@ -233,6 +234,8 @@ static const value_string profinet_subtypes[] = { { 1, "Measured Delay Values" }, { 2, "Port Status" }, { 3, "Alias" }, + { 4, "MRP Port Status" }, + { 5, "Chassis MAC" }, { 0, NULL } }; @@ -2055,6 +2058,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]; /* Get subtype */ @@ -2120,7 +2124,13 @@ dissect_profinet_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gu break; } /*case 3:*/ /* XXX - Alias */ - /*case 4:*/ /* XXX - MRT Port Status */ + /*case 4:*/ /* XXX - MRP Port Status */ + case 5: /* Chassis MAC */ + { + proto_tree_add_ether(tree, hf_profinet_cm_mac, tvb, offset, 6, mac_addr); + offset += 6; + break; + } default: proto_tree_add_item(tree, hf_unknown_subtype, tvb, offset, tlvLen2, FALSE); } @@ -2488,6 +2498,11 @@ proto_register_lldp(void) { "RTClass3 Port Status", "lldp.profinet.rtc3_port_status", FT_UINT16, BASE_HEX, VALS(profinet_port3_status_vals), 0x0, "", HFILL } }, + { &hf_profinet_cm_mac, + { "CMMacAdd", "lldp.profinet.rtc3_port_status", FT_ETHER, BASE_NONE, + NULL, 0x0, "CMResponderMacAdd or CMInitiatorMacAdd", HFILL } + }, + { &hf_unknown_subtype, { "Unknown Subtype Content","lldp.unknown_subtype", FT_BYTES, BASE_HEX, NULL, 0x0, "", HFILL } |