]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: record received TOS value in the request socket
authorWei Wang <weiwan@google.com>
Thu, 10 Sep 2020 00:50:46 +0000 (17:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 20:15:40 +0000 (13:15 -0700)
commitdd83a2bad2c0cce6e45cdaeb447710dd0bc3588c
tree7856c1f4c9a95b927f9cac14a7cef33842209cd3
parent78b9d1c48d4204b968af3874908c3d8d65bac958
tcp: record received TOS value in the request socket

A new field is added to the request sock to record the TOS value
received on the listening socket during 3WHS:
When not under syn flood, it is recording the TOS value sent in SYN.
When under syn flood, it is recording the TOS value sent in the ACK.
This is a preparation patch in order to do TOS reflection in the later
commit.

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>
include/linux/tcp.h
net/ipv4/syncookies.c
net/ipv4/tcp_input.c