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: Willem de Bruijn <[email protected]>
Signed-off-by: Chenbo Feng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Chenbo Feng 2017-04-05 19:00:55 -07:00 • committed by David S. Miller
commit 5daab9db7b
14 changed files with 34 additions and 0 deletions

View file

@ -96,4 +96,6 @@
#define SO_INCOMING_NAPI_ID 56
#define SO_COOKIE 57
#endif /* _ASM_M32R_SOCKET_H */