Eric Dumazet 92f37fd2ee [NET]: Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support
Now that network timestamps use ktime_t infrastructure, we can add a new
SOL_SOCKET sockopt  SO_TIMESTAMPNS.

This command is similar to SO_TIMESTAMP, but permits transmission of
a 'timespec struct' instead of a 'timeval struct' control message.
(nanosecond resolution instead of microsecond)

Control message is labelled SCM_TIMESTAMPNS instead of SCM_TIMESTAMP

A socket cannot mix SO_TIMESTAMP and SO_TIMESTAMPNS : the two modes are
mutually exclusive.

sock_recv_timestamp() became too big to be fully inlined so I added a
__sock_recv_timestamp() helper function.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
CC: linux-arch@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:24:21 -07:00
..
2006-01-09 14:49:54 +11:00
2005-09-28 15:42:53 +10:00
2007-02-07 14:03:19 +11:00
2006-11-01 14:52:48 +11:00
2006-12-04 20:39:30 +11:00
2007-02-16 14:00:19 +11:00
2007-01-30 08:39:21 -08:00
2007-03-14 15:27:50 -07:00
2007-02-07 14:03:22 +11:00
2007-01-24 21:13:59 +11:00
2006-12-04 20:40:44 +11:00
2006-02-15 15:32:22 -08:00
2007-02-07 14:03:21 +11:00
2006-12-11 16:35:07 +11:00
2007-02-07 14:03:19 +11:00
2006-07-03 15:27:00 -07:00
2006-12-07 08:39:25 -08:00
2006-09-26 08:48:51 -07:00
2006-06-30 18:20:44 +02:00
2007-02-16 14:00:19 +11:00
2007-01-11 18:18:22 -08:00
2006-11-13 14:44:58 +11:00
2007-02-16 14:00:19 +11:00
2007-02-12 09:48:44 -08:00
2007-02-07 14:03:22 +11:00
2005-10-31 13:37:12 +11:00
2005-11-03 16:24:25 +11:00
2007-02-07 14:03:21 +11:00
2006-12-04 20:40:52 +11:00
2007-03-10 00:07:50 +01:00
2007-03-10 00:07:50 +01:00
2005-11-03 16:02:23 +11:00
2006-03-25 09:41:40 -08:00
2006-12-08 08:28:57 -08:00
2006-10-25 11:54:18 +10:00
2007-03-05 07:57:51 -08:00
2005-11-03 16:59:17 +11:00
2007-03-12 15:48:35 +11:00