mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Fix: Untagged Ports column included non-member ports
The hardware bitmask format encodes both "untagged members" and "non-members" in the upper 10 bits (per doc/vlan.md). The existing fetchVLAN() correctly masks this with the membership bitmask before display, but loadVlanTable() did not, causing non-member ports to appear in the Untagged Ports column. Tested on KeepLiNK KP-9000-6XH-X.
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ async function loadVlanTable() {
|
||||
var s = await vresp.json();
|
||||
var m = parseInt(s.members, 16);
|
||||
var members = m & 0x3FF;
|
||||
var untag = (m >> 10) & 0x3FF;
|
||||
var untag = ((m >> 10) & 0x3FF) & members;
|
||||
var tagged = members & ~untag;
|
||||
var pvid = parseInt(s.pvid, 16) & 0x3FF;
|
||||
var tr = document.createElement('tr');
|
||||
|
||||
Reference in New Issue
Block a user