Commit Graph

40 Commits (a185c7fabe2442d6a65a3735ffe5d3a08afa021a)

Author SHA1 Message Date
Michael Pratt a185c7fabe frr: link zlib in host build
Due to changes in elfutils in order to
simplify the build for static libraries only,
the zlib functions that libelf depends on
are no longer linked within the static libelf library.

If frr were to use pkg-config, no change would be necessary,
however, the AC_CHECK_LIB macro is used, so add the link manually.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2024-06-19 11:22:59 +02:00
Georgi Valkov 4ef2b7e0fc frr: fix compilation with GCC14
Fixes:
zebra/zebra_netns_notify.c: In function 'zebra_ns_ready_read':
zebra/zebra_netns_notify.c:265:40: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration]
  265 |         if (strmatch(VRF_DEFAULT_NAME, basename(netnspath))) {
      |                                        ^~~~~~~~

Fixed by including libgen.h, then since basename may modify its
parameter, allocate a copy on the stack, using strdupa, and pass the
temporary string to basename.

According to the man page for basename:
With glibc, one gets the POSIX version of basename() when
<libgen.h> is included, and the GNU version otherwise.

The POSIX version of basename may modify the contents of path,
so we should to pass a copy when calling this function.

[1] https://man7.org/linux/man-pages/man3/basename.3.html

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-06-05 16:33:49 +02:00
Martin Schiller 2a3a3575fe frr: add support for BGP MD5 authentication
You have to enable the CONFIG_TCP_MD5SIG kernel config option to be able
to use the BGP MD5 authentication.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2024-06-03 17:35:55 +08:00
Georgi Valkov f2411b1e39 frr: merge frr-libfrr and frr-vtysh to frr
frr-libfrr and frr-vtysh are required components, which makes their
menuconfig entries obsolete. Merge them in the frr package.

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-05-28 13:59:43 +08:00
Georgi Valkov fd8467d1a2 frr: enable frr-vtysh by defalult and hide it
Fixes [1]
lib/vty.c: In function 'vty_mgmt_resume_response':
lib/vty.c:195:27: error: 'VTYSH_READ' undeclared (first use in this function); did you mean 'VTY_READ'?
  195 |                 vty_event(VTYSH_READ, vty);
      |                           ^~~~~~~~~~
      |                           VTY_READ

The error is a bug in frr: not all use cases of the VTYSH_* enums are
guarded by #ifdef VTYSH. These enums are enabled by the VTYSH macro,
which is defined if sub package frr-vtysh is enabled in menuconfig.
According to support ticket [2], building without frr-vtysh is
no longer supported.

[1] https://github.com/openwrt/packages/issues/24063
[2] https://github.com/FRRouting/frr/issues/15752#issuecomment-2059328993

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-05-28 13:59:43 +08:00
Georgi Valkov da26ac2725 frr: fix grep warning in frrcommon.sh
Fixes:
grep: warning: stray \ before -

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-05-28 13:59:43 +08:00
Georgi Valkov 6b7d905a3a frr: fix host build error on macOS
Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens"); ^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] https://github.com/FRRouting/frr/pull/6032
[2] https://github.com/FRRouting/frr/pull/15890

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-04-30 22:54:10 +02:00
Fabrice Fontaine 5afe5c9031 treewide: assign PKG_CPE_ID
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-02-04 16:16:10 -08:00
Lucian Cristian d01460fe93 frr: updat to 9.0
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2023-08-17 18:35:06 +08:00
Lucian Cristian 4c9ab981e2 frr: update to 8.5.1 branch
also fixes gcc 13 compile

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2023-05-16 18:56:30 +02:00
Andre Heider e7d9c86503 treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This
fixes it and properly enables LTO.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Lucian Cristian 5f68a93874 frr: update to 8.4.2 branch
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2023-02-25 08:18:32 +08:00
Lucian Cristian f6e1fc8d8f frr: update to 8.4.1
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-12-02 19:42:30 +02:00
Lucian Cristian a3c81940b8 frr: update to latest 8.3.1 branch
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-10-25 18:02:30 -07:00
Lucian Cristian 26b64bee70 frr: update to 8.3.0
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-07-28 15:07:08 -07:00
Stijn Tintel f9424b1745 frr: drop elfutils/host dependency
The elfutils package moved to tools and elfutils/host no longer exists.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-05-19 16:55:16 -07:00
Lucian Cristian 47748e29dc frr: update to 8.2.2 branch
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-03-22 11:28:20 -07:00
Lucian Cristian 9ffd55a993 frr: update to 8.2
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-03-08 21:56:19 -08:00
Lucian Cristian 7f5dc09e5d frr: branch update, mips64 fix
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-02-16 22:15:41 -08:00
Lucian Cristian a1cdf51ba8 frr: update to latest
also fix mips compile

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2022-01-18 21:29:39 -08:00
Lucian Cristian e965229a7d frr: update to 8.1.0
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-11-12 17:20:37 -08:00
Lucian Cristian 3dd857de9e frr: fixes and update to latest
ospf running in instance mod will keep cpu to 100% so revert offending commit
if daemon is disabled in the file while running also close that daemon
also add the pythontools to support reload

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-10-22 18:22:20 -07:00
Lucian Cristian 2e4c264a54 frr: update to 7.5.1 and backports
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-03-28 22:37:02 +03:00
Lucian Cristian e6cb3a7552 frr: update to latest and backports
cherry-pick:
backport nhrpd support multicast
backport ospf updates

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-02-28 14:55:36 +02:00
Lucian Cristian adda7b8782 frr: fix init and update
fix ospfd startup when instances are enabled

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-02-09 00:42:34 +02:00
Lucian Cristian fabe4c030a frr: update 7.5 to latest backports
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-01-26 21:02:28 +02:00
Lucian Cristian 51a481ff94 frr: update stable to 2020-12-22
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-12-27 22:33:34 +02:00
Lucian Cristian faac979564 frr: update to 7.5
switch to codeload for latest patches applied to stable branch

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-12-04 14:09:37 +02:00
Lucian Cristian 13c83f11e5 frr: fix running on mips (again)
add mips fix missed on version upgrade

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-09-08 23:23:43 +03:00
Lucian Cristian 8c0d17cf5d frr: update to 7.4 and latest backports
changelogs: https://github.com/FRRouting/frr/releases/tag/frr-7.4

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-07-24 18:50:07 +03:00
Lucian Cristian 19059a5275 frr: update to 7.3.1
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-05-10 22:10:31 +03:00
Lucian Cristian 7d2c647f2d frr: makefile cleanup and misc fixes
fix mips runtime by backporting some yang changes from master
added commited fixes to 7.3
also add option for snmp support

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-05-03 03:06:20 +03:00
Rosen Penev c5e058558d
frr: add libatomic dependency
Needed for some platforms.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-29 21:30:32 -07:00
Lucian Cristian 684b68a8fd frr: update to 7.3
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-02-26 18:27:38 +02:00
Lucian Cristian 892d5eef10 frr: update to 7.2.1
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-01-20 20:43:28 +02:00
Lucian Cristian df6263b9e6 frr: add missing build options
and some backports in fixing ramips target

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2019-11-15 21:26:07 +02:00
Lucian Cristian 5cf5dc5294 frr: update to 7.2
add support to build against OpenSSL

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2019-11-02 15:08:13 +02:00
Jeffery To 53e1692ae9 treewide: Use default PKG_BUILD_DIR when possible
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-13 02:01:34 +08:00
Lucian Cristian b06b04d27c frr: don't enable backtrace
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2019-09-30 06:31:52 +03:00
Lucian Cristian c999d25d8b frr: add package
in place replacement for quagga

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2019-09-07 18:53:30 +03:00