summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/sockios.h
diff options
context:
space:
mode:
authorBen Hutchings2013-11-14 02:19:29 +0100
committerBen Hutchings2013-11-19 20:07:21 +0100
commitfd468c74bd4d6949736810a80d6ca05eb20fba84 (patch)
treec68b11620237ba704b740827ce952409b5666231 /include/uapi/linux/sockios.h
parentnet/compat: Merge multiple implementations of ifreq::ifr_data conversion (diff)
downloadkernel-qcow2-linux-fd468c74bd4d6949736810a80d6ca05eb20fba84.tar.gz
kernel-qcow2-linux-fd468c74bd4d6949736810a80d6ca05eb20fba84.tar.xz
kernel-qcow2-linux-fd468c74bd4d6949736810a80d6ca05eb20fba84.zip
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>
Diffstat (limited to 'include/uapi/linux/sockios.h')
-rw-r--r--include/uapi/linux/sockios.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/sockios.h b/include/uapi/linux/sockios.h
index 7997a506ad41..e888b1aed69f 100644
--- a/include/uapi/linux/sockios.h
+++ b/include/uapi/linux/sockios.h
@@ -125,7 +125,8 @@
#define SIOCBRDELIF 0x89a3 /* remove interface from bridge */
/* hardware time stamping: parameters in linux/net_tstamp.h */
-#define SIOCSHWTSTAMP 0x89b0
+#define SIOCSHWTSTAMP 0x89b0 /* set and get config */
+#define SIOCGHWTSTAMP 0x89b1 /* get config */
/* Device private ioctl calls */