forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BGP] Fix TCP MD5 authentication problem in VRF (sonic-net#19980)
[BGP] Fix TCP MD5 authentication problem in VRF Signed-off-by: Julian Chang - TW <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...-frr/patch/0053-bgpd-Set-md5-TCP-socket-option-for-outgoing-connections-on-listener.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters