diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-27 23:41:10 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-04-06 13:12:55 +0200 |
commit | 04bb988275ac76815a15788a7fc75ac78f3bb833 (patch) | |
tree | 16f1a9c97fb11dc2bca2fe3c73bbeb19db8542f8 /include | |
parent | dba0839a103fe0384b41a8f08a3b3a5f9eba732b (diff) |
libxtables: XTTYPE_UINT32RC support
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index dc074bc0..3e596e0c 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -48,11 +48,13 @@ struct in_addr; /** * %XTTYPE_NONE: option takes no argument * %XTTYPE_UINT*: standard integer + * %XTTYPE_UINT*RC: colon-separated range of standard integers */ enum xt_option_type { XTTYPE_NONE, XTTYPE_UINT8, XTTYPE_UINT32, + XTTYPE_UINT32RC, }; /** @@ -96,6 +98,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 { @@ -104,9 +107,10 @@ struct xt_option_call { void *data; unsigned int xflags; bool invert; + uint8_t nvals; union { uint8_t u8; - uint32_t u32; + uint32_t u32, u32_range[2]; } val; }; |