aboutsummaryrefslogtreecommitdiffstats
path: root/filter/data.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-07-02 10:45:53 +0200
committerMaria Matejka <mq@ucw.cz>2019-07-02 10:45:53 +0200
commitb40c0f028f37086991fefa9197708ba8c7b3d571 (patch)
tree91721f9ab6b49c86c43e2c83e6acd628ae0c0bae /filter/data.h
parent30667d50417f926fc948905aaab3e679b416b2e1 (diff)
downloadbird-b40c0f028f37086991fefa9197708ba8c7b3d571.tar.gz
Filter: Pre-evaluation of constant expressions
Diffstat (limited to 'filter/data.h')
-rw-r--r--filter/data.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/data.h b/filter/data.h
index 6973008f..083595f4 100644
--- a/filter/data.h
+++ b/filter/data.h
@@ -119,7 +119,7 @@ enum f_lval_type {
struct f_lval {
enum f_lval_type type;
union {
- const struct symbol *sym;
+ struct symbol *sym;
struct f_dynamic_attr da;
struct f_static_attr sa;
};
@@ -169,6 +169,7 @@ void trie_format(const struct f_trie *t, buffer *buf);
int val_same(const struct f_val *v1, const struct f_val *v2);
int val_compare(const struct f_val *v1, const struct f_val *v2);
void val_format(const struct f_val *v, buffer *buf);
+char *val_format_str(struct linpool *lp, const struct f_val *v);
const char *val_dump(const struct f_val *v);
static inline int val_is_ip4(const struct f_val *v)