mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
tcpv6: fix option space offsets with md5
More breakage :-), part of timestamps just were previously overwritten. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db2bf2476b
commit
53b125779f
@ -1088,7 +1088,7 @@ static void tcp_v6_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32
|
|||||||
*topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
|
*topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
|
||||||
(TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP);
|
(TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP);
|
||||||
*topt++ = htonl(tcp_time_stamp);
|
*topt++ = htonl(tcp_time_stamp);
|
||||||
*topt = htonl(ts);
|
*topt++ = htonl(ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_TCP_MD5SIG
|
#ifdef CONFIG_TCP_MD5SIG
|
||||||
|
Loading…
Reference in New Issue
Block a user