diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-22 20:43:40 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-23 18:01:21 +0100 |
commit | f7056d0fdb43e91497615ed6f21753ee3c91db63 (patch) | |
tree | 6b8b486e2f488175d60f1c075c484db2c94b1f64 /include/xtables.h | |
parent | 1af6984c57cce5169491d308b58a9c85464b2159 (diff) |
libxtables: Introduce struct xt_option_entry::base
Enable guided option parser users to parse integer values with a fixed
base.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include/xtables.h')
-rw-r--r-- | include/xtables.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xtables.h b/include/xtables.h index 1a9e08bb..b3c45c98 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -122,6 +122,7 @@ enum xt_option_flags { * @size: size of the item pointed to by @ptroff; this is a safeguard * @min: lowest allowed value (for singular integral types) * @max: highest allowed value (for singular integral types) + * @base: assumed base of parsed value for integer types (default 0) */ struct xt_option_entry { const char *name; @@ -129,7 +130,7 @@ struct xt_option_entry { unsigned int id, excl, also, flags; unsigned int ptroff; size_t size; - unsigned int min, max; + unsigned int min, max, base; }; /** |