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

Special attribute types for enums

This commit is contained in:
Maria Matejka
2022-03-26 12:37:41 +01:00
parent e261b32511
commit 22f95d9889
7 changed files with 13 additions and 7 deletions

View File

@@ -165,7 +165,7 @@ f_generate_empty(struct f_dynamic_attr dyn)
{
struct f_val empty;
switch (dyn.type & EAF_TYPE_MASK) {
switch (dyn.type) {
case EAF_TYPE_AS_PATH:
empty = f_const_empty_path;
break;

View File

@@ -696,7 +696,7 @@
break;
}
switch (e->type & EAF_TYPE_MASK) {
switch (e->type) {
case EAF_TYPE_INT:
RESULT_(da.f_type, i, e->u.data);
break;