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/
Showing the changes to include/uapi (1 of 14 files). Show all
Unified · Split
| @@ -98,4 +98,6 @@ · 97 unmodified lines | ||
| 98 | 98 | |
| 99 | 99 | #define SO_INCOMING_NAPI_ID 56 |
| 100 | 100 | |
| 101 | +#define SO_COOKIE 57 | |
| 102 | + | |
| 101 | 103 | #endif /* __ASM_GENERIC_SOCKET_H */ |