diff options
author | KOVACS Krisztian <hidden@sch.bme.hu> | 2008-10-20 10:35:58 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-20 10:35:58 +0400 |
commit | fd5070370c74c32b7a98090eabb46c53baf41733 (patch) | |
tree | 092e6455cfc71285ca634331b81ffff8c03c4413 /net/ipv6/syncookies.c | |
parent | 92845ffd2a221f9f90b064ac55bb010bf27a193f (diff) | |
download | linux-fd5070370c74c32b7a98090eabb46c53baf41733.tar.xz |
tcp: Fix IPv6 fallout from 'Port redirection support for TCP'
'tcp: Port redirection support for TCP' (a3116ac5c) added a new member
to inet_request_sock() which inet_csk_clone() makes use of but failed
to add proper initialization to the IPv6 syncookie code and missed a
couple of places where the new member should be used instead of
inet_sk(sk)->sport.
Signed-off-by: KOVACS Krisztian <hidden@sch.bme.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/syncookies.c')
-rw-r--r-- | net/ipv6/syncookies.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index ec394cf5a19b..676c80b5b14b 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c @@ -204,6 +204,7 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb) req->mss = mss; ireq->rmt_port = th->source; + ireq->loc_port = th->dest; ipv6_addr_copy(&ireq6->rmt_addr, &ipv6_hdr(skb)->saddr); ipv6_addr_copy(&ireq6->loc_addr, &ipv6_hdr(skb)->daddr); if (ipv6_opt_accepted(sk, skb) || |