mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This is to fix an off by one error. The ERS reports VLAN membership using a bitmask, but the MSB is always 0. So using the `q_bridge_bits2indices` function results in the reported ports membership being +1 wrong. The best fix for this would be to create a new function exactly the same as `q_bridge_bits2indices` which subtracts the 1 before returning the array. I tried this, but it broke my install :) Not sure how to add to the `functions.inc.php` file without breaking it.