Merge pull request #565 from DrDoof/feat/mac-count

port: show how many MAC addresses each port has learned
This commit is contained in:
René van Dorst authored and GitHub committed 2026-10-16 21:57:26 +00:00
commit d9fc20addf
7 files changed
+51 -37

No files matched your search

+3
View File
@@ -1111,6 +1111,9 @@ void send_status(void)
slen += strtox(outbuf + slen, "\",\"rxB\":\"0x");
STAT_GET(STAT_COUNTER_ERR_PKTS, i);
reg_to_html(RTL837X_STAT_V_HIGH); // 32bit RX packet errors
slen += strtox(outbuf + slen, "\",\"macs\":\"0x");
reg_to_html(RTL837X_L2_LRN_PORT_CONSTRT_CNT + (i << 2));
slen += strtox(outbuf + slen, "\"}");
if (i < machine.max_port)
char_to_html(',');