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

Proper format functions for ORIGINATOR_ID, CLUSTER_LIST

This commit is contained in:
Ondrej Zajicek
2008-11-08 23:33:22 +01:00
parent b21f68b4cd
commit aebe06b40c
10 changed files with 32 additions and 19 deletions

View File

@@ -386,7 +386,7 @@ ea_format(eattr *e, byte *buf)
{
buf += bsprintf(buf, "%s.", p->name);
if (p->get_attr)
status = p->get_attr(e, buf);
status = p->get_attr(e, buf, end - buf);
buf += strlen(buf);
}
else if (EA_PROTO(e->id))
@@ -429,7 +429,7 @@ ea_format(eattr *e, byte *buf)
as_path_format(ad, buf, end - buf);
break;
case EAF_TYPE_INT_SET:
int_set_format(ad, buf, end - buf);
int_set_format(ad, 1, buf, end - buf);
break;
case EAF_TYPE_UNDEF:
default: