From 5ad5cf507910a87188e53f94cb046d6faa0de2bb Mon Sep 17 00:00:00 2001 From: Alvin Chen Date: Thu, 17 Aug 2023 22:57:16 +0300 Subject: [PATCH] linux(4): Be verbose about unsupported ioctl commands on ifreq ioctl Differential revision: https://reviews.freebsd.org/D39786 MFC after: 1 month --- sys/compat/linux/linux_ioctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 3b2727afd17..413d761520d 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -2289,6 +2289,9 @@ linux_ioctl_socket_ifreq(struct thread *td, int fd, u_int cmd, cmd = SIOCGPRIVATE_1; break; default: + LINUX_RATELIMIT_MSG_OPT2( + "ioctl_socket_ifreq fd=%d, cmd=0x%x is not implemented", + fd, cmd); return (ENOIOCTL); }