From e8b42fee7eaa1ba6df203fe0bc4496cae226cbd2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 2 May 2011 02:13:16 +0200 Subject: libxtables: support for XTTYPE_PLENMASK Signed-off-by: Jan Engelhardt --- include/xtables.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/xtables.h.in') diff --git a/include/xtables.h.in b/include/xtables.h.in index 47f797bd..a760755c 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -59,6 +59,7 @@ struct in_addr; * %XTTYPE_PORT_NE: 16-bit port name or number, stored as network-endian * %XTTYPE_PORTRC: colon-separated port range (names acceptable) * %XTTYPE_PORTRC_NE: same as %XTTYPE_PORTRC, stored in network-endian + * %XTTYPE_PLENMASK: prefix len stored as union nf_inet_addr */ enum xt_option_type { XTTYPE_NONE, @@ -80,6 +81,7 @@ enum xt_option_type { XTTYPE_PORT_NE, XTTYPE_PORTRC, XTTYPE_PORTRC_NE, + XTTYPE_PLENMASK, }; /** @@ -139,7 +141,7 @@ struct xt_option_call { uint32_t u32, u32_range[2]; uint64_t u64, u64_range[2]; double dbl; - union nf_inet_addr inetaddr; + union nf_inet_addr inetaddr, inetmask; struct { uint8_t tos_value, tos_mask; }; -- cgit v1.2.3