HomeFreeBSD

libifconfig: Fix bridge status member list

Description

libifconfig: Fix bridge status member list

When this functionality was moved to libifconfig in 3dfbda3401abea84da9,
the end of list calculation was modified for unknown reasons, practically
limiting the number of bridge member returned to (about) 102.

This patch changes the calculation back to what it was originally and
adds a unit test to verify it works as expected.

Reported by: Patrick M. Hausen (via ML)
Reviewed by: kp
Approved by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43135

(cherry picked from commit 3d36053ca6d6a17d408c8f92c504e6135dc9d8df)

Details

Provenance
gremboAuthored on Dec 20 2023, 8:21 PM
Reviewer
kp
Differential Revision
D43135: libifconfig: Fix bridge status member list
Parents
rG5e78db7b45ed: support spaces in filenames
Branches
Unknown
Tags
Unknown