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

Function ioctl_ifcreate

tools/ifconfig/ifconfig.c:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void
259ioctl_ifcreate(int s, struct ifreq *ifr)
260{
261 if (ioctl(s, SIOCIFCREATE2, ifr) < 0) {
262 switch (errno) {
263 case EEXIST:
264 errx(1, "interface %s already exists", ifr->ifr_name);
265 default:
266 err(1, "SIOCIFCREATE2");
267 }
268 }
269}
270
271#define ORDERS_SIZE(x) sizeof(x) / sizeof(x[0])
272

Callers 5

wlan_createFunction · 0.85
ifclonecreateFunction · 0.85
lagg_createFunction · 0.85
vlan_createFunction · 0.85
vxlan_createFunction · 0.85

Calls 1

ioctlFunction · 0.50

Tested by

no test coverage detected