mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ip: support for TX timestamps on UDP and RAW sockets
Instructions for time stamping outgoing packets are take from the socket layer and later copied into the new skb. Signed-off-by: Patrick Ohly <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
20d4947353
commit
51f31cabe3
7 changed files with 19 additions and 0 deletions
|
|
@ -646,6 +646,9 @@ static int raw_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|||
goto put_dev;
|
||||
|
||||
err = memcpy_fromiovec(skb_put(skb, size), msg->msg_iov, size);
|
||||
if (err < 0)
|
||||
goto free_skb;
|
||||
err = sock_tx_timestamp(msg, sk, skb_tx(skb));
|
||||
if (err < 0)
|
||||
goto free_skb;
|
||||
skb->dev = dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue