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:
@@ -948,7 +948,7 @@ ea_show(struct cli *c, const eattr *e)
|
||||
if (e->undef)
|
||||
bsprintf(pos, "undefined");
|
||||
else
|
||||
switch (e->type & EAF_TYPE_MASK)
|
||||
switch (e->type)
|
||||
{
|
||||
case EAF_TYPE_INT:
|
||||
bsprintf(pos, "%u", e->u.data);
|
||||
@@ -1008,7 +1008,10 @@ ea_dump(ea_list *e)
|
||||
{
|
||||
eattr *a = &e->attrs[i];
|
||||
debug(" %02x:%02x.%02x", EA_PROTO(a->id), EA_ID(a->id), a->flags);
|
||||
debug("=%c", "?iO?I?P???S?????" [a->type & EAF_TYPE_MASK]);
|
||||
debug("=%c",
|
||||
"?iO?IRP???S??pE?"
|
||||
"??L???N?????????"
|
||||
"?o???r??????????" [a->type]);
|
||||
if (a->originated)
|
||||
debug("o");
|
||||
if (a->type & EAF_EMBEDDED)
|
||||
|
Reference in New Issue
Block a user