tcp: introduce TCP_SKB_CB(skb)->tcp_tw_isn
TCP_SKB_CB(skb)->when has different meaning in output and input paths. In output path, it contains a timestamp. In input path, it contains an ISN, chosen by tcp_timewait_state_process() Lets add a different name to ease code comprehension. Note that 'when' field will disappear in following patch, as skb_mstamp already contains timestamp, the anonymous union will promptly disappear as well. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2ba38943ba
commit
04317dafd1
@@ -5906,7 +5906,7 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops,
|
||||
struct request_sock *req;
|
||||
struct tcp_sock *tp = tcp_sk(sk);
|
||||
struct dst_entry *dst = NULL;
|
||||
__u32 isn = TCP_SKB_CB(skb)->when;
|
||||
__u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn;
|
||||
bool want_cookie = false, fastopen;
|
||||
struct flowi fl;
|
||||
struct tcp_fastopen_cookie foc = { .len = -1 };
|
||||
|
||||
Reference in New Issue
Block a user