Revision 6c4df703

View differences:

proto/bgp/attrs.c
1576 1576
{
1577 1577
  unsigned int i = EA_ID(a->id);
1578 1578
  struct attr_desc *d;
1579
  int len;
1579 1580

  
1580 1581
  if (ATTR_KNOWN(i))
1581 1582
    {
1582 1583
      d = &bgp_attr_table[i];
1583
      buf += bsprintf(buf, "%s", d->name);
1584
      len = bsprintf(buf, "%s", d->name);
1585
      buf += len;
1584 1586
      if (d->format)
1585 1587
	{
1586 1588
	  *buf++ = ':';
1587 1589
	  *buf++ = ' ';
1588
	  d->format(a, buf, buflen);
1590
	  d->format(a, buf, buflen - len - 2);
1589 1591
	  return GA_FULL;
1590 1592
	}
1591 1593
      return GA_NAME;

Also available in: Unified diff