Adding lldp.json to the simulator

Moving the global on/off onto the LLDP page

Building a table of LLDP status from the S ports. Later on, if
we wish to implement an lldp receiver we can display the remote
details here

Adding support to the cmd parser for the lldp commands
This commit is contained in:
Rob Emery committed 2026-10-10 09:50:01 +01:00
1 parent 4f1a2f04d8
commit 58fd1a3ccc
9 files changed
+100 -20

No files matched your search

+2 -2
View File
@@ -969,9 +969,9 @@ void parse_port(void)
phy_set_duplex();
} else if (cmd_compare(2, "lldp")) {
if (cmd_compare(3, "block")){
lldp_port_status &= ~(1 << phy_settings.port);
lldp_physical_port_status &= ~(1 << phy_settings.port);
} else if (cmd_compare(3, "permit")) {
lldp_port_status |= 1 << phy_settings.port;
lldp_physical_port_status |= 1 << phy_settings.port;
} else {
print_string ("Unknown port <port> lldp [block|permit] command\n");
}