Skip to content

Commit

Permalink
[BGP] Fix TCP MD5 authentication problem in VRF (sonic-net#19980)
Browse files Browse the repository at this point in the history
[BGP] Fix TCP MD5 authentication problem in VRF

Signed-off-by: Julian Chang - TW <[email protected]>
  • Loading branch information
puffc authored Aug 28, 2024
1 parent 8dcf192 commit 13e3f80
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index 76bb9949d..974a57ef2 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -774,6 +774,9 @@ int bgp_connect(struct peer *peer)
? IPV4_MAX_BITLEN
: IPV6_MAX_BITLEN;

+ if (!BGP_PEER_SU_UNSPEC(peer))
+ bgp_md5_set(peer);
+
bgp_md5_set_connect(peer->fd, &peer->su, prefixlen,
peer->password);
}
1 change: 1 addition & 0 deletions src/sonic-frr/patch/series
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@
0050-bgpd-backpressure-Avoid-use-after-free.patch
0051-bgpd-backpressure-fix-ret-value-evpn_route_select_in.patch
0052-bgpd-backpressure-log-error-for-evpn-when-route-inst.patch
0053-bgpd-Set-md5-TCP-socket-option-for-outgoing-connections-on-listener.patch

0 comments on commit 13e3f80

Please sign in to comment.