Commit 0d6038ee authored by Jan Engelhardt's avatar Jan Engelhardt Committed by David S. Miller
Browse files

net: implement a SO_DOMAIN getsockoption



This sockopt goes in line with SO_TYPE and SO_PROTOCOL. It makes it
possible for userspace programs to pass around file descriptors — I
am referring to arguments-to-functions, but it may even work for the
fd passing over UNIX sockets — without needing to also pass the
auxiliary information (PF_INET6/IPPROTO_TCP).

Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49c794e9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#define	SO_SNDTIMEO	0x1013
#define SO_ACCEPTCONN	0x1014
#define SO_PROTOCOL	0x1028
#define SO_DOMAIN	0x1029

/* linux-specific, might as well be the same as on i386 */
#define SO_NO_CHECK	11
+1 −0
Original line number Diff line number Diff line
@@ -58,5 +58,6 @@
#define SCM_TIMESTAMPING	SO_TIMESTAMPING

#define SO_PROTOCOL		38
#define SO_DOMAIN		39

#endif /* _ASM_SOCKET_H */
+1 −0
Original line number Diff line number Diff line
@@ -58,5 +58,6 @@
#define SCM_TIMESTAMPING	SO_TIMESTAMPING

#define SO_PROTOCOL		38
#define SO_DOMAIN		39

#endif /* __ASM_AVR32_SOCKET_H */
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@
#define SCM_TIMESTAMPING	SO_TIMESTAMPING

#define SO_PROTOCOL		38
#define SO_DOMAIN		39

#endif /* _ASM_SOCKET_H */

+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@
#define SCM_TIMESTAMPING	SO_TIMESTAMPING

#define SO_PROTOCOL		38
#define SO_DOMAIN		39

#endif /* _ASM_SOCKET_H */
Loading