aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorWei Wang <weiwan@google.com>2020-09-09 17:50:47 -0700
committerDavid S. Miller <davem@davemloft.net>2020-09-10 13:15:40 -0700
commitde033b7d1568a8f1252055c96cdd99954d5450c4 (patch)
tree1c323222ce4d114d6ac3f9689cf5decfb916f06b /net/ipv4/tcp_ipv4.c
parenttcp: record received TOS value in the request socket (diff)
downloadlinux-dev-de033b7d1568a8f1252055c96cdd99954d5450c4.tar.xz
linux-dev-de033b7d1568a8f1252055c96cdd99954d5450c4.zip
ip: pass tos into ip_build_and_send_pkt()
This commit adds tos as a new passed in parameter to ip_build_and_send_pkt() which will be used in the later commit. This is a pure restructure and does not have any functional change. Signed-off-by: Wei Wang <weiwan@google.com> 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index af27cfa9d8d3..c4c7ad4c8b5a 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -985,7 +985,8 @@ static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst,
rcu_read_lock();
err = ip_build_and_send_pkt(skb, sk, ireq->ir_loc_addr,
ireq->ir_rmt_addr,
- rcu_dereference(ireq->ireq_opt));
+ rcu_dereference(ireq->ireq_opt),
+ inet_sk(sk)->tos);
rcu_read_unlock();
err = net_xmit_eval(err);
}