mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 13:31:48 +00:00
bgpd: shared_network is a bool, convert it to such
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
645a82ec60
commit
7cde71a8e3
@ -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. */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user