net: add sk_fullsock() helper
authorEric Dumazet <edumazet@google.com>
Mon, 16 Mar 2015 04:12:12 +0000 (21:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 19:55:28 +0000 (15:55 -0400)
commit1d0ab253872cdd3d8e7913f59c266c7fd01771d0
treecc2d3e7f9017862044066bb8fa458944c05c4ff3
parentf00bbd219caa7b3cc3a51b5ce551d1bd56f19662
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>
include/net/sock.h