diff options
author | Chenbo Feng <fengc@google.com> | 2017-04-05 19:00:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-08 08:07:01 -0700 |
commit | 5daab9db7b65df87da26fd8cfa695fb9546a1ddb (patch) | |
tree | 92c586ee206c95658ffd47df5c8fd33fa85b64a3 /arch/sparc/include | |
parent | c42cb98cfd18dc66b099f4d4a310e12ac8957630 (diff) | |
download | linux-5daab9db7b65df87da26fd8cfa695fb9546a1ddb.tar.bz2 |
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 <willemb@google.com>
Signed-off-by: Chenbo Feng <fengc@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/uapi/asm/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/uapi/asm/socket.h b/arch/sparc/include/uapi/asm/socket.h index b05513acd589..3f4ad19d9ec7 100644 --- a/arch/sparc/include/uapi/asm/socket.h +++ b/arch/sparc/include/uapi/asm/socket.h @@ -92,6 +92,8 @@ #define SO_INCOMING_NAPI_ID 0x003a +#define SO_COOKIE 0x003b + /* Security levels - as per NRL IPv6 - don't actually do anything */ #define SO_SECURITY_AUTHENTICATION 0x5001 #define SO_SECURITY_ENCRYPTION_TRANSPORT 0x5002 |