]> git.proxmox.com Git - mirror_ovs.git/commit
lldp: validate a bit more received LLDP frames
authorVincent Bernat <vincent@bernat.ch>
Fri, 13 Nov 2020 00:54:50 +0000 (19:54 -0500)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 16 Nov 2020 16:47:11 +0000 (17:47 +0100)
commit955b120df845903b9ecc7c1637766230db354897
tree74809327ca645c609b7b7146801900594aeb3b23
parenta1d2c5f5d9ed3c7116e76048c042c47dc85aa43c
lldp: validate a bit more received LLDP frames

Upstream commit:
    commit 3aeae72b97716fddac290634fad02b952d981f17
    Author: Vincent Bernat <vincent@bernat.ch>
    Date:   Tue, 1 Oct 2019 21:42:42 +0200

    lldp: validate a bit more received LLDP frames

    Notably, we ensure the order and unicity of Chassis ID, Port ID and
    TTL TLV. For Chassis ID and Port ID, we also ensure the maximum size
    does not exceed 256.

    Fix https://github.com/vincentbernat/lldpd/issues/351

Fixes: be53a5c447c3 ("auto-attach: Initial support for Auto-Attach standard")
Signed-off-by: Aaron Conole <aconole@redhat.com>
Co-authored-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/lldp/lldp.c