ipv6: add missing tx timestamping on IPPROTO_RAW
authorWillem de Bruijn <willemb@google.com>
Mon, 17 Dec 2018 17:23:59 +0000 (12:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:05 +0000 (14:50 +0100)
commit7086d720f4ad124c57ed8a5e165c68f5f4ccd886
tree043c76ba753ec66ed19a45d44a39f45976dac4ba
parent4c1bc98da95bee0ead3e25c910475e40503b3166
ipv6: add missing tx timestamping on IPPROTO_RAW

[ Upstream commit fbfb2321e950918b430e7225546296b2dcadf725 ]

Raw sockets support tx timestamping, but one case is missing.

IPPROTO_RAW takes a separate packet construction path. raw_send_hdrinc
has an explicit call to sock_tx_timestamp, but rawv6_send_hdrinc does
not. Add it.

Fixes: 11878b40ed5c ("net-timestamp: SOCK_RAW and PING timestamping")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/raw.c