Files
RTLPlayground/html
d00f 5e901fb5c2 l2: sort and filter the forwarding table from its header
The table lists every learned and static entry in one flat block, which is
fine with a handful and unusable with a few hundred: finding out where one
MAC sits, or what a port has learned, meant reading the whole thing.

Make the column headings sort and give each one a filter box. Filters are
substring matches combined with AND, so "port 8 + static" is two keystrokes.
A counter above the table shows matched out of total, so a filter that hides
everything is obvious rather than looking like an empty table.

Sorting keeps the CPU entry from comparing as a number - it sorts last
instead of landing between ports 8 and 9, where a string-vs-number compare
would otherwise put it.

The filter inputs live inside the existing header cells rather than in a
second row: the paint loop addresses data rows as rows[i+1], and a second
header row would have shifted every one of them.
2026-08-05 21:21:03 +02:00
..
2026-07-05 00:51:27 +09:00
2025-10-20 18:35:35 +02:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-08-05 21:21:03 +02:00
2026-07-05 00:51:27 +09:00
2026-03-10 06:16:18 +01:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-03-10 06:16:18 +01:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00
2026-07-05 00:51:27 +09:00