lldp: send the port id as an interface name

The Port ID TLV carried a single digit with the locally assigned
subtype, so a neighbour listed us as port "3". Send "Port 3" with the
interface name subtype instead, the form the port keeps in the CLI and
the web UI.
This commit is contained in:
d00f committed 2026-10-13 04:00:17 +02:00
1 parent 1856aeba28
commit 677536dd74
2 files changed
+6 -2

No files matched your search

+2
View File
@@ -76,6 +76,8 @@ void lldp_send(void) __banked __reentrant
*p++ = LLDP_TYPE(LLDP_PORT_ID_TLV_TYPE);
*p++ = LLDP_PORT_ID_TLV_LENGTH;
*p++ = LLDP_PORT_ID_TLV_SUBTYPE;
memcpyc(p, LLDP_PORT_ID_PREFIX, LLDP_PORT_ID_PREFIX_LENGTH);
p += LLDP_PORT_ID_PREFIX_LENGTH;
port_position = (p-LLDP_O->payload);
*p++ = '0'; // filled in per port below