net: add sk_fullsock() helper lineage-18.0
authorEric Dumazet <edumazet@google.com>
Mon, 16 Mar 2015 04:12:12 +0000 (21:12 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 28 Jul 2020 08:47:02 +0000 (09:47 +0100)
commit1b37e0936815038a348230db69eaf00d2ecf4029
tree9676b8520c106cf125dbb648cdb575c1439a3c3e
parent27adc682bf05227c57f2ce781e075fa701bfe24f
net: add sk_fullsock() helper

We have many places where we want to check if a socket is
not a timewait or request socket. Use a helper to avoid
hard coding this.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[backported from net-next 1d0ab253872cdd3d8e7913f59c266c7fd01771d0]
[lorenzo@google.com: removed TCPF_NEW_SYN_RECV, and added a comment to add it back.]

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Bug: 24163529
Change-Id: Ibf09017e1ab00af5e6925273117c335d7f515d73
include/net/sock.h