summaryrefslogtreecommitdiff
path: root/pimd/pim_nb.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2022-12-07 10:13:39 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2024-07-29 11:40:53 -0300
commitbd838d8c896140ae43b41bb7f8fcf88a26ec5a0f (patch)
tree72fa3700df1255d5f46ca7fc50eae16e80d9ae7c /pimd/pim_nb.c
parent13126dec147ec7c8f94ca2adb870e5b6646fb3bb (diff)
pimd: add support for MSDP authentication
Implement MSDP MD5 authentication connection support. Implementation details: - Move the MSDP socket creation code to a generic function so it can be parametrized to be used with/without authentication. - The MSDP peer connection will not change when the configuration is set, instead it will only be applied next connection or when `clear ip msdp peer A.B.C.D` is called. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_nb.c')
-rw-r--r--pimd/pim_nb.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/pimd/pim_nb.c b/pimd/pim_nb.c
index 6f4e325220..72b5bdefc9 100644
--- a/pimd/pim_nb.c
+++ b/pimd/pim_nb.c
@@ -178,6 +178,19 @@ const struct frr_yang_module_info frr_pim_info = {
}
},
{
+ .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-pim:pim/address-family/msdp-peer/authentication-type",
+ .cbs = {
+ .modify = pim_msdp_peer_authentication_type_modify,
+ }
+ },
+ {
+ .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-pim:pim/address-family/msdp-peer/authentication-key",
+ .cbs = {
+ .modify = pim_msdp_peer_authentication_key_modify,
+ .destroy = pim_msdp_peer_authentication_key_destroy,
+ }
+ },
+ {
.xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-pim:pim/address-family/mlag",
.cbs = {
.create = routing_control_plane_protocols_control_plane_protocol_pim_address_family_mlag_create,