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

Function setbridge_delete

tools/ifconfig/ifbridge.c:293–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static void
294setbridge_delete(const char *val, int d, int s, const struct afswtch *afp)
295{
296 struct ifbreq req;
297
298 memset(&req, 0, sizeof(req));
299 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname));
300 if (do_cmd(s, BRDGDEL, &req, sizeof(req), 1) < 0)
301 err(1, "BRDGDEL %s", val);
302}
303
304static void
305setbridge_discover(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