diff options
author | Patrick McHardy <kaber@trash.net> | 2010-08-03 17:21:18 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-08-03 17:21:18 +0200 |
commit | a653f2936c56bfc541f13a7888484d5ae21c057a (patch) | |
tree | 6cd810640b26d9c3c330c4538424edbcc5570285 /extensions/libxt_cluster.c | |
parent | d8b511ed36f00280dd141e59c08874c7fb116504 (diff) | |
parent | 422342e47c18e70757231f2210b13df8e1f5931c (diff) |
Merge branch 'iptables-next'
Diffstat (limited to 'extensions/libxt_cluster.c')
-rw-r--r-- | extensions/libxt_cluster.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/libxt_cluster.c b/extensions/libxt_cluster.c index ea5d9fb4..15910455 100644 --- a/extensions/libxt_cluster.c +++ b/extensions/libxt_cluster.c @@ -5,6 +5,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -38,11 +39,11 @@ enum { }; static const struct option cluster_opts[] = { - { "cluster-total-nodes", 1, NULL, CLUSTER_OPT_TOTAL_NODES }, - { "cluster-local-node", 1, NULL, CLUSTER_OPT_LOCAL_NODE }, - { "cluster-local-nodemask", 1, NULL, CLUSTER_OPT_NODE_MASK }, - { "cluster-hash-seed", 1, NULL, CLUSTER_OPT_HASH_SEED }, - { .name = NULL } + {.name = "cluster-total-nodes", .has_arg = true, .val = CLUSTER_OPT_TOTAL_NODES}, + {.name = "cluster-local-node", .has_arg = true, .val = CLUSTER_OPT_LOCAL_NODE}, + {.name = "cluster-local-nodemask", .has_arg = true, .val = CLUSTER_OPT_NODE_MASK}, + {.name = "cluster-hash-seed", .has_arg = true, .val = CLUSTER_OPT_HASH_SEED}, + XT_GETOPT_TABLEEND, }; static int |