Compare commits
7 Commits
frr-10.3-1
...
frr-8.5.4-
| Author | SHA1 | Date | |
|---|---|---|---|
| b72719fb5c | |||
|
|
9d79f89e3c | ||
| 47009f20f6 | |||
|
|
b4aded3d8e | ||
|
|
3c846ec975 | ||
|
|
76e3ee52e3 | ||
|
|
ce3ab829c6 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,3 +17,5 @@
|
|||||||
/frr-8.5.tar.gz
|
/frr-8.5.tar.gz
|
||||||
/frr-8.5.1.tar.gz
|
/frr-8.5.1.tar.gz
|
||||||
/frr-8.5.2.tar.gz
|
/frr-8.5.2.tar.gz
|
||||||
|
/frr-8.5.3.tar.gz
|
||||||
|
/frr-8.5.4.tar.gz
|
||||||
|
|||||||
49
0010-nhrpd-zebra-Read-GRE-addresses-only-if-sent.patch
Normal file
49
0010-nhrpd-zebra-Read-GRE-addresses-only-if-sent.patch
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
From 114bd532ac0c3b6d819f516eb41021eb250b65bd Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Zoran=20Peri=C4=8Di=C4=87?= <zpericic@netst.org>
|
||||||
|
Date: Wed, 15 Sep 2021 19:44:56 +0200
|
||||||
|
Subject: [PATCH 10/11] nhrpd, zebra: Read GRE addresses only if sent
|
||||||
|
|
||||||
|
GRE addresses are not send if interface is missing in kernel. We
|
||||||
|
should first check if they have been sent.
|
||||||
|
---
|
||||||
|
nhrpd/nhrp_route.c | 7 ++++---
|
||||||
|
zebra/zapi_msg.c | 2 --
|
||||||
|
2 files changed, 4 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c
|
||||||
|
index 698c6d0cdf..2e7923bf33 100644
|
||||||
|
--- a/nhrpd/nhrp_route.c
|
||||||
|
+++ b/nhrpd/nhrp_route.c
|
||||||
|
@@ -493,12 +493,13 @@ int nhrp_gre_update(ZAPI_CALLBACK_ARGS)
|
||||||
|
STREAM_GETL(s, gre_info.okey);
|
||||||
|
STREAM_GETL(s, gre_info.ifindex_link);
|
||||||
|
STREAM_GETL(s, gre_info.vrfid_link);
|
||||||
|
- STREAM_GETL(s, gre_info.vtep_ip.s_addr);
|
||||||
|
- STREAM_GETL(s, gre_info.vtep_ip_remote.s_addr);
|
||||||
|
if (gre_info.ifindex == IFINDEX_INTERNAL)
|
||||||
|
val = NULL;
|
||||||
|
- else
|
||||||
|
+ else {
|
||||||
|
val = hash_lookup(nhrp_gre_list, &gre_info);
|
||||||
|
+ STREAM_GETL(s, gre_info.vtep_ip.s_addr);
|
||||||
|
+ STREAM_GETL(s, gre_info.vtep_ip_remote.s_addr);
|
||||||
|
+ }
|
||||||
|
if (val) {
|
||||||
|
if (gre_info.vtep_ip.s_addr != val->vtep_ip.s_addr ||
|
||||||
|
gre_info.vrfid_link != val->vrfid_link ||
|
||||||
|
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
|
||||||
|
index 68bb9783f8..72d06d71ea 100644
|
||||||
|
--- a/zebra/zapi_msg.c
|
||||||
|
+++ b/zebra/zapi_msg.c
|
||||||
|
@@ -3618,8 +3618,6 @@ static inline void zebra_gre_get(ZAPI_HANDLER_ARGS)
|
||||||
|
stream_putl(s, 0);
|
||||||
|
stream_putl(s, IFINDEX_INTERNAL);
|
||||||
|
stream_putl(s, VRF_UNKNOWN);
|
||||||
|
- stream_putl(s, 0);
|
||||||
|
- stream_putl(s, 0);
|
||||||
|
}
|
||||||
|
/* Write packet size. */
|
||||||
|
stream_putw_at(s, 0, stream_get_endp(s));
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
From f9876d6106263632287fcef2912ba4223b145672 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Zoran=20Peri=C4=8Di=C4=87?= <zpericic@netst.org>
|
||||||
|
Date: Mon, 20 Sep 2021 23:51:06 +0200
|
||||||
|
Subject: [PATCH 11/11] nhrp: Peer should not be connected if interface is
|
||||||
|
active
|
||||||
|
|
||||||
|
---
|
||||||
|
nhrpd/nhrp_interface.c | 1 +
|
||||||
|
nhrpd/nhrp_nhs.c | 21 +++++++++++++++++++--
|
||||||
|
nhrpd/nhrp_peer.c | 2 ++
|
||||||
|
nhrpd/nhrpd.h | 1 +
|
||||||
|
4 files changed, 23 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/nhrpd/nhrp_interface.c b/nhrpd/nhrp_interface.c
|
||||||
|
index 4ac30a7d75..6a8b6e6997 100644
|
||||||
|
--- a/nhrpd/nhrp_interface.c
|
||||||
|
+++ b/nhrpd/nhrp_interface.c
|
||||||
|
@@ -461,6 +461,7 @@ int nhrp_ifp_up(struct interface *ifp)
|
||||||
|
{
|
||||||
|
debugf(NHRP_DEBUG_IF, "if-up: %s", ifp->name);
|
||||||
|
nhrp_interface_update_nbma(ifp, NULL);
|
||||||
|
+ nhrp_nhs_interface_add(ifp);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
diff --git a/nhrpd/nhrp_nhs.c b/nhrpd/nhrp_nhs.c
|
||||||
|
index 03b4b533bb..bd05813d28 100644
|
||||||
|
--- a/nhrpd/nhrp_nhs.c
|
||||||
|
+++ b/nhrpd/nhrp_nhs.c
|
||||||
|
@@ -351,8 +351,9 @@ int nhrp_nhs_add(struct interface *ifp, afi_t afi, union sockunion *proto_addr,
|
||||||
|
.reglist_head = INIT_DLIST(nhs->reglist_head),
|
||||||
|
};
|
||||||
|
nhrp_nhslist_add_tail(&nifp->afi[afi].nhslist_head, nhs);
|
||||||
|
- thread_add_timer_msec(master, nhrp_nhs_resolve, nhs, 1000,
|
||||||
|
- &nhs->t_resolve);
|
||||||
|
+ if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE))
|
||||||
|
+ thread_add_timer_msec(master, nhrp_nhs_resolve, nhs, 1000,
|
||||||
|
+ &nhs->t_resolve);
|
||||||
|
|
||||||
|
return NHRP_OK;
|
||||||
|
}
|
||||||
|
@@ -394,6 +395,22 @@ int nhrp_nhs_free(struct nhrp_interface *nifp, afi_t afi, struct nhrp_nhs *nhs)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+void nhrp_nhs_interface_add(struct interface *ifp)
|
||||||
|
+{
|
||||||
|
+ struct nhrp_interface *nifp = ifp->info;
|
||||||
|
+ struct nhrp_nhs *nhs;
|
||||||
|
+ afi_t afi;
|
||||||
|
+
|
||||||
|
+ for (afi = 0; afi < AFI_MAX; afi++) {
|
||||||
|
+ debugf(NHRP_DEBUG_COMMON, "Adding nhs entries (%zu)",
|
||||||
|
+ nhrp_nhslist_count(&nifp->afi[afi].nhslist_head));
|
||||||
|
+ frr_each (nhrp_nhslist, &nifp->afi[afi].nhslist_head, nhs) {
|
||||||
|
+ thread_add_timer_msec(master, nhrp_nhs_resolve, nhs, 1000,
|
||||||
|
+ &nhs->t_resolve);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void nhrp_nhs_interface_del(struct interface *ifp)
|
||||||
|
{
|
||||||
|
struct nhrp_interface *nifp = ifp->info;
|
||||||
|
diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c
|
||||||
|
index e7f2eaf5a7..9e76d16db3 100644
|
||||||
|
--- a/nhrpd/nhrp_peer.c
|
||||||
|
+++ b/nhrpd/nhrp_peer.c
|
||||||
|
@@ -309,6 +309,8 @@ int nhrp_peer_check(struct nhrp_peer *p, int establish)
|
||||||
|
struct interface *ifp = p->ifp;
|
||||||
|
struct nhrp_interface *nifp = ifp->info;
|
||||||
|
|
||||||
|
+ if (!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE))
|
||||||
|
+ return 0;
|
||||||
|
if (p->online)
|
||||||
|
return 1;
|
||||||
|
if (!establish)
|
||||||
|
diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h
|
||||||
|
index 753c6e9b22..4850c12b49 100644
|
||||||
|
--- a/nhrpd/nhrpd.h
|
||||||
|
+++ b/nhrpd/nhrpd.h
|
||||||
|
@@ -400,6 +400,7 @@ void nhrp_nhs_foreach(struct interface *ifp, afi_t afi,
|
||||||
|
void (*cb)(struct nhrp_nhs *, struct nhrp_registration *,
|
||||||
|
void *),
|
||||||
|
void *ctx);
|
||||||
|
+void nhrp_nhs_interface_add(struct interface *ifp);
|
||||||
|
void nhrp_nhs_interface_del(struct interface *ifp);
|
||||||
|
|
||||||
|
int nhrp_multicast_add(struct interface *ifp, afi_t afi,
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
||||||
22
frr.spec
22
frr.spec
@@ -1,3 +1,5 @@
|
|||||||
|
%global dist .ims.2%{?dist}
|
||||||
|
|
||||||
%global frr_libdir %{_libexecdir}/frr
|
%global frr_libdir %{_libexecdir}/frr
|
||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
@@ -8,8 +10,8 @@
|
|||||||
%bcond selinux 1
|
%bcond selinux 1
|
||||||
|
|
||||||
Name: frr
|
Name: frr
|
||||||
Version: 8.5.2
|
Version: 8.5.4
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Routing daemon
|
Summary: Routing daemon
|
||||||
License: GPL-2.0-or-later AND ISC AND LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND (GPL-2.0-or-later OR ISC) AND MIT
|
License: GPL-2.0-or-later AND ISC AND LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND (GPL-2.0-or-later OR ISC) AND MIT
|
||||||
URL: http://www.frrouting.org
|
URL: http://www.frrouting.org
|
||||||
@@ -26,7 +28,8 @@ Patch0002: 0002-enable-openssl.patch
|
|||||||
Patch0003: 0003-disable-eigrp-crypto.patch
|
Patch0003: 0003-disable-eigrp-crypto.patch
|
||||||
Patch0004: 0004-fips-mode.patch
|
Patch0004: 0004-fips-mode.patch
|
||||||
Patch0005: 0005-remove-grpc-test.patch
|
Patch0005: 0005-remove-grpc-test.patch
|
||||||
|
Patch0010: 0010-nhrpd-zebra-Read-GRE-addresses-only-if-sent.patch
|
||||||
|
Patch0011: 0011-nhrp-Peer-should-not-be-connected-if-interface-is-ac.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bison >= 2.7
|
BuildRequires: bison >= 2.7
|
||||||
@@ -132,6 +135,7 @@ autoreconf -ivf
|
|||||||
--disable-babeld \
|
--disable-babeld \
|
||||||
--with-moduledir=%{_libdir}/frr/modules \
|
--with-moduledir=%{_libdir}/frr/modules \
|
||||||
--with-crypto=openssl \
|
--with-crypto=openssl \
|
||||||
|
--with-vici-socket=/run/strongswan/charon.vici \
|
||||||
--enable-fpm \
|
--enable-fpm \
|
||||||
%{?with_grpc:--enable-grpc}
|
%{?with_grpc:--enable-grpc}
|
||||||
|
|
||||||
@@ -274,6 +278,18 @@ rm tests/lib/*grpc*
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 03 2024 Michal Ruprich <mruprich@redhat.com> - 8.5.4-1
|
||||||
|
- New version 8.5.4
|
||||||
|
|
||||||
|
* Tue Oct 10 2023 Michal Ruprich <mruprich@redhat.com> - 8.5.3-1
|
||||||
|
- New version 8.5.3
|
||||||
|
|
||||||
|
* Fri Sep 01 2023 Michal Ruprich <mruprich@redhat.com> - 8.5.2-4
|
||||||
|
- Adding a couple of SELinux rules, includes fix for rhbz#2149299
|
||||||
|
|
||||||
|
* Wed Aug 30 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 8.5.2-3
|
||||||
|
- Rebuilt for abseil-cpp 20230802.0
|
||||||
|
|
||||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.5.2-2
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.5.2-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
3
frr.te
3
frr.te
@@ -70,6 +70,7 @@ can_exec(frr_t, frr_exec_t)
|
|||||||
kernel_read_network_state(frr_t)
|
kernel_read_network_state(frr_t)
|
||||||
kernel_rw_net_sysctls(frr_t)
|
kernel_rw_net_sysctls(frr_t)
|
||||||
kernel_read_system_state(frr_t)
|
kernel_read_system_state(frr_t)
|
||||||
|
kernel_request_load_module(frr_t)
|
||||||
|
|
||||||
auth_use_nsswitch(frr_t)
|
auth_use_nsswitch(frr_t)
|
||||||
|
|
||||||
@@ -100,6 +101,8 @@ sysnet_exec_ifconfig(frr_t)
|
|||||||
sysnet_read_ifconfig_run(frr_t)
|
sysnet_read_ifconfig_run(frr_t)
|
||||||
sysnet_watch_ifconfig_run(frr_t)
|
sysnet_watch_ifconfig_run(frr_t)
|
||||||
|
|
||||||
|
ipsec_domtrans_mgmt(frr_t)
|
||||||
|
|
||||||
userdom_read_admin_home_files(frr_t)
|
userdom_read_admin_home_files(frr_t)
|
||||||
|
|
||||||
optional_policy(`
|
optional_policy(`
|
||||||
|
|||||||
2
sources
2
sources
@@ -1,2 +1,2 @@
|
|||||||
SHA512 (frr-8.5.2.tar.gz) = a5eadd8c88966b58ebc0e7b92311bda16b391abe727861eed772ded678f5a84d84421fbfd4b23c4a2b18ab3d2dcd5b2c9099491dab6958b63c39a9c67c4508d2
|
SHA512 (frr-8.5.4.tar.gz) = f234fe73a019db2188e56988dc5cb3807c83d16c6f8723c68cb8f6154e8e63140f3cf8c3adec64a7661dd988089a8253fc3f910b31a1e6505ea1a6fec3df2e14
|
||||||
SHA512 (remove-babeld-ldpd.sh) = a5bf67a3722cb20d43cef1dac28f839db68df73a1b7d34d8438e4f9366da3b67d85c1f44281f93434e8dd8ebcb2d3dc258b77eaa5627475b7395d207f020839d
|
SHA512 (remove-babeld-ldpd.sh) = a5bf67a3722cb20d43cef1dac28f839db68df73a1b7d34d8438e4f9366da3b67d85c1f44281f93434e8dd8ebcb2d3dc258b77eaa5627475b7395d207f020839d
|
||||||
|
|||||||
Reference in New Issue
Block a user