diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-14 15:12:50 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-04-13 18:09:27 +0200 |
commit | b8592fa3352018646b0befaa48f930f75c5b7d92 (patch) | |
tree | 272873a3e6e9c1f18de3dd54a3a27c755f5a1d84 /include | |
parent | 2b01f706e7ba48d72e57f8e47457a86d9ed44992 (diff) |
libxtables: XTTYPE_PORT 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 d8a31245..a9a9ffad 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -53,6 +53,8 @@ struct in_addr; * %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) + * %XTTYPE_PORT: 16-bit port name or number + * %XTTYPE_PORT_NE: 16-bit port name or number, stored as network-endian */ enum xt_option_type { XTTYPE_NONE, @@ -68,6 +70,8 @@ enum xt_option_type { XTTYPE_MARKMASK32, XTTYPE_SYSLOGLEVEL, XTTYPE_ONEHOST, + XTTYPE_PORT, + XTTYPE_PORT_NE, }; /** @@ -123,7 +127,7 @@ struct xt_option_call { uint8_t nvals; union { uint8_t u8, u8_range[2], syslog_level; - uint16_t u16, u16_range[2]; + uint16_t u16, u16_range[2], port; uint32_t u32, u32_range[2]; uint64_t u64, u64_range[2]; union nf_inet_addr inetaddr; |