aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 52d0f6a1ec2c..1edc739b9da5 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -208,6 +208,8 @@ int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
208 inet->inet_dport = usin->sin_port; 208 inet->inet_dport = usin->sin_port;
209 inet->inet_daddr = daddr; 209 inet->inet_daddr = daddr;
210 210
211 inet_set_txhash(sk);
212
211 inet_csk(sk)->icsk_ext_hdr_len = 0; 213 inet_csk(sk)->icsk_ext_hdr_len = 0;
212 if (inet_opt) 214 if (inet_opt)
213 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; 215 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen;
@@ -1334,6 +1336,7 @@ struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
1334 newinet->mc_ttl = ip_hdr(skb)->ttl; 1336 newinet->mc_ttl = ip_hdr(skb)->ttl;
1335 newinet->rcv_tos = ip_hdr(skb)->tos; 1337 newinet->rcv_tos = ip_hdr(skb)->tos;
1336 inet_csk(newsk)->icsk_ext_hdr_len = 0; 1338 inet_csk(newsk)->icsk_ext_hdr_len = 0;
1339 inet_set_txhash(newsk);
1337 if (inet_opt) 1340 if (inet_opt)
1338 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen; 1341 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen;
1339 newinet->inet_id = newtp->write_seq ^ jiffies; 1342 newinet->inet_id = newtp->write_seq ^ jiffies;