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

Function setbridge_span

tools/ifconfig/ifbridge.c:346–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346static void
347setbridge_span(const char *val, int d, int s, const struct afswtch *afp)
348{
349 struct ifbreq req;
350
351 memset(&req, 0, sizeof(req));
352 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname));
353 if (do_cmd(s, BRDGADDS, &req, sizeof(req), 1) < 0)
354 err(1, "BRDGADDS %s", val);
355}
356
357static void
358unsetbridge_span(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