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

Function getvlan

tools/ifconfig/ifvlan.c:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78static int
79getvlan(int s, struct ifreq *ifr, struct vlanreq *vreq)
80{
81 bzero((char *)vreq, sizeof(*vreq));
82 ifr->ifr_data = (caddr_t)vreq;
83
84#ifndef FSTACK
85 return ioctl(s, SIOCGETVLAN, (caddr_t)ifr);
86#else
87 size_t offset = (char *)&(ifr->ifr_data) - (char *)ifr;
88 size_t clen = sizeof(*vreq);
89 return ioctl_va(s, SIOCGETVLAN, (caddr_t)ifr, 3, offset, ifr->ifr_data, clen);
90#endif
91}
92
93static void
94vlan_status(int s)

Callers 2

vlan_statusFunction · 0.85
ifvlan.cFile · 0.85

Calls 3

bzeroFunction · 0.85
ioctl_vaFunction · 0.85
ioctlFunction · 0.50

Tested by

no test coverage detected