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

Function setbridge_flushall

tools/ifconfig/ifbridge.c:441–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441static void
442setbridge_flushall(const char *val, int d, int s, const struct afswtch *afp)
443{
444 struct ifbreq req;
445
446 memset(&req, 0, sizeof(req));
447 req.ifbr_ifsflags = IFBF_FLUSHALL;
448 if (do_cmd(s, BRDGFLUSH, &req, sizeof(req), 1) < 0)
449 err(1, "BRDGFLUSH");
450}
451
452static void
453setbridge_static(const char *val, const char *mac, int s,

Callers

nothing calls this directly

Calls 2

memsetFunction · 0.85
do_cmdFunction · 0.70

Tested by

no test coverage detected