ioctl_ctx
if (ioctl_ctx(ctx, SIOCGIFPSRCADDR, (caddr_t)&ifr) < 0)
if (ioctl_ctx(ctx, SIOCGIFPDSTADDR, (caddr_t)&ifr) < 0)
if (ioctl_ctx(ctx, SIOCSIFPHYADDR, &addreq) < 0)
if (ioctl_ctx(ctx, SIOCGIFPSRCADDR_IN6, (caddr_t)&in6_ifr) < 0)
if (ioctl_ctx(ctx, SIOCGIFPDSTADDR_IN6, (caddr_t)&in6_ifr) < 0)
if (ioctl_ctx(ctx, SIOCSIFPHYADDR_IN6, &in6_req) < 0)
error = ioctl_ctx(ctx, SIOCSDEFIFACE_IN6, (caddr_t)&ndifreq);
error = ioctl_ctx(ctx, SIOCGIFINFO_IN6, &nd);
error = ioctl_ctx(ctx, SIOCSIFINFO_IN6, (caddr_t)&nd);
return (ioctl_ctx(ctx, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));
if (ioctl_ctx(ctx, action, req) == 0)
if (ioctl_ctx(ctx, SIOCSIFCAP, &ifr) < 0)
if (ioctl_ctx(ctx, SIOCSIFCAP, &ifr) < 0)
if (ioctl_ctx(ctx, SIOCSIFCAPNV, (caddr_t)&ifr) < 0)
if (ioctl_ctx(ctx, SIOCSIFNAME, (caddr_t)&ifr) < 0) {
if (ioctl_ctx(ctx, SIOCGIFCAP, (caddr_t)&ifr) != 0)
if (ioctl_ctx(ctx, SIOCGIFSTATUS, &ifs) == 0)
if (ioctl_ctx(ctx, SIOCGIFDESCR, &ifr) == 0) {
return (ioctl_ctx(ctx, cmd, ifr));
if (ioctl_ctx(ctx, SIOCGIFFIB, (caddr_t)&ifr) == 0 &&
if (ioctl_ctx(ctx, SIOCGTUNFIB, (caddr_t)&ifr) == 0 &&
if (ioctl_ctx(ctx, GIFSOPTS, &ifr) == -1) {
if (ioctl_ctx(ctx, GRESOPTS, &ifr) == -1) {
if (ioctl_ctx(ctx, SIOCAIFGROUP, (caddr_t)&ifgr) == -1 && errno != EEXIST)
if (ioctl_ctx(ctx, SIOCDIFGROUP, (caddr_t)&ifgr) == -1 && errno != ENOENT)
if (ioctl_ctx(ctx, SIOCS80211, &ireq) == 0) {
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0) {
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0) {
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0)
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0)
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0)
if (ioctl_ctx(ctx, SIOCGIFMEDIA, (caddr_t)&ifmr) >= 0) {
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0)
if (ioctl_ctx(ctx, SIOCG80211, &ireq) < 0)
if (ioctl_ctx(ctx, SIOCSLAGGOPTS, &ro) != 0)
if (ioctl_ctx(ctx, SIOCSLAGGOPTS, &ro) != 0)
if (ioctl_ctx(ctx, SIOCSLAGGOPTS, &ro) != 0)
if (ioctl_ctx(ctx, SIOCSLAGGHASH, &rf))
if (ioctl_ctx(ctx, SIOCSLAGGPORT, &rp) && errno != EEXIST) {
if (ioctl_ctx(ctx, SIOCSLAGGDELPORT, &rp))
if (ioctl_ctx(ctx, SIOCSLAGG, &ra) != 0)
if (ioctl_ctx(ctx, SIOCGIFMAC, &ifr) == -1)
return (ioctl_ctx(ctx, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));
if (ioctl_ctx(ctx, SIOCSETVLAN, (caddr_t)&ifr) == -1)
return (ioctl_ctx(ctx, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));