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

Function setbridge_flush

tools/ifconfig/ifbridge.c:430–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430static void
431setbridge_flush(const char *val, int d, int s, const struct afswtch *afp)
432{
433 struct ifbreq req;
434
435 memset(&req, 0, sizeof(req));
436 req.ifbr_ifsflags = IFBF_FLUSHDYN;
437 if (do_cmd(s, BRDGFLUSH, &req, sizeof(req), 1) < 0)
438 err(1, "BRDGFLUSH");
439}
440
441static void
442setbridge_flushall(const char *val, int d, int s, const struct afswtch *afp)

Callers

nothing calls this directly

Calls 2

memsetFunction · 0.85
do_cmdFunction · 0.70

Tested by

no test coverage detected