net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 14 Nov 2013 01:19:29 +0000 (01:19 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 19 Nov 2013 19:07:21 +0000 (19:07 +0000)
commitfd468c74bd4d6949736810a80d6ca05eb20fba84
treec68b11620237ba704b740827ce952409b5666231
parent590d4693fb1c96ce441d11c6d1acb413a90b62e5
net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP

SIOCSHWTSTAMP returns the real configuration to the application
using it, but there is currently no way for any other
application to find out the configuration non-destructively.
Add a new ioctl for this, making it unprivileged.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Documentation/networking/timestamping.txt
include/uapi/linux/net_tstamp.h
include/uapi/linux/sockios.h
net/core/dev_ioctl.c
net/socket.c