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

Eattr flags (originated and fresh) get their own struct fields

This commit is contained in:
Maria Matejka
2022-03-14 10:06:44 +01:00
parent af8568a870
commit 63cf5d5d8c
5 changed files with 19 additions and 10 deletions

View File

@@ -737,7 +737,9 @@
l->count = 1;
l->attrs[0].id = da.ea_code;
l->attrs[0].flags = 0;
l->attrs[0].type = da.type | EAF_ORIGINATED | EAF_FRESH;
l->attrs[0].type = da.type;
l->attrs[0].originated = 1;
l->attrs[0].fresh = 1;
switch (da.type) {
case EAF_TYPE_INT:
@@ -800,7 +802,9 @@
l->count = 1;
l->attrs[0].id = da.ea_code;
l->attrs[0].flags = 0;
l->attrs[0].type = EAF_TYPE_UNDEF | EAF_ORIGINATED | EAF_FRESH;
l->attrs[0].type = EAF_TYPE_UNDEF;
l->attrs[0].originated = 1;
l->attrs[0].fresh = 1;
l->attrs[0].u.data = 0;
f_rta_cow(fs);