diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-08-19 21:03:02 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-08-21 23:22:47 +0200 |
commit | ffb45bd3f730e4f1bb3348f15abbb0ea87fbb1cb (patch) | |
tree | 280065287621964342a3682c873a138a295eb6a3 /include/datatype.h | |
parent | db70959a5ccf2952b218f51c3d529e186a5a43bb (diff) |
src: remove DTYPE_F_PREFIX
only ipv4 and ipv6 datatype support this, add datatype_prefix_notation()
helper function to report that datatype prefers prefix notation, if
possible.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/datatype.h')
-rw-r--r-- | include/datatype.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/datatype.h b/include/datatype.h index d4b4737c..09b84eca 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -124,11 +124,9 @@ struct expr; * enum datatype_flags * * @DTYPE_F_ALLOC: datatype is dynamically allocated - * @DTYPE_F_PREFIX: preferred representation for ranges is a prefix */ enum datatype_flags { DTYPE_F_ALLOC = (1 << 0), - DTYPE_F_PREFIX = (1 << 1), }; struct parse_ctx; @@ -179,6 +177,7 @@ extern void datatype_set(struct expr *expr, const struct datatype *dtype); extern void __datatype_set(struct expr *expr, const struct datatype *dtype); extern void datatype_free(const struct datatype *dtype); struct datatype *datatype_clone(const struct datatype *orig_dtype); +bool datatype_prefix_notation(const struct datatype *dtype); struct parse_ctx { struct symbol_tables *tbl; |