summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2017-04-06 05:00:55 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-08 18:07:01 +0300
commit5daab9db7b65df87da26fd8cfa695fb9546a1ddb (patch)
tree92c586ee206c95658ffd47df5c8fd33fa85b64a3 /include/uapi/asm-generic
parentc42cb98cfd18dc66b099f4d4a310e12ac8957630 (diff)
downloadlinux-5daab9db7b65df87da26fd8cfa695fb9546a1ddb.tar.xz
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 'include/uapi/asm-generic')
-rw-r--r--include/uapi/asm-generic/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/socket.h b/include/uapi/asm-generic/socket.h
index c98a52fb572a..2b488565599d 100644
--- a/include/uapi/asm-generic/socket.h
+++ b/include/uapi/asm-generic/socket.h
@@ -98,4 +98,6 @@
#define SO_INCOMING_NAPI_ID 56
+#define SO_COOKIE 57
+
#endif /* __ASM_GENERIC_SOCKET_H */