mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 03:27:39 +00:00
pimd: increase buffer size for prefix str while printing bsrp-info
Problem: output is cut short when prefix string all octets are 3 digit. RCA: Buffer was allocated only to hold ip addr str. Fix: Added 3 bytes more to hold prefix length and a /. Modified buffer in 'show ip pim bsrp-info' and 'show ip pim bsm database' Signed-off-by: Saravanan K <saravanank@vmware.com>
This commit is contained in:
parent
7f2ccbe562
commit
93a5bc8022
@ -3016,7 +3016,7 @@ static void pim_show_bsm_db(struct pim_instance *pim, struct vty *vty, bool uj)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO(pim->global_scope.bsm_list, bsmnode, bsm)) {
|
for (ALL_LIST_ELEMENTS_RO(pim->global_scope.bsm_list, bsmnode, bsm)) {
|
||||||
char grp_str[INET_ADDRSTRLEN];
|
char grp_str[PREFIX_STRLEN];
|
||||||
char rp_str[INET_ADDRSTRLEN];
|
char rp_str[INET_ADDRSTRLEN];
|
||||||
char bsr_str[INET_ADDRSTRLEN];
|
char bsr_str[INET_ADDRSTRLEN];
|
||||||
struct bsmmsg_grpinfo *group;
|
struct bsmmsg_grpinfo *group;
|
||||||
@ -3185,7 +3185,7 @@ static void pim_show_group_rp_mappings_info(struct pim_instance *pim,
|
|||||||
if (!bsgrp)
|
if (!bsgrp)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char grp_str[INET_ADDRSTRLEN];
|
char grp_str[PREFIX_STRLEN];
|
||||||
|
|
||||||
prefix2str(&bsgrp->group, grp_str, sizeof(grp_str));
|
prefix2str(&bsgrp->group, grp_str, sizeof(grp_str));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user