summaryrefslogtreecommitdiff
path: root/include
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
parent850a545bd8a41648445bfc5541afe36ca105b0b8 (diff)
downloadlinux-3.10-4dc360c5e7e155373bffbb3c1f7ea0022dee650c.tar.gz
linux-3.10-4dc360c5e7e155373bffbb3c1f7ea0022dee650c.tar.bz2
linux-3.10-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')
-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 3df0984cd0d..ae5df122e42 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,