summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_open.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-09-08 18:02:05 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-09-10 14:31:25 +0200
commit0c3a70c64430448c43fe12bf0ac044488352697c (patch)
treea7fd805ffc7837e50380258b639f0a921b5d79e2 /bgpd/bgp_open.c
parentbgpd: Convert bgp_network.c to use peer_connection (diff)
downloadfrr-0c3a70c64430448c43fe12bf0ac044488352697c.tar.xz
frr-0c3a70c64430448c43fe12bf0ac044488352697c.zip
bgpd: Move the peer->su to connection->su
The sockunion is per connection. So let's move it over. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_open.c')
-rw-r--r--bgpd/bgp_open.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index 9bfc06ec3..da70f67c1 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -1712,11 +1712,11 @@ uint16_t bgp_open_capability(struct stream *s, struct peer *peer,
* supporting RFC-5549 for
* Link-Local peering only
*/
- if (CHECK_FLAG(peer->flags, PEER_FLAG_CAPABILITY_ENHE)
- && peer->su.sa.sa_family == AF_INET6
- && afi == AFI_IP
- && (safi == SAFI_UNICAST || safi == SAFI_MPLS_VPN
- || safi == SAFI_LABELED_UNICAST)) {
+ if (CHECK_FLAG(peer->flags, PEER_FLAG_CAPABILITY_ENHE) &&
+ peer->connection->su.sa.sa_family == AF_INET6 &&
+ afi == AFI_IP &&
+ (safi == SAFI_UNICAST || safi == SAFI_MPLS_VPN ||
+ safi == SAFI_LABELED_UNICAST)) {
/* RFC 5549 Extended Next Hop Encoding
*/
SET_FLAG(peer->cap, PEER_CAP_ENHE_ADV);