diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-03-18 20:33:16 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:04 -0400 |
commit | ae40eb1ef30ab4120bd3c8b7e3da99ee53d27a23 (patch) | |
tree | b5ae288b3c27d13bde9648c41d7db3cfe1884bc2 /net/rose/af_rose.c | |
parent | cb69cc52364690d7789940c480b3a9490784b680 (diff) |
[NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution
Now network timestamps use ktime_t infrastructure, we can add a new
ioctl() SIOCGSTAMPNS command to get timestamps in 'struct timespec'.
User programs can thus access to nanosecond resolution.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
CC: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r-- | net/rose/af_rose.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index f92d5310847b..f64be9369ef7 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -1296,6 +1296,9 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1296 | case SIOCGSTAMP: | 1296 | case SIOCGSTAMP: |
1297 | return sock_get_timestamp(sk, (struct timeval __user *) argp); | 1297 | return sock_get_timestamp(sk, (struct timeval __user *) argp); |
1298 | 1298 | ||
1299 | case SIOCGSTAMPNS: | ||
1300 | return sock_get_timestampns(sk, (struct timespec __user *) argp); | ||
1301 | |||
1299 | case SIOCGIFADDR: | 1302 | case SIOCGIFADDR: |
1300 | case SIOCSIFADDR: | 1303 | case SIOCSIFADDR: |
1301 | case SIOCGIFDSTADDR: | 1304 | case SIOCGIFDSTADDR: |