[Bug 292634] ifconfig doesn't display bridge members when a span interface is added
Date: Thu, 22 Jan 2026 13:29:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292634
--- Comment #1 from Emrion <kmachine@free.fr> ---
I'm looking at the code.
I think the problem comes from sbin/ifconfig/ifbridge.c, line 212:
static void
bridge_status(if_ctx *ctx)
{
struct ifconfig_bridge_status *bridge;
struct ifbropreq *params;
const char *pad, *prefix;
uint8_t lladdr[ETHER_ADDR_LEN];
uint16_t bprio;
if (ifconfig_bridge_get_bridge_status(lifh, ctx->ifname, &bridge) ==
-1)
return;
params = bridge->params;
PV2ID(params->ifbop_bridgeid, bprio, lladdr);
printf("\tid %s priority %u hellotime %u fwddelay %u\n",
(...snip...)
The function ifconfig_bridge_get_bridge_status() could return -1 when a span
interface is present as a bridge member, thus stopping all the subsequent
prints (as we see in the ifconfig output).
This function is located in lib/libifconfig/libifconfig_bridge.c. Maybe one of
the two last commits is responsible for this issue.
--
You are receiving this mail because:
You are the assignee for the bug.