diff options
author | Patrick McHardy <kaber@trash.net> | 2011-05-09 20:23:21 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-05-09 20:23:21 +0200 |
commit | c29f7ef7cb5a31620060ef721d3c65b343eb537a (patch) | |
tree | 09d7a610fbdda5c259d85458f4b6cf9ae9b07f03 /include | |
parent | edc2b1adf32d2b11e126174f525293b3bca6e7bc (diff) | |
parent | 6cfb28bb9032dcf2749ff80f88ad37b9fe5e7c2a (diff) |
Merge branch 'opts' of git://dev.medozas.de/iptables
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index 5563ecb9..eb088b6b 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -49,6 +49,7 @@ struct in_addr; * %XTTYPE_NONE: option takes no argument * %XTTYPE_UINT*: standard integer * %XTTYPE_UINT*RC: colon-separated range of standard integers + * %XTTYPE_DOUBLE: double-precision floating point number * %XTTYPE_STRING: arbitrary string * %XTTYPE_TOSMASK: 8-bit TOS value with optional mask * %XTTYPE_MARKMASK32: 32-bit mark with optional mask @@ -69,6 +70,7 @@ enum xt_option_type { XTTYPE_UINT16RC, XTTYPE_UINT32RC, XTTYPE_UINT64RC, + XTTYPE_DOUBLE, XTTYPE_STRING, XTTYPE_TOSMASK, XTTYPE_MARKMASK32, @@ -136,6 +138,7 @@ struct xt_option_call { uint16_t u16, u16_range[2], port, port_range[2]; uint32_t u32, u32_range[2]; uint64_t u64, u64_range[2]; + double dbl; union nf_inet_addr inetaddr; struct { uint8_t tos_value, tos_mask; @@ -346,7 +349,7 @@ struct xtables_globals void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3))); }; -#define XT_GETOPT_TABLEEND {NULL} +#define XT_GETOPT_TABLEEND {.name = NULL, .has_arg = false} #ifdef __cplusplus extern "C" { |