bgpd: shared_network is a bool, convert it to such

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-12-05 10:15:18 -05:00
parent 645a82ec60
commit 7cde71a8e3
2 changed files with 5 additions and 5 deletions

View File

@ -838,9 +838,9 @@ bool bgp_zebra_nexthop_set(union sockunion *local, union sockunion *remote,
if (!v6_ll_avail && !peer->conf_if)
v6_ll_avail = true;
if (if_lookup_by_ipv4(&remote->sin.sin_addr, peer->bgp->vrf_id))
peer->shared_network = 1;
peer->shared_network = true;
else
peer->shared_network = 0;
peer->shared_network = false;
}
/* IPv6 connection, fetch and store IPv4 local address if any. */
@ -903,9 +903,9 @@ bool bgp_zebra_nexthop_set(union sockunion *local, union sockunion *remote,
|| if_lookup_by_ipv6(&remote->sin6.sin6_addr,
remote->sin6.sin6_scope_id,
peer->bgp->vrf_id))
peer->shared_network = 1;
peer->shared_network = true;
else
peer->shared_network = 0;
peer->shared_network = false;
}
/* KAME stack specific treatment. */

View File

@ -1330,7 +1330,7 @@ struct peer {
union sockunion *su_local; /* Sockunion of local address. */
union sockunion *su_remote; /* Sockunion of remote address. */
int shared_network; /* Is this peer shared same network. */
bool shared_network; /* Is this peer shared same network. */
struct bgp_nexthop nexthop; /* Nexthop */
/* Roles in bgp session */