chiark / gitweb /
LLDP: Support locally assigned port subtype
authorSusant Sahani <susant@redhat.com>
Thu, 15 Jan 2015 07:11:28 +0000 (12:41 +0530)
committerTom Gundersen <teg@jklm.no>
Thu, 15 Jan 2015 15:34:38 +0000 (16:34 +0100)
The Zyxel switch sends port subtype as Locally assigned (7).
Add LLDP_PORT_SUBTYPE_LOCALLY_ASSIGNED as supported type

reported by Mantas Mikulėnas <grawity@gmail.com>

src/libsystemd-network/lldp-internal.c

index f843fd256dd9e6ef37b9f749bf82adeb72967983..c6a989aac1fef4cf17746ddfd880db4eea52c58f 100644 (file)
@@ -89,6 +89,7 @@ int lldp_read_port_id(tlv_packet *tlv,
         case LLDP_PORT_SUBTYPE_PORT_COMPONENT:
         case LLDP_PORT_SUBTYPE_INTERFACE_ALIAS:
         case LLDP_PORT_SUBTYPE_INTERFACE_NAME:
+        case LLDP_PORT_SUBTYPE_LOCALLY_ASSIGNED:
 
                 r = tlv_packet_read_string(tlv, &s, length);
                 if (r < 0)