Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/sys_socket.c
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | default: | ||||
* Interface/routing/protocol specific ioctls: interface and | * Interface/routing/protocol specific ioctls: interface and | ||||
* routing ioctls should have a different entry since a | * routing ioctls should have a different entry since a | ||||
* socket is unnecessary. | * socket is unnecessary. | ||||
*/ | */ | ||||
if (IOCGROUP(cmd) == 'i') | if (IOCGROUP(cmd) == 'i') | ||||
error = ifioctl(so, cmd, data, td); | error = ifioctl(so, cmd, data, td); | ||||
else if (IOCGROUP(cmd) == 'r') { | else if (IOCGROUP(cmd) == 'r') { | ||||
CURVNET_SET(so->so_vnet); | CURVNET_SET(so->so_vnet); | ||||
error = rtioctl_fib(cmd, data, so->so_fibnum); | error = rtioctl_fib(cmd, data, so->so_fibnum, td); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
} else { | } else { | ||||
CURVNET_SET(so->so_vnet); | CURVNET_SET(so->so_vnet); | ||||
error = ((*so->so_proto->pr_usrreqs->pru_control) | error = ((*so->so_proto->pr_usrreqs->pru_control) | ||||
(so, cmd, data, 0, td)); | (so, cmd, data, 0, td)); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
} | } | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines |