From: Willem de Bruijn Date: Mon, 17 Dec 2018 17:23:59 +0000 (-0500) Subject: ipv6: add missing tx timestamping on IPPROTO_RAW X-Git-Tag: v4.19.99~553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7086d720f4ad124c57ed8a5e165c68f5f4ccd886;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Soheil Hassas Yeganeh Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 4856d93..a41156a 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -660,6 +660,8 @@ static int rawv6_send_hdrinc(struct sock *sk, struct msghdr *msg, int length, skb->ip_summed = CHECKSUM_NONE; + sock_tx_timestamp(sk, sockc->tsflags, &skb_shinfo(skb)->tx_flags); + if (flags & MSG_CONFIRM) skb_set_dst_pending_confirm(skb, 1);