aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2018-12-17 12:23:59 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-17 23:27:00 -0800
commitfbfb2321e950918b430e7225546296b2dcadf725 (patch)
treeef3d863e460ae88547724fc2f9f1024aae7bc1a7 /net/ipv6/raw.c
parentMAINTAINERS: change my email address (diff)
downloadlinux-dev-fbfb2321e950918b430e7225546296b2dcadf725.tar.xz
linux-dev-fbfb2321e950918b430e7225546296b2dcadf725.zip
ipv6: add missing tx timestamping on IPPROTO_RAW
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>
Diffstat (limited to '')
-rw-r--r--net/ipv6/raw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 5e0efd3954e9..c8562432fcc3 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -658,6 +658,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);