summaryrefslogtreecommitdiffstats
path: root/include/xtables.h.in
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-02-15 22:10:48 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-04-13 18:09:27 +0200
commit41a4cea0f4109fb76762dca073c3c1217658ee06 (patch)
tree0befb1efef2c98d54e92917fd5c9fb662817c8f0 /include/xtables.h.in
parentc618a0b1d3696c30f7791a427da9ba60186dfe05 (diff)
libxtables: XTTYPE_SYSLOGLEVEL support
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r--include/xtables.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in
index afade14b..afdac36a 100644
--- a/include/xtables.h.in
+++ b/include/xtables.h.in
@@ -51,6 +51,7 @@ struct in_addr;
* %XTTYPE_UINT*RC: colon-separated range of standard integers
* %XTTYPE_STRING: arbitrary string
* %XTTYPE_MARKMASK32: 32-bit mark with optional mask
+ * %XTTYPE_SYSLOGLEVEL: syslog level by name or number
*/
enum xt_option_type {
XTTYPE_NONE,
@@ -64,6 +65,7 @@ enum xt_option_type {
XTTYPE_UINT64RC,
XTTYPE_STRING,
XTTYPE_MARKMASK32,
+ XTTYPE_SYSLOGLEVEL,
};
/**
@@ -118,7 +120,7 @@ struct xt_option_call {
bool invert;
uint8_t nvals;
union {
- uint8_t u8, u8_range[2];
+ uint8_t u8, u8_range[2], syslog_level;
uint16_t u16, u16_range[2];
uint32_t u32, u32_range[2];
uint64_t u64, u64_range[2];