diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-15 21:12:13 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-16 15:55:29 -0400 |
commit | f7e4eb03f9d9e2522bdd5107f37f9cf1af0bf0fa (patch) | |
tree | b861e213b81c976dbe2fbae042eeed04aab55007 /net/ipv4/tcp_ipv4.c | |
parent | 1d0ab253872cdd3d8e7913f59c266c7fd01771d0 (diff) | |
download | linux-f7e4eb03f9d9e2522bdd5107f37f9cf1af0bf0fa.tar.gz linux-f7e4eb03f9d9e2522bdd5107f37f9cf1af0bf0fa.tar.bz2 linux-f7e4eb03f9d9e2522bdd5107f37f9cf1af0bf0fa.zip |
inet: ip early demux should avoid request sockets
When a request socket is created, we do not cache ip route
dst entry, like for timewait sockets.
Let's use sk_fullsock() helper.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 1f514a0c5e60..80067d5858b4 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1518,7 +1518,7 @@ void tcp_v4_early_demux(struct sk_buff *skb) if (sk) { skb->sk = sk; skb->destructor = sock_edemux; - if (sk->sk_state != TCP_TIME_WAIT) { + if (sk_fullsock(sk)) { struct dst_entry *dst = sk->sk_rx_dst; if (dst) |