Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.c
Show First 20 Lines • Show All 4,211 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
case SIOCGPRIVATE_0: | case SIOCGPRIVATE_0: | ||||
case SIOCSDRVSPEC: | case SIOCSDRVSPEC: | ||||
case SIOCGDRVSPEC: | case SIOCGDRVSPEC: | ||||
CTX_LOCK(ctx); | CTX_LOCK(ctx); | ||||
err = IFDI_PRIV_IOCTL(ctx, command, data); | err = IFDI_PRIV_IOCTL(ctx, command, data); | ||||
CTX_UNLOCK(ctx); | CTX_UNLOCK(ctx); | ||||
break; | break; | ||||
case SIOCGIFVFSTATUS: | |||||
{ | |||||
struct ifvfstatus *ifvfs = (struct ifvfstatus *)data; | |||||
marius: "ifvfs" should be declared at the top of iflib_if_ioctl(), just like its other variables. | |||||
if (ifvfs->ifvfs_count < 0) | |||||
return (EINVAL); | |||||
CTX_LOCK(ctx); | |||||
err = IFDI_VFSTAT_IOCTL(ctx, ifvfs); | |||||
CTX_UNLOCK(ctx); | |||||
break; | |||||
} | |||||
default: | default: | ||||
err = ether_ioctl(ifp, command, data); | err = ether_ioctl(ifp, command, data); | ||||
break; | break; | ||||
} | } | ||||
if (reinit) | if (reinit) | ||||
iflib_if_init(ctx); | iflib_if_init(ctx); | ||||
return (err); | return (err); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,345 Lines • Show Last 20 Lines |
"ifvfs" should be declared at the top of iflib_if_ioctl(), just like its other variables.