summaryrefslogtreecommitdiffstats
path: root/include/xtables.h.in
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-04-29 01:25:14 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-05-01 13:47:34 +0200
commit61cc52b6f9edfa3efb1d0c9ea9531abb42828ec2 (patch)
treef72eee90c8a274a4cf25f6a3ca29830388dc4612 /include/xtables.h.in
parent44517bda3d8130638882f69478a8091316f30cbb (diff)
libxt_TOS: use guided option parser
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r--include/xtables.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in
index a9a9ffad..b06ab613 100644
--- a/include/xtables.h.in
+++ b/include/xtables.h.in
@@ -50,6 +50,7 @@ struct in_addr;
* %XTTYPE_UINT*: standard integer
* %XTTYPE_UINT*RC: colon-separated range of standard integers
* %XTTYPE_STRING: arbitrary string
+ * %XTTYPE_TOSMASK: 8-bit TOS value with optional mask
* %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)
@@ -67,6 +68,7 @@ enum xt_option_type {
XTTYPE_UINT32RC,
XTTYPE_UINT64RC,
XTTYPE_STRING,
+ XTTYPE_TOSMASK,
XTTYPE_MARKMASK32,
XTTYPE_SYSLOGLEVEL,
XTTYPE_ONEHOST,
@@ -132,6 +134,9 @@ struct xt_option_call {
uint64_t u64, u64_range[2];
union nf_inet_addr inetaddr;
struct {
+ uint8_t tos_value, tos_mask;
+ };
+ struct {
uint32_t mark, mask;
};
} val;