summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/lldp-internal.c
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2015-01-15 12:41:28 +0530
committerTom Gundersen <teg@jklm.no>2015-01-15 16:34:38 +0100
commitb3ff20978a5e9c5a9fdc693128f29988b4070c8a (patch)
tree1063e7d50b28f1e4682786ff5dfc9477a27769c3 /src/libsystemd-network/lldp-internal.c
parentb96014fad55afb2c1b9e744bbbb345a95ae669b3 (diff)
LLDP: Support locally assigned port subtype
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>
Diffstat (limited to 'src/libsystemd-network/lldp-internal.c')
-rw-r--r--src/libsystemd-network/lldp-internal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/lldp-internal.c b/src/libsystemd-network/lldp-internal.c
index f843fd256d..c6a989aac1 100644
--- a/src/libsystemd-network/lldp-internal.c
+++ b/src/libsystemd-network/lldp-internal.c
@@ -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)