ipv4: tcp: fix ACK/RST sent with a transmit delay
authorEric Dumazet <edumazet@google.com>
Fri, 14 Jun 2019 04:22:35 +0000 (21:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:51:12 +0000 (19:51 -0700)
commitd6fb396cfaa71afc9f38d573b8ec6409fe3716de
tree81f13c19c7e214129cb08ef7301b4941f435b52f
parent3e18943333404b03d17fc4a008da7c3676523f05
ipv4: tcp: fix ACK/RST sent with a transmit delay

If we want to set a EDT time for the skb we want to send
via ip_send_unicast_reply(), we have to pass a new parameter
and initialize ipc.sockc.transmit_time with it.

This fixes the EDT time for ACK/RST packets sent on behalf of
a TIME_WAIT socket.

Fixes: a842fe1425cb ("tcp: add optional per socket transmit delay")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/tcp.h
net/ipv4/ip_output.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c