summaryrefslogtreecommitdiffstats
path: root/include/xtables.h.in
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2011-04-13 13:38:20 +0200
committerPatrick McHardy <kaber@trash.net>2011-04-13 13:38:20 +0200
commit316ae9d2f1996caea4cf221201accb8c2087a154 (patch)
treecc0f2f89f0c41a5523af6f49e90e55892b7b680c /include/xtables.h.in
parentcd50f26ad6016ae57af1f822f8aa3ceb2ef9727a (diff)
parent4f7f187ffe1773487071b413491f062d141309dd (diff)
Merge branch 'opts' of git://dev.medozas.de/iptables
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r--include/xtables.h.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in
index 3bdf7248..b4915c41 100644
--- a/include/xtables.h.in
+++ b/include/xtables.h.in
@@ -48,10 +48,15 @@ struct in_addr;
/**
* %XTTYPE_NONE: option takes no argument
* %XTTYPE_UINT*: standard integer
+ * %XTTYPE_UINT*RC: colon-separated range of standard integers
+ * %XTTYPE_STRING: arbitrary string
*/
enum xt_option_type {
XTTYPE_NONE,
+ XTTYPE_UINT8,
XTTYPE_UINT32,
+ XTTYPE_UINT32RC,
+ XTTYPE_STRING,
};
/**
@@ -95,6 +100,7 @@ struct xt_option_entry {
* @data: per-extension data block
* @xflags: options of the extension that have been used
* @invert: whether option was used with !
+ * @nvals: number of results in uXX_multi
* @val: parsed result
*/
struct xt_option_call {
@@ -103,8 +109,10 @@ struct xt_option_call {
void *data;
unsigned int xflags;
bool invert;
+ uint8_t nvals;
union {
- uint32_t u32;
+ uint8_t u8;
+ uint32_t u32, u32_range[2];
} val;
};