Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153471212
D23791.id68674.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
851 B
Referenced Files
None
Subscribers
None
D23791.id68674.diff
View Options
Index: sys/compat/linux/linux_socket.c
===================================================================
--- sys/compat/linux/linux_socket.c
+++ sys/compat/linux/linux_socket.c
@@ -1451,10 +1451,13 @@
name = -1;
break;
}
- if (name == -1)
+ if (name == -1) {
+ linux_msg(curthread,
+ "unsupported setsockopt level %d optname %d",
+ args->level, args->optname);
return (ENOPROTOOPT);
+ }
-
if (name == IPV6_NEXTHOP) {
len = args->optlen;
error = linux_to_bsd_sockaddr(PTRIN(args->optval), &sa, &len);
@@ -1546,8 +1549,12 @@
name = -1;
break;
}
- if (name == -1)
+ if (name == -1) {
+ linux_msg(curthread,
+ "unsupported getsockopt level %d optname %d",
+ args->level, args->optname);
return (EINVAL);
+ }
if (name == IPV6_NEXTHOP) {
error = copyin(PTRIN(args->optlen), &len, sizeof(len));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 8:47 AM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31966027
Default Alt Text
D23791.id68674.diff (851 B)
Attached To
Mode
D23791: Make linuxulator warn about unsupported getsockopt/setsockopt flags.
Attached
Detach File
Event Timeline
Log In to Comment