MCPcopy Create free account
hub / github.com/F-Stack/f-stack / unsetbridge_span

Function unsetbridge_span

tools/ifconfig/ifbridge.c:357–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357static void
358unsetbridge_span(const char *val, int d, int s, const struct afswtch *afp)
359{
360 struct ifbreq req;
361
362 memset(&req, 0, sizeof(req));
363 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname));
364 if (do_cmd(s, BRDGDELS, &req, sizeof(req), 1) < 0)
365 err(1, "BRDGDELS %s", val);
366}
367
368static void
369setbridge_stp(const char *val, int d, int s, const struct afswtch *afp)

Callers

nothing calls this directly

Calls 3

memsetFunction · 0.85
do_cmdFunction · 0.70
strlcpyFunction · 0.50

Tested by

no test coverage detected