summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)Author
2023-09-05*: Remove unused configure optionDonald Sharp
The `-disable-rr-semantics` or `--enable-rr-senamtics` configure option is never used. Let's just remove it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-08-23configure.ac: fix protobuf config乐倚
Bug description: frr_init load zebra_fpm.so error. Zebra can't find function `zfpm_protobuf_encode_route` in symbol table. Bug trigger condition ( CI have this set ): ./configure --enable-protobuf=no --enable-fpm=yes /usr/lib/frr/zebra -M fpm Cause: Macro `HAVE_PROTOBUF` and compile condition variable `HAVE_PROTOBUF` in `configure.ac ` is not consistent. When configure `disable-protobuf`, compile condition variable `HAVE_PROTOBUF` is 0, but the macro is 1. It leads to zebra load protobuf module, but protobuf module is not linked. Fix: add a same condition statement to the macro define. Signed-off-by: 乐倚 <lwb406054@alibaba-inc.com>
2023-07-06build: disable warning for m$ extension useChristian Hopps
This is adding a "disable warning" to ccls convenience config. Signed-off-by: Christian Hopps <chopps@labn.net>
2023-06-06build: FRR 9.1 development versionfrr-9.1-devJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2023-05-18doc: configure: add configure option to generate .ccls fileChristian Hopps
`ccls` needs information from FRR build configuration to work, so allow creation of a custom ccls config during autoconf. Paraphrasing the doc entry: ccls is a very powerful tool that allows dev environments to provide sophisticated IDE functionality, e.g., semantically aware jumps and code refactoring... Signed-off-by: Christian Hopps <chopps@labn.net>
2023-04-29lib: add build option to set startup log timestemp precisionChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-04-08build: Take LUA_LIBS from pkg-configDonatas Abraitis
Alpine Linux has LUA_LIB with a broken path, let's use pkg-config to grab the LUA_LIBS properly. checking for library containing lua_load... no configure: error: Lua 5.3 libraries are required to build with Lua support. No other version is supported. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-24tools: Set correct directory of vtysh for frr-reload.pyDonatas Abraitis
Before it was setting SDIR, which is /usr/lib/frr, but the vtysh binary is put under bindir (which is /usr/local by default). And running `/usr/lib/frr/frr reload` failed. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-21mgmtd: Add MGMT Transaction FrameworkYash Ranjan
This commit introduces the MGMT Transaction framework that takes management requests from one (or more) frontend client sessions, translates them into transactions and drives them to completion in co-oridination with one (or more) backend client daemons involved in the request. This commit includes the following functionalities in the changeset: 1. Introduces the actual Transaction module. Commands added related to transaction are: a. show mgmt transaction all 2. Adds support for commit rollback feature which stores upto the 10 commit buffers. Each commit has a commit-id which can be used to rollback to the exact configuration state. Commands supported for this feature are: a. show mgmt commit-history b. mgmt rollback commit-id COMMIT_ID 3. Add hidden commands to enable record various performance metrics: a. mgmt performance-measurement b. mgmt reset-statistic Co-authored-by: Pushpasis Sarkar <pushpasis@gmail.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Yash Ranjan <ranjany@vmware.com>
2023-03-21mgmtd: Bringup MGMTD daemon and datastore module supportChristian Hopps
Features added in this commit: 1. Bringup/shutdown new management daemon 'mgmtd' along with FRR. 2. Support for Startup, Candidate and Running DBs. 3. Lock/Unlock DS feature using pthread lock. 4. Load config from a JSON file onto candidate DS. 5. Save config to a JSON file from running/candidate DS. 6. Dump candidate or running DS contents on the terminal or a file in JSON/XML format. 7. Maintaining commit history (Full rollback support to be added in future commits). 8. Addition of debug commands. Co-authored-by: Yash Ranjan <ranjany@vmware.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Pushpasis Sarkar <pushpasis@gmail.com>
2023-02-07Merge pull request #12707 from donaldsharp/missed_enumsDonatas Abraitis
Missed enums
2023-02-07build: FRR 9.0 development versionfrr-9.0-devDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31*: Add -Wswitch-enum to buildDonald Sharp
The -Wswitch-enum will allow the compiler to warn us when a developer creates a switch over a enum and is using `default:` when they should be iterating over every enum Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-27build: enable format string warningsDavid Lamparter
I thought these were included in `-Wall -Wextra`, but apparently not. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-12-08build: pim6d is Linux onlyDavid Lamparter
This stops breaking build on FreeBSD. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-12-01build: enable pim6d by defaultMark Stapp
Change configure.ac so that pim6d is enabled by default; a command-line option can disable it. Signed-off-by: Mark Stapp <mjs@labn.net>
2022-11-07lib: Add PCRE2 supportDonatas Abraitis
Some results: ``` ==== PCRE ==== % ./a.out "^65001" "65001" comparing: ^65001 / 65001 ret status: 0 [14:31] donatas-pc donatas /home/donatas % ./a.out "^65001_" "65001" comparing: ^65001_ / 65001 ret status: 0 ===== PCRE2 ===== % ./a.out "^65001" "65001" comparing: ^65001 / 65001 ret status: 0 [14:30] donatas-pc donatas /home/donatas % ./a.out "^65001_" "65001" comparing: ^65001_ / 65001 ret status: 1 ``` Seems that if using PCRE2, we need to escape outer `()` chars and `|`. Sounds like a bug. But this is only with some older PCRE2 versions. With >= 10.36, I wasn't able to reproduce this, everything is fine and working as expected. Adding _FRR_PCRE2_POSIX definition because pcre2posix.h does not have include's guard. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-10-26build, vtysh: extract vtysh commands from .xrefDavid Lamparter
Rather than running selected source files through the preprocessor and a bunch of perl regex'ing to get the list of all DEFUNs, use the data collected in frr.xref. This not only eliminates issues we've been having with preprocessor failures due to nonexistent header files, but is also much faster. Where extract.pl would take 5s, this now finishes in 0.2s. And since this is a non-parallelizable build step towards the end of the build (dependent on a lot of other things being done already), the speedup is actually noticeable. Also files containing CLI no longer need to be listed in `vtysh_scan` since the .xref data covers everything. `#ifndef VTYSH_EXTRACT_PL` checks are equally obsolete. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-13Merge pull request #11980 from isabelladeleon12/set_overload_startupRuss White
isisd: Add support for set-overload on-startup
2022-10-12isisd: Add JSON object functions to save overload status between restarts.Isabella de Leon
Signed-off-by: Isabella de Leon <ideleon@microsoft.com>
2022-10-04build: FRR 8.5 development versionfrr-8.5-devDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-01configure: Check for readline() function instead of mainKhem Raj
main is not a function found in libreadline, its better to check for a function thats provided by it. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-07pim6d: Disable pim6d compilation by defaultMobashshera Rasool
By default, disable pim6d compilation. If someone wants to enable the compilation, should use ./configure option with --enable-pim6d. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-06-27configure, zebra: include DPDK headers and shared libs in the dp-dpdk buildAnuradha Karuppiah
Signed-off-by: Donald Sharp <sharpd@nvidia.com> -> Moved new capabilities needed to under HAVE_DPDK Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2022-06-27zebra: infastructure for the new dataplane pluginAnuradha Karuppiah
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2022-06-09lib: Require at least 2.1.42 version of sysrepo when compilingDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-07build: FRR 8.4 development versionfrr-8.4-devDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-07Merge pull request #11158 from cyberstormdotmu/masterPushpasis Sarkar
lib/md5,lib/sha256: Use explicit_bzero to clean up sensitive data.
2022-05-31lib/md5,lib/sha256: Use explicit_bzero to clean up sensitive data.Loganaden Velvindron
explicit_bzero() is available as an API to clean up sensitive data and avoid compiler optimizations that remove calls to memset() or bzero(). Signed-off-by: Loganaden Velvindron <logan@cyberstorm.mu>
2022-05-10configure: Require librtr >= 0.8.0Donatas Abraitis
We ship 0.8.0 in our repos. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-10configure: Drop trailing whitespacesDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-04-20Merge pull request #10961 from opensourcerouting/build-ms-extDonald Sharp
build: enable `-fms-extensions`
2022-04-19*: Fix spelling of neccessaryDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-04build: enable `-fms-extensions`David Lamparter
This eases incorporating fields from/"subclassing" another struct. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-31build: stick `-g` into LDFLAGSDavid Lamparter
Without `-g` in LDFLAGS we won't get debug info even if it's enabled in CFLAGS. Since we're controlling debug info through CFLAGS, there's no harm in always having `-g` in LDFLAGS. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-28vtysh: show live log messagesDavid Lamparter
https://www.youtube.com/watch?v=8psFQCEgA18 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-26Merge pull request #9947 from mjstapp/mpls_incomingDavid Lamparter
2022-02-25build: correct help output about netlink debugMark Stapp
The configure flag _disables_ netlink debug; make the help text match that. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
2022-02-16pim6d: IPv6-adjust mroute codeDavid Lamparter
This is just hitting the pim_mroute code with a hammer until it doesn't print warnings anymore. This is NOT quite tested or working yet, it just compiles. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-09ospf6d: Stitching the auth trailer code with rest of ospf6.Abhinay Ramesh
Problem Statement: ================== RFC 7166 support for OSPF6 in FRR code. RCA: ==== This feature is newly supported in FRR Fix: ==== Core functionality implemented in previous commit is stitched with rest of ospf6 code as part of this commit. Risk: ===== Low risk Tests Executed: =============== Have executed the combination of commands. Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
2022-02-08Merge pull request #8458 from opensourcerouting/xref-5424Donald Sharp
lib: RFC5424 syslog support
2022-02-01build: FRR 8.3 development versionfrr-8.3-devDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2022-01-17build: check for sendmmsg() and struct mmsghdrDavid Lamparter
These will be used by the RFC5424 log target. Signed-off-by: David Lamparter <equinox@diac24.net>
2022-01-06build: add "--with-service-timeout" in configure.acanlan_cs
On lower CPU with lots of static routes, it will cost more than 2 minutes. 2 minutes is the default timeout value, we can adjust it by configure: ./configure --with-service-timeout=<digit> Signed-off-by: anlan_cs <anlan_cs@tom.com>
2021-12-16configure.ac: fix enable_bmp typoFabrice Fontaine
enable_bmp doesn't exist, use enable_bgp_bmp Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-12-15configure.ac: drop --enable-pcep option and HAVE_PATHD_PCEPFabrice Fontaine
Drop --enable-pcep option and HAVE_PATHD_PCEP which does nothing since https://github.com/FRRouting/frr/commit/749714731ee9a59ae39be77e7db3915ce3ad0bd8 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-11-30Merge pull request #9798 from abuibrahim/masterQuentin Young
fix broken northbound confd
2021-11-11yang: confd: compile yang modules to fxsRuslan Babayev
Signed-off-by: Ruslan Babayev <ruslan@babayev.com>
2021-11-11build: link libcrypt & libdl to libfrr onlyDavid Lamparter
They're not needed elsewhere. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-11-11build: link libelf to clippy onlyDavid Lamparter
It's not needed elsewhere & generates a bogus dependency. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>