1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

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.
This commit is contained in:
Maria Matejka
2018-11-21 20:37:11 +01:00
committed by Jan Maria Matejka
parent 0642fb4d45
commit 265419a369
9 changed files with 215 additions and 21 deletions

View File

@@ -1063,7 +1063,7 @@ interpret(struct f_inst *what)
break;
}
switch (what->aux & EAF_TYPE_MASK) {
switch (e->type & EAF_TYPE_MASK) {
case EAF_TYPE_INT:
res.type = f_type;
res.val.i = e->u.data;