diff options
author | Maria Matejka <mq@jmq.cz> | 2018-11-21 20:37:11 +0100 |
---|---|---|
committer | Jan Maria Matejka <mq@ucw.cz> | 2018-12-06 09:55:21 +0100 |
commit | 265419a3695b9a5c0a01d9fffc60f66fea8bee13 (patch) | |
tree | 069d7d7ba9cc5ef23c8babbcd8947e42448dd724 /filter/filter.h | |
parent | 0642fb4d456fe12e1bbeb2ffc2149433f228c02e (diff) |
Custom route attributes
For local route marking purposes, local custom route attributes may be
defined. These attributes are seamlessly stripped after export filter to
every real protocol like Kernel, BGP or OSPF, they however pass through
pipes. We currently allow at most 256 custom attributes.
This should be much faster than currently used bgp communities
for marking routes.
Diffstat (limited to 'filter/filter.h')
-rw-r--r-- | filter/filter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/filter.h b/filter/filter.h index febfdc65..a8c33287 100644 --- a/filter/filter.h +++ b/filter/filter.h @@ -287,6 +287,15 @@ struct f_trie #define FF_SILENT 2 /* Silent filter execution */ +/* Custom route attributes */ +struct custom_attribute { + resource r; + struct f_dynamic_attr *fda; + const char *name; +}; + +struct custom_attribute *ca_lookup(pool *p, const char *name, int ea_type); + /* Bird Tests */ struct f_bt_test_suite { node n; /* Node in config->tests */ |