summaryrefslogtreecommitdiff
path: root/filter/filter.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-11-24 00:17:02 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2013-11-24 00:17:02 +0100
commit52e030e14666ff00a4bb0c700d2c027fbeb87d04 (patch)
treea286f1b4fa6869e7c5d8d2eab943f675ee514e98 /filter/filter.h
parent65194bd1eb2e6af217a750fa1e02b6eea66c7130 (diff)
Converts filters to unsigned integers.
Diffstat (limited to 'filter/filter.h')
-rw-r--r--filter/filter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter.h b/filter/filter.h
index 07a4c9e4..3a6b66d9 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -51,7 +51,7 @@ struct f_prefix {
struct f_val {
int type;
union {
- int i;
+ uint i;
u64 ec;
/* ip_addr ip; Folded into prefix */
struct f_prefix px;
@@ -108,7 +108,7 @@ struct rte;
int f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struct linpool *tmp_pool, int flags);
struct f_val f_eval(struct f_inst *expr, struct linpool *tmp_pool);
-int f_eval_int(struct f_inst *expr);
+uint f_eval_int(struct f_inst *expr);
u32 f_eval_asn(struct f_inst *expr);
char *filter_name(struct filter *filter);