Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.c
| Show First 20 Lines • Show All 4,648 Lines • ▼ Show 20 Lines | #endif | ||||
| 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 SIOCGIFDOWNREASON: | case SIOCGIFDOWNREASON: | ||||
| CTX_LOCK(ctx); | CTX_LOCK(ctx); | ||||
| err = IFDI_GET_DOWNREASON(ctx, (struct ifdownreason *)data); | err = IFDI_GET_DOWNREASON(ctx, (struct ifdownreason *)data); | ||||
marius: "ifvfs" should be declared at the top of iflib_if_ioctl(), just like its other variables. | |||||
| CTX_UNLOCK(ctx); | |||||
| break; | |||||
| case SIOCGIFVFSTATUS: | |||||
| { | |||||
| struct ifvfstatus *ifvfs; | |||||
| ifvfs = (struct ifvfstatus *)data; | |||||
| if (ifvfs->ifvfs_count < 0) | |||||
| return (EINVAL); | |||||
| CTX_LOCK(ctx); | |||||
| err = IFDI_VFSTAT_IOCTL(ctx, ifvfs); | |||||
| CTX_UNLOCK(ctx); | CTX_UNLOCK(ctx); | ||||
| break; | 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,729 Lines • Show Last 20 Lines | |||||
"ifvfs" should be declared at the top of iflib_if_ioctl(), just like its other variables.