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

Function setbridge_add

tools/ifconfig/ifbridge.c:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static void
283setbridge_add(const char *val, int d, int s, const struct afswtch *afp)
284{
285 struct ifbreq req;
286
287 memset(&req, 0, sizeof(req));
288 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname));
289 if (do_cmd(s, BRDGADD, &req, sizeof(req), 1) < 0)
290 err(1, "BRDGADD %s", val);
291}
292
293static void
294setbridge_delete(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