[systemd-devel] [PATCH] LLDP: Support locally assigned port subtype

Tom Gundersen teg at jklm.no
Thu Jan 15 07:35:48 PST 2015


Thanks to both. Pushed!

On Thu, Jan 15, 2015 at 9:33 AM, Mantas Mikulėnas <grawity at gmail.com> wrote:
> On Thu, Jan 15, 2015 at 9:11 AM, Susant Sahani <susant at redhat.com> wrote:
>>
>> 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 at gmail.com>
>> ---
>>  src/libsystemd-network/lldp-internal.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/src/libsystemd-network/lldp-internal.c
>> b/src/libsystemd-network/lldp-internal.c
>> index f843fd2..c6a989a 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)
>> --
>> 2.1.0
>
>
> Tested, works fine.
>
> --
> Mantas Mikulėnas <grawity at gmail.com>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>


More information about the systemd-devel mailing list