aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/net_tstamp.h
diff options
context:
space:
mode:
authorRichard Cochran <richard.cochran@omicron.at>2011-10-19 17:00:35 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-19 17:00:35 -0400
commit4dc360c5e7e155373bffbb3c1f7ea0022dee650c (patch)
tree626d89398ae24a6995acb1b179d8cbed39199263 /include/linux/net_tstamp.h
parentnet: Move rcu_barrier from rollback_registered_many to netdev_run_todo. (diff)
downloadlinux-dev-4dc360c5e7e155373bffbb3c1f7ea0022dee650c.tar.xz
linux-dev-4dc360c5e7e155373bffbb3c1f7ea0022dee650c.zip
net: validate HWTSTAMP ioctl parameters
This patch adds a sanity check on the values provided by user space for the hardware time stamping configuration. If the values lie outside of the absolute limits, then the ioctl request will be denied. Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/net_tstamp.h')
-rw-r--r--include/linux/net_tstamp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/net_tstamp.h b/include/linux/net_tstamp.h
index 3df0984cd0d5..ae5df122e42f 100644
--- a/include/linux/net_tstamp.h
+++ b/include/linux/net_tstamp.h
@@ -45,7 +45,7 @@ struct hwtstamp_config {
};
/* possible values for hwtstamp_config->tx_type */
-enum {
+enum hwtstamp_tx_types {
/*
* No outgoing packet will need hardware time stamping;
* should a packet arrive which asks for it, no hardware
@@ -72,7 +72,7 @@ enum {
};
/* possible values for hwtstamp_config->rx_filter */
-enum {
+enum hwtstamp_rx_filters {
/* time stamp no incoming packet at all */
HWTSTAMP_FILTER_NONE,