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

Function lagg_create

tools/ifconfig/iflagg.c:323–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static void
324lagg_create(int s, struct ifreq *ifr)
325{
326 ifr->ifr_data = (caddr_t) &params;
327#ifndef FSTACK
328 ioctl_ifcreate(s, ifr);
329#else
330 size_t offset = (char *)&(ifr.ifr_data) - (char *)&(ifr);
331 size_t clen = sizeof(params);
332 ioctl_va(s, SIOCIFCREATE2, &ifr, 3, offset, ifr.ifr_data, clen);
333#endif
334}
335
336static struct cmd lagg_cmds[] = {
337 DEF_CLONE_CMD_ARG("laggtype", setlaggtype),

Callers

nothing calls this directly

Calls 2

ioctl_ifcreateFunction · 0.85
ioctl_vaFunction · 0.85

Tested by

no test coverage detected