]> git.ipfire.org Git - thirdparty/systemd.git/commit
Fix placement of TTL TLV in LLDP transmit
authorMatthijs van Duin <matthijsvanduin@gmail.com>
Wed, 4 May 2022 13:18:55 +0000 (15:18 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 4 May 2022 16:19:02 +0000 (01:19 +0900)
commitb0221bb6a468e84841ad366ff39dcc4de97dc5db
treecf21c6c7f9d7686e2e14b7200caa265a2c692cd3
parenta2e37d52312806b1847800df2358e61276cda052
Fix placement of TTL TLV in LLDP transmit

The LLDP spec (IEEE 802.1AB) requires the three mandatory TLVs (Chassis
ID, Port ID, and TTL) to be the first three TLVs in the packet, in that
specific order, whereas systemd put the TTL near the end of the packet.

This violation caused the ethernet switch in our office to discard these
packets as malformed, and Wireshark's packet parser also chokes on them.
src/libsystemd-network/sd-lldp-tx.c