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

Function setbridge_deladdr

tools/ifconfig/ifbridge.c:474–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474static void
475setbridge_deladdr(const char *val, int d, int s, const struct afswtch *afp)
476{
477 struct ifbareq req;
478 struct ether_addr *ea;
479
480 memset(&req, 0, sizeof(req));
481
482 ea = ether_aton(val);
483 if (ea == NULL)
484 errx(1, "invalid address: %s", val);
485
486 memcpy(req.ifba_dst, ea->octet, sizeof(req.ifba_dst));
487
488 if (do_cmd(s, BRDGDADDR, &req, sizeof(req), 1) < 0)
489 err(1, "BRDGDADDR %s", val);
490}
491
492static void
493setbridge_addr(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
memcpyFunction · 0.50

Tested by

no test coverage detected