mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
stp: use the front panel number as the port ID
The port ID in the BPDUs was the chip port plus one, so on most boards it did not match the port label, neither on the Spanning Tree page nor on the neighbour. Send the front panel number instead, and 101 and up for the LAGs, the same numbers the page already uses for the Port column. A returned BPDU of our own is mapped back to the port by that number. Scenario 66 gives one port a front panel number that differs from its chip port.
This commit is contained in:
1 parent
7ca4d2c8dc
commit
bdca888ecd
4 files changed
+49
-14
No files matched your search
+1
-1
@@ -153,7 +153,7 @@ void send_stp(void) __banked
|
||||
bridge_to_html();
|
||||
slen += strtox(outbuf + slen, "\",\"dp\":\"");
|
||||
stp_byte_html(dsg ? (stp_dpid[i] >> 8) : stp_pprio[i]);
|
||||
stp_byte_html(dsg ? stp_dpid[i] : (i + 1));
|
||||
stp_byte_html(dsg ? stp_dpid[i] : j);
|
||||
slen += strtox(outbuf + slen, "\",\"dc\":\"");
|
||||
pi_u32 = dsg ? stp_dcost[i] : root_bridge_cost; u32hex_html();
|
||||
slen += strtox(outbuf + slen, "\"},");
|
||||
|
||||
Reference in new issue
Block a user