From 04bb988275ac76815a15788a7fc75ac78f3bb833 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 27 Feb 2011 23:41:10 +0100 Subject: libxtables: XTTYPE_UINT32RC support Signed-off-by: Jan Engelhardt --- include/xtables.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/xtables.h.in') 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; }; -- cgit v1.2.3