Re: [PATCH] AF_UNIX: Implement SO_TIMESTAMP and SO_TIMETAMPNS onUnix sockets

From: Eric Dumazet
Date: Mon Oct 04 2010 - 15:21:05 EST


Le lundi 04 octobre 2010 Ã 19:48 +0100, Alban Crequy a Ãcrit :
> Userspace applications can already request to receive timestamps with:
> setsockopt(sockfd, SOL_SOCKET, SO_TIMESTAMP, ...)
>
> Although setsockopt() returns zero (success), timestamps are not added to the
> ancillary data. This patch fixes that on SOCK_DGRAM and SOCK_SEQPACKET Unix
> sockets.
>
> Signed-off-by: Alban Crequy <alban.crequy@xxxxxxxxxxxxxxx>

Signed-off-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>

Note: tstamp is sampled at the time of skb queueing, _after_ eventual
sleep in sock_alloc_send_skb() or memcpy_fromiovec()



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/