Commit 5daab9db authored by Chenbo Feng's avatar Chenbo Feng Committed by David S. Miller
Browse files

New getsockopt option to get socket cookie

Introduce a new getsockopt operation to retrieve the socket cookie
for a specific socket based on the socket fd.  It returns a unique
non-decreasing cookie for each socket.
Tested: https://android-review.googlesource.com/#/c/358163/



Acked-by: default avatarWillem de Bruijn <willemb@google.com>
Signed-off-by: default avatarChenbo Feng <fengc@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c42cb98c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -103,4 +103,6 @@

#define SO_INCOMING_NAPI_ID	56

#define SO_COOKIE		57

#endif /* _UAPI_ASM_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -96,4 +96,6 @@

#define SO_INCOMING_NAPI_ID	56

#define SO_COOKIE		57

#endif /* _UAPI__ASM_AVR32_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -96,5 +96,7 @@

#define SO_INCOMING_NAPI_ID	56

#define SO_COOKIE		57

#endif /* _ASM_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -105,4 +105,6 @@

#define SO_INCOMING_NAPI_ID	56

#define SO_COOKIE		57

#endif /* _ASM_IA64_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -96,4 +96,6 @@

#define SO_INCOMING_NAPI_ID	56

#define SO_COOKIE		57

#endif /* _ASM_M32R_SOCKET_H */
Loading