ipv6: add missing tx timestamping on IPPROTO_RAW
authorWillem de Bruijn <willemb@google.com>
Wed, 6 Apr 2022 19:29:54 +0000 (22:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:08:28 +0000 (09:08 +0200)
commita96c57a72f477b42ab238fad3c2c1f8e8c091256
treeb247a9ffc9c21d6ca37bd867560bae5ec2c6a4cf
parent52b66c46bb9f5fb270673327c41dec50171939c1
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: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/raw.c