New getsockopt option to get socket cookie
authorChenbo Feng <fengc@google.com>
Thu, 6 Apr 2017 02:00:55 +0000 (19:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Apr 2017 15:07:01 +0000 (08:07 -0700)
commit5daab9db7b65df87da26fd8cfa695fb9546a1ddb
tree92c586ee206c95658ffd47df5c8fd33fa85b64a3
parentc42cb98cfd18dc66b099f4d4a310e12ac8957630
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>
14 files changed:
arch/alpha/include/uapi/asm/socket.h
arch/avr32/include/uapi/asm/socket.h
arch/frv/include/uapi/asm/socket.h
arch/ia64/include/uapi/asm/socket.h
arch/m32r/include/uapi/asm/socket.h
arch/mips/include/uapi/asm/socket.h
arch/mn10300/include/uapi/asm/socket.h
arch/parisc/include/uapi/asm/socket.h
arch/powerpc/include/uapi/asm/socket.h
arch/s390/include/uapi/asm/socket.h
arch/sparc/include/uapi/asm/socket.h
arch/xtensa/include/uapi/asm/socket.h
include/uapi/asm-generic/socket.h
net/core/sock.c