Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fe100ef authored by Chenbo Feng's avatar Chenbo Feng
Browse files

BACKPORT [FROMLIST] New getsockopt option to get socket cookie

Cherry-pick from linux net-next branch commit
http://patchwork.ozlabs.org/patch/747590/

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/



Test: Unit test added in kernel/tests

Acked-by: default avatarWillem de Bruijn <willemb@google.com>
Signed-off-by: default avatarChenbo Feng <fengc@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5d371cd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -97,4 +97,6 @@

#define SO_CNX_ADVICE		53

#define SO_COOKIE		57

#endif /* _UAPI_ASM_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -90,4 +90,6 @@

#define SO_CNX_ADVICE		53

#define SO_COOKIE		57

#endif /* _UAPI__ASM_AVR32_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -90,5 +90,7 @@

#define SO_CNX_ADVICE		53

#define SO_COOKIE		57

#endif /* _ASM_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -99,4 +99,6 @@

#define SO_CNX_ADVICE		53

#define SO_COOKIE		57

#endif /* _ASM_IA64_SOCKET_H */
+2 −0
Original line number Diff line number Diff line
@@ -90,4 +90,6 @@

#define SO_CNX_ADVICE		53

#define SO_COOKIE		57

#endif /* _ASM_M32R_SOCKET_H */
Loading