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

Function vxlan_create

tools/ifconfig/ifvxlan.c:210–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static void
211vxlan_create(int s, struct ifreq *ifr)
212{
213
214 vxlan_check_params();
215
216 ifr->ifr_data = (caddr_t) &params;
217#ifndef FSTACK
218 ioctl_ifcreate(s, ifr);
219#else
220 size_t offset = (char *)&(ifr->ifr_data) - (char *)ifr;
221 size_t clen = sizeof(params);
222 ioctl_va(s, SIOCIFCREATE2, ifr, 3, offset, ifr->ifr_data, clen);
223#endif
224}
225
226static
227DECL_CMD_FUNC(setvxlan_vni, arg, d)

Callers

nothing calls this directly

Calls 3

vxlan_check_paramsFunction · 0.85
ioctl_ifcreateFunction · 0.85
ioctl_vaFunction · 0.85

Tested by

no test coverage detected