Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153133946
D34714.id104372.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34714.id104372.diff
View Options
Index: sys/compat/linux/linux_socket.h
===================================================================
--- sys/compat/linux/linux_socket.h
+++ sys/compat/linux/linux_socket.h
@@ -199,6 +199,7 @@
#define LINUX_SO_SNDBUFFORCE 32
#define LINUX_SO_RCVBUFFORCE 33
#define LINUX_SO_PROTOCOL 38
+#define LINUX_SO_DOMAIN 39
#define LINUX_SO_PEERGROUPS 59
/* Socket options */
Index: sys/compat/linux/linux_socket.c
===================================================================
--- sys/compat/linux/linux_socket.c
+++ sys/compat/linux/linux_socket.c
@@ -553,6 +553,8 @@
return (SO_ACCEPTCONN);
case LINUX_SO_PROTOCOL:
return (SO_PROTOCOL);
+ case LINUX_SO_DOMAIN:
+ return (SO_DOMAIN);
}
return (-1);
}
@@ -2008,6 +2010,17 @@
newval = -bsd_to_linux_errno(newval);
return (copyout(&newval, PTRIN(args->optval), len));
/* NOTREACHED */
+ case SO_DOMAIN:
+ len = sizeof(newval);
+ error = kern_getsockopt(td, args->s, level,
+ name, &newval, UIO_SYSSPACE, &len);
+ if (error != 0)
+ return (error);
+ newval = bsd_to_linux_domain(newval);
+ if (newval == -1)
+ return (ENOPROTOOPT);
+ return (copyout(&newval, PTRIN(args->optval), len));
+ /* NOTREACHED */
default:
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 9:46 AM (1 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31808834
Default Alt Text
D34714.id104372.diff (1 KB)
Attached To
Mode
D34714: linux(4): Handle SO_DOMAIN in getsockopt syscall.
Attached
Detach File
Event Timeline
Log In to Comment