The first time through calling 'show ip bgp summary'
we were always calculating the variable hostname field
size incorrectly.
Ticket: CM-13900
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
if (peer->afc[afi][safi])
{
+ memset(dn_flag, '\0', sizeof(dn_flag));
+ if (peer_dynamic_neighbor(peer))
+ dn_flag[0] = '*';
+
if (peer->hostname && bgp_flag_check(bgp, BGP_FLAG_SHOW_HOSTNAME))
sprintf(neighbor_buf, "%s%s(%s) ", dn_flag, peer->hostname, peer->host);
else