-/* $OpenBSD: sys_socket.c,v 1.55 2022/11/08 11:25:01 kn Exp $ */
+/* $OpenBSD: sys_socket.c,v 1.56 2022/11/19 14:26:39 kn Exp $ */
/* $NetBSD: sys_socket.c,v 1.13 1995/08/12 23:59:09 mycroft Exp $ */
/*
}
if (IOCGROUP(cmd) == 'r')
return (EOPNOTSUPP);
- KERNEL_LOCK();
error = pru_control(so, cmd, data, NULL);
- KERNEL_UNLOCK();
break;
}
-/* $OpenBSD: in.c,v 1.177 2022/09/08 10:22:06 kn Exp $ */
+/* $OpenBSD: in.c,v 1.178 2022/11/19 14:26:40 kn Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
#ifdef MROUTING
case SIOCGETVIFCNT:
case SIOCGETSGCNT:
+ KERNEL_LOCK();
error = mrt_ioctl(so, cmd, data);
+ KERNEL_UNLOCK();
break;
#endif /* MROUTING */
default:
+ KERNEL_LOCK();
error = in_ioctl(cmd, data, ifp, privileged);
+ KERNEL_UNLOCK();
break;
}
-/* $OpenBSD: in6.c,v 1.250 2022/11/12 16:36:07 kn Exp $ */
+/* $OpenBSD: in6.c,v 1.251 2022/11/19 14:26:40 kn Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
#ifdef MROUTING
case SIOCGETSGCNT_IN6:
case SIOCGETMIFCNT_IN6:
+ KERNEL_LOCK();
error = mrt6_ioctl(so, cmd, data);
+ KERNEL_UNLOCK();
break;
#endif /* MROUTING */
default:
+ KERNEL_LOCK();
error = in6_ioctl(cmd, data, ifp, privileged);
+ KERNEL_UNLOCK();
break;
}