mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:36:20 +00:00
bgpd: fix interface name compare
We always want to compare the whole string, lets not use `strncmp` for this case. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
de416e6782
commit
5bcc6b469c
@ -2440,7 +2440,7 @@ static inline uint32_t bgp_vrf_interfaces(struct bgp *bgp, bool active)
|
|||||||
if (vrf == NULL)
|
if (vrf == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) {
|
RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) {
|
||||||
if (strncmp(ifp->name, bgp->name, VRF_NAMSIZ) == 0)
|
if (strcmp(ifp->name, bgp->name) == 0)
|
||||||
continue;
|
continue;
|
||||||
if (!active || if_is_up(ifp))
|
if (!active || if_is_up(ifp))
|
||||||
count++;
|
count++;
|
||||||
|
Loading…
Reference in New Issue
Block a user