mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 19:37:46 +00:00
Merge pull request #220 from opensourcerouting/fixes/addpath_id
Fix bgp_info_addpath_{rx,tx}_str if addpath info is not present
This commit is contained in:
commit
9965fdbfbf
@ -2281,6 +2281,8 @@ bgp_info_addpath_rx_str(u_int32_t addpath_id, char *buf)
|
|||||||
{
|
{
|
||||||
if (addpath_id)
|
if (addpath_id)
|
||||||
sprintf(buf, " with addpath ID %d", addpath_id);
|
sprintf(buf, " with addpath ID %d", addpath_id);
|
||||||
|
else
|
||||||
|
buf[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -619,6 +619,8 @@ bgp_info_addpath_tx_str (int addpath_encode, u_int32_t addpath_tx_id,
|
|||||||
{
|
{
|
||||||
if (addpath_encode)
|
if (addpath_encode)
|
||||||
sprintf(buf, " with addpath ID %d", addpath_tx_id);
|
sprintf(buf, " with addpath ID %d", addpath_tx_id);
|
||||||
|
else
|
||||||
|
buf[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make BGP update packet. */
|
/* Make BGP update packet. */
|
||||||
|
Loading…
Reference in New Issue
Block a user