net: add sk_fullsock() helper
authorEric Dumazet <edumazet@google.com>
Mon, 16 Mar 2015 04:12:12 +0000 (21:12 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 09:14:07 +0000 (17:14 +0800)
commitd1d2a95cc66a9ac0cdf8d5cd085328c6c4081bbf
tree09155cefce55801020b94ab2f0459df20d9aee71
parent4937dd795284aa1dc848dc378a09a33b747ca684
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
(cherry picked from commit cdab04e3612c55f0906c84c3c05996a0507eab7d)
include/net/sock.h