summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-31 19:29:17 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:37:41 +0200
commit0b871c170472202770691af8995766ee57920fdc (patch)
tree08c5045208a5d11838ca2735925ddf1d03d3d2c7 /filter
parent3fb70b26faca6788aa0bdf1d558414f9f777c6cd (diff)
Moved filter value union to lib
Diffstat (limited to 'filter')
-rw-r--r--filter/data.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/filter/data.h b/filter/data.h
index 0b1e8e57..9ffa1b61 100644
--- a/filter/data.h
+++ b/filter/data.h
@@ -16,20 +16,7 @@
/* Filter value; size of this affects filter memory consumption */
struct f_val {
btype type; /* T_* */
- union {
- union bval bval;
- BVAL_ITEMS;
-
- u64 ec;
- lcomm lc;
- ip_addr ip;
- const net_addr *net;
- const char *s;
- const struct f_tree *t;
- const struct f_trie *ti;
- const struct f_path_mask *path_mask;
- struct f_path_mask_item pmi;
- } val;
+ union bval_long val;
};
#define fputip(a) ({ ip_addr *ax = falloc(sizeof(*ax)); *ax = (a); ax; })