summaryrefslogtreecommitdiffstats
path: root/include/linux/tcp.h
diff options
context:
space:
mode:
authorWei Wang <weiwan@google.com>2020-09-09 17:50:46 -0700
committerDavid S. Miller <davem@davemloft.net>2020-09-10 13:15:40 -0700
commite9b12edc133b54e15ecd105620d51fb8e8fa8bde (patch)
tree7856c1f4c9a95b927f9cac14a7cef33842209cd3 /include/linux/tcp.h
parent3a8c4ad161d48d9674a340f2dea916ae560c3e9d (diff)
downloadlinux-e9b12edc133b54e15ecd105620d51fb8e8fa8bde.tar.gz
linux-e9b12edc133b54e15ecd105620d51fb8e8fa8bde.tar.bz2
linux-e9b12edc133b54e15ecd105620d51fb8e8fa8bde.zip
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>
Diffstat (limited to 'include/linux/tcp.h')
-rw-r--r--include/linux/tcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h
index 56ff2952edaf..2f87377e9af7 100644
--- a/include/linux/tcp.h
+++ b/include/linux/tcp.h
@@ -134,6 +134,7 @@ struct tcp_request_sock {
* FastOpen it's the seq#
* after data-in-SYN.
*/
+ u8 syn_tos;
};
static inline struct tcp_request_sock *tcp_rsk(const struct request_sock *req)