summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-07-07 22:38:30 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-10 22:18:17 -0700
commitd3c3f4243e135b3d8c41d98be0cb2f54a4141abf (patch)
tree082b4108551892eecffa8ce9dab555827540183d /include/linux/netfilter_ipv4
parent3569b621ceba0a9cfb80e24c0bd19fd632ccee25 (diff)
downloadlinux-stable-d3c3f4243e135b3d8c41d98be0cb2f54a4141abf.tar.gz
linux-stable-d3c3f4243e135b3d8c41d98be0cb2f54a4141abf.tar.bz2
linux-stable-d3c3f4243e135b3d8c41d98be0cb2f54a4141abf.zip
[NETFILTER]: ipt_CLUSTERIP: add compat code
Adjust structure size and don't expect pointers passed in from userspace to be valid. Also replace an enum in an ABI structure by a fixed size type. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter_ipv4')
-rw-r--r--include/linux/netfilter_ipv4/ipt_CLUSTERIP.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h b/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
index d9bceedfb3dc..daf50be22c9d 100644
--- a/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
+++ b/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
@@ -18,13 +18,13 @@ struct clusterip_config;
struct ipt_clusterip_tgt_info {
u_int32_t flags;
-
+
/* only relevant for new ones */
u_int8_t clustermac[6];
u_int16_t num_total_nodes;
u_int16_t num_local_nodes;
u_int16_t local_nodes[CLUSTERIP_MAX_NODES];
- enum clusterip_hashmode hash_mode;
+ u_int32_t hash_mode;
u_int32_t hash_initval;
struct clusterip_config *config;