diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-14 15:10:15 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-04-13 18:09:27 +0200 |
commit | 2b01f706e7ba48d72e57f8e47457a86d9ed44992 (patch) | |
tree | 581794a3419ce83241268edaf5468744b167ef1f /include/xtables.h.in | |
parent | 0dd344a9bedc24feb6ad99d4620bdc7da171c72d (diff) |
libxtables: XTTYPE_ONEHOST support
The bonus of the POSIX socket API is that it is almost protocol-agnostic
and that there are ready-made functions to take over the gist of address
parsing and packing.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r-- | include/xtables.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index afdac36a..d8a31245 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -52,6 +52,7 @@ struct in_addr; * %XTTYPE_STRING: arbitrary string * %XTTYPE_MARKMASK32: 32-bit mark with optional mask * %XTTYPE_SYSLOGLEVEL: syslog level by name or number + * %XTTYPE_ONEHOST: one host or address (union nf_inet_addr) */ enum xt_option_type { XTTYPE_NONE, @@ -66,6 +67,7 @@ enum xt_option_type { XTTYPE_STRING, XTTYPE_MARKMASK32, XTTYPE_SYSLOGLEVEL, + XTTYPE_ONEHOST, }; /** @@ -124,6 +126,7 @@ struct xt_option_call { uint16_t u16, u16_range[2]; uint32_t u32, u32_range[2]; uint64_t u64, u64_range[2]; + union nf_inet_addr inetaddr; struct { uint32_t mark, mask; }; |