]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
13 days agoNEWS and version update stable-v3.1 v3.1.4
Maria Matejka [Mon, 22 Sep 2025 11:53:47 +0000 (13:53 +0200)] 
NEWS and version update

13 days agoBGP: Fixed crash on Notification with a message
Maria Matejka [Thu, 18 Sep 2025 16:01:37 +0000 (18:01 +0200)] 
BGP: Fixed crash on Notification with a message

Due to wrong locking order, when a peer with an established BGP
session sent a Notification with a custom message, BIRD always
crashed when trying to allocate the memory for that message.

This is a minimal crashfix for stable branches; the development
branch will get a more systematic protocol allocation rework.

Reported-By: Rob Lister <rob@lonap.net>
13 days agoCI: Ubuntu 24.10 is EOL, 25.04 is current
Maria Matejka [Mon, 22 Sep 2025 15:37:05 +0000 (17:37 +0200)] 
CI: Ubuntu 24.10 is EOL, 25.04 is current

13 days agoPipe: Do not show statistics for a stopping pipe
Maria Matejka [Mon, 22 Sep 2025 09:17:34 +0000 (11:17 +0200)] 
Pipe: Do not show statistics for a stopping pipe

There is no guarantee of such statistics to exist.

Reported-By: NIX-CZ
13 days agoBGP: Fixed invalid memory access in pending TX flush
Maria Matejka [Mon, 22 Sep 2025 08:37:16 +0000 (10:37 +0200)] 
BGP: Fixed invalid memory access in pending TX flush

When BGP is shutting down (or graceful-restarting), it must flush the
pending TX data. In quite rare cases, it may have happened that with the
export table on and shutting down a session with just the right amount
of unsent updates, the flush may have caused a step-down of the prefix
hash in the middle of walking it.

Usually, when downsizing, the prefix of the allocated block is used, but
if the block is large enough, it may have been re-used by another thread
early enough to cause some very unwanted out-of-buffer access.

Reported-By: NIX-CZ
13 days agoHash: Assert that table is not resized during HASH_WALK
Igor Putovny [Wed, 11 Jun 2025 15:44:38 +0000 (17:44 +0200)] 
Hash: Assert that table is not resized during HASH_WALK

According to measurements of hash_test, hash table with this assertion added
was not found to be significantly slower than without it on average. Therefore
we conclude that this addition would not hamper the performance of HASH_WALK.

13 days agoHash: fix buffer overflow in unit test
Igor Putovny [Wed, 11 Jun 2025 10:00:23 +0000 (12:00 +0200)] 
Hash: fix buffer overflow in unit test

This bug manifested itself as segmentation fault of t_insert2_find test when
TEST_ORDER was increased from 13 to 14. When checking the validity of filled
table, the table is iterated from 0 to MAX_NUM. However, when order is an even
number, the size of the table is lower than MAX_NUM (due to table resizing),
which caused reading beyond the allocated memory.

This bug does not apply to BIRD itself.

13 days agoROA Aggregator: Fix crash on multiwithdraw
Maria Matejka [Tue, 16 Sep 2025 10:04:21 +0000 (12:04 +0200)] 
ROA Aggregator: Fix crash on multiwithdraw

Theoretically, multiple withdraw from the best feed should never happen
but apparently there is an opportunity. We are unable to reproduce that
but it's obvious that with the old code, if the last ROA to remove is at
the end of the list, an undefined memory is checked. If it accidentally
matches (which seems to be pretty rare), BIRD may call memcpy() with
a negative length and subsequently crash on segfault.

Reported-By: NIX-CZ
13 days agoProtocol: State announcements must be always processed before leaving the loop
Katerina Kubecova [Thu, 18 Sep 2025 09:21:41 +0000 (11:21 +0200)] 
Protocol: State announcements must be always processed before leaving the loop

When using PROTO_LOCKED_FROM_MAIN or other birdloop_enter, there may be
deferred state announcements which have to be sent immediately,
otherwise the main loop would try to execute them out of the appropriate
locked context.

13 days agoProto: deferring start from proto_enable
Maria Matejka [Thu, 18 Sep 2025 10:43:44 +0000 (12:43 +0200)] 
Proto: deferring start from proto_enable

When the enable command is issued from CLI, we actually do not need
to enable the protocol right away, it's enough to run the rethink goal
function later from a deferred context. This allows us to change the
protocol's loop safely.

4 weeks agoBGP: Fixing an unlikely situation, when listening socket is created too late.
Katerina Kubecova [Thu, 4 Sep 2025 08:56:44 +0000 (10:56 +0200)] 
BGP: Fixing an unlikely situation, when listening socket is created too late.

closes #298

4 weeks agoNEWS and version update v3.1.3
Maria Matejka [Wed, 3 Sep 2025 14:16:43 +0000 (16:16 +0200)] 
NEWS and version update

4 weeks agoNest: Function aspa_check() should return ASPA_INVALID for paths containing AS_SET
Evann DREUMONT [Tue, 2 Sep 2025 14:23:34 +0000 (16:23 +0200)] 
Nest: Function aspa_check() should return ASPA_INVALID for paths containing AS_SET

The aspa_check() uses as_path_getlen() to estimate the size of a buffer,
which does not work for AS_SET segments, because as_path_getlen() returns
length 1 for them regardless of their length. This may cause buffer
overflow and crash.

As AS_SET segments are not valid for ASPA verification, we can just
handle them explicitly. See https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-aspa-verification#section-6

Co-Authored-By: Alarig <alarig@swordarmor.fr>
Minor changes by committer.

4 weeks agoCI: Add test of user and groups before and after package installation
David Petera [Wed, 20 Aug 2025 14:45:06 +0000 (16:45 +0200)] 
CI: Add test of user and groups before and after package installation

Also fix typo and add more descriptive logging to installation test

4 weeks agoCI: Add debian trixie to pipeline
David Petera [Tue, 19 Aug 2025 16:05:22 +0000 (18:05 +0200)] 
CI: Add debian trixie to pipeline

4 weeks agoCI: Fix installation on newer debian-based distros
David Petera [Wed, 20 Aug 2025 16:04:37 +0000 (18:04 +0200)] 
CI: Fix installation on newer debian-based distros

Package 'adduser' needs to be installed explicitly

4 weeks agoCI: Limit log bloating for netlab runners
Maria Matejka [Thu, 19 Jun 2025 19:12:52 +0000 (21:12 +0200)] 
CI: Limit log bloating for netlab runners

There is no useful configurable file size limit for netlab, allowing
the job to eat up all the disk. Thus we limit it directly in the script
by setting ulimit -f to 1G.

4 weeks agoCI: Fix tests for merge requests
Maria Matejka [Thu, 12 Jun 2025 09:55:21 +0000 (11:55 +0200)] 
CI: Fix tests for merge requests

The branch name check needed to be extended to include merge requests.
Now for merge requests, we generate a fake branch name.

4 weeks agoCI: Fix netlab failure artifact collection
Maria Matejka [Thu, 12 Jun 2025 09:52:32 +0000 (11:52 +0200)] 
CI: Fix netlab failure artifact collection

When implementing artifact collection for netlab,
I forgot that the coredumps and logs are generated outside the
repository. Moving the artifacts to the right place for collection.

Introduced in 3d88a81f102783bd4af3d99db1e1f14d14050d6c.

4 weeks agoCI: Note on how to trigger image rebuild when adding new dockerfile.
Jana Babovakova [Tue, 27 May 2025 10:42:13 +0000 (12:42 +0200)] 
CI: Note on how to trigger image rebuild when adding new dockerfile.

4 weeks agoCI: Added Docker for Rocky Linux 8 and 9.
Jana Babovakova [Tue, 27 May 2025 10:34:45 +0000 (12:34 +0200)] 
CI: Added Docker for Rocky Linux 8 and 9.

Updated both to supported versions 8.10, 9.5.

4 months agoNEWS and version update v3.1.2
Maria Matejka [Mon, 26 May 2025 19:08:07 +0000 (21:08 +0200)] 
NEWS and version update

4 months agoTable: Do not attempt to prune an empty table
Maria Matejka [Sat, 24 May 2025 12:16:44 +0000 (14:16 +0200)] 
Table: Do not attempt to prune an empty table

Table pruning is requested from multiple places, including
a timer. Sometimes this may happen in a race condition with
table shutdown, and therefore we explicitly refuse to schedule
pruning if the table is empty.

Also added a full-blown check that a shutting-down table
is indeed empty, and several more asserts to catch imminent crashes
before they happen in hard-to-debug places.

This fixes #254.

4 months agoShutdown: Do not export routes
Maria Matejka [Fri, 23 May 2025 18:40:22 +0000 (20:40 +0200)] 
Shutdown: Do not export routes

When shutting down, the tables start flushing routes before all protocols
are even officially aware of the shutdown. This fix allows for a fast check
whether the shutdown is already running or not, and if so, all exports are
ignored instead of processing them.

One notable exception is the kernel protocol which needs to process all
the exports normally to actually withdraw the routes.

This is a hotfix for #251 and #252. Proper fix will require protocol
state machine refactoring.

4 months agoTable: fix a race condition in export
Maria Matejka [Fri, 23 May 2025 17:17:53 +0000 (19:17 +0200)] 
Table: fix a race condition in export

The race condition happens as follows:

- channel A starts feeding
- channel B imports a route ahead of the feeding pointer
- channel A exports this route and continues feeding from the pointer
- no other import hits this specific prefix
- there is at least one channel C which has not cleared this export
- channel A computes ecnt=0 for this prefix because all exports
  have been already cleared
- the condition e >= ecnt mistakenly triggers retry

If the birdloops involved get assigned to the same thread, this race
condition then can't recover and the thread is stuck in an infinite
loop.

Fixed the race condition by moving the consistency check after actually
checking eligibility of the export, not before.

Found by randomly observing performance tests.

4 months agoASPA: fix the table subscription
Maria Matejka [Wed, 21 May 2025 11:11:10 +0000 (13:11 +0200)] 
ASPA: fix the table subscription

With the partial reloads of ROA, the ASPA reload must be different.
When merging ASPA from 2.16, we forgot about that, and the ROA digesting
procedures simply do not work with ASPA, so we instead re-add the settle
timer back.

This fixes #237.

4 months agoASPA: fix aspa_check_upstream and aspa_check_downstream parse crash
Maria Matejka [Wed, 21 May 2025 11:53:35 +0000 (13:53 +0200)] 
ASPA: fix aspa_check_upstream and aspa_check_downstream parse crash

Due to internal differences between BIRD 2 and 3, there is
FI_CURRENT_ROUTE in BIRD 3 and `val.rte == NULL` is not supported
as a shortcut for fetching the route object.

When merging, we forgot to fix this difference in the BGP config parser,
thus the constant folder failed to recognize that this is not a constant
expression, leading to accidentally dereference the NULL route pointer
in config parse time.

This fixes #247.

4 months agoBGP: fix warnings for roa_check() with no import table and route refresh on
Maria Matejka [Wed, 21 May 2025 09:06:01 +0000 (11:06 +0200)] 
BGP: fix warnings for roa_check() with no import table and route refresh on

When roa_check() appears in import filters, the autoreload is switched
on but prohibited for BGP if no import table is available. By fixing the
route refresh feature in 9edc421148fe9c5e7d6038b667ba8fafb587a1eb, we
inadvertently exposed another bug where Nest wasn't distinguishing
between locally and remotely available reload.

Whereas on manual reconfiguration, the route refresh is expected to be
invoked, the autoreload should not trigger any remote actions. Therefore
now the channels actualy indicate whether their reload hook triggers
remote actions or not. This information can be then used to decide
whether to allow autoreload or not.

4 months agoAll events are required to have their hook
Maria Matejka [Wed, 21 May 2025 08:15:49 +0000 (10:15 +0200)] 
All events are required to have their hook

This is quite an obvious requirement but it wasn't enforced properly,
leading to unnecessarily tedious debugging when an uninitialized event
is improperly enqueued.

Now BIRD is going to crash as soon as somebody tries to enqueue such
an event, not when trying to execute nothing from a clean context.

Would have helped with #238.

4 months agoMRT: Fix typo in assert
Katerina Kubecova [Tue, 13 May 2025 08:43:17 +0000 (10:43 +0200)] 
MRT: Fix typo in assert

In mrt_cli_dump_done, BIRD 3 always crashed because the assert could
never be true by a typo.

4 months agoLogs: Reset found_old flags in struct log_config
Katerina Kubecova [Mon, 12 May 2025 14:43:36 +0000 (16:43 +0200)] 
Logs: Reset found_old flags in struct log_config

When recycling an existing configuration (configure undo), the found_old
flags were already set. Due to this oversight, log files failed to
reopen on configure undo.

This fixes #188.

4 months agoCI: Add package install tests.
David Petera [Wed, 7 May 2025 14:02:09 +0000 (16:02 +0200)] 
CI: Add package install tests.

We are checking that generated BIRD packages can be installed and run.
Communication between bird and birdc is also tested.

This fixes #202

4 months agoCI: added new ASPA tests.
Jana Babovakova [Fri, 23 May 2025 10:19:59 +0000 (12:19 +0200)] 
CI: added new ASPA tests.

4 months agoGitlab: fix cleanup after failed netlab
Maria Matejka [Thu, 22 May 2025 15:57:00 +0000 (17:57 +0200)] 
Gitlab: fix cleanup after failed netlab

I forgot to add cd command to move to the right directory.

4 months agoCI: Stayrtr binary has moved elsewhere
Maria Matejka [Thu, 22 May 2025 15:21:13 +0000 (17:21 +0200)] 
CI: Stayrtr binary has moved elsewhere

Installed our local version supporting RTRv2 and ASPA

4 months agoGitlab: properly cleanup after failed netlab jobs
Maria Matejka [Sat, 10 May 2025 18:17:34 +0000 (20:17 +0200)] 
Gitlab: properly cleanup after failed netlab jobs

Also keeps artifacts from failed netlab jobs to allow for
easier debugging

4 months agoNEWS and version update v3.1.1
Maria Matejka [Tue, 13 May 2025 15:31:42 +0000 (17:31 +0200)] 
NEWS and version update

4 months agoMakefile: Fix accidentally added dry-run markers
Maria Matejka [Tue, 13 May 2025 13:47:06 +0000 (15:47 +0200)] 
Makefile: Fix accidentally added dry-run markers

4 months agoCI: Add systemd installation to Fedora Dockerfiles and make exception in bird.spec...
David Petera [Wed, 7 May 2025 13:36:14 +0000 (15:36 +0200)] 
CI: Add systemd installation to Fedora Dockerfiles and make exception in bird.spec for CentOS and OpenSUSE distros.

4 months agoBGP: end of feeding MPLS channel must not try to schedule a packet
Maria Matejka [Sat, 10 May 2025 21:35:03 +0000 (23:35 +0200)] 
BGP: end of feeding MPLS channel must not try to schedule a packet

This caused a invalid memory use when reloading MPLS channels,
occasionally forcing BIRD to an endless loop due to invalid flag
in channel map.

4 months agoConf: Fix invalid check in text_or_ipa grammar
Ondrej Zajicek [Tue, 6 May 2025 12:50:53 +0000 (14:50 +0200)] 
Conf: Fix invalid check in text_or_ipa grammar

Can cause crash when a bad expression is used.

4 months agoGitlab: add NetBSD LTO disablement to the generator
Maria Matejka [Sat, 10 May 2025 13:21:08 +0000 (15:21 +0200)] 
Gitlab: add NetBSD LTO disablement to the generator

This fixes 083e70ba4ab3f21788160975c6f1cf40e3ebd4ce

4 months agoVersion script: fix detached mode
Maria Matejka [Sat, 10 May 2025 13:02:58 +0000 (15:02 +0200)] 
Version script: fix detached mode

4 months agoBuild: call tools/version with sh
xtex [Fri, 9 May 2025 11:14:50 +0000 (07:14 -0400)] 
Build: call tools/version with sh

As tools/version has a shebang line, it should be
fine to just call it without specifying bash.

Calling bash explicitly may lead to inconsistency,
as the first line of tools/version indicates /usr/bin/sh
but the script is always executed with bash.
And, it adds bash as a new build dependency.

Signed-off-by: xtex <xtexchooser@duck.com>
4 months agoDocs: added information about difference in export table usage on v2/3.
Jana Babovakova [Fri, 9 May 2025 14:40:34 +0000 (16:40 +0200)] 
Docs: added information about difference in export table usage on v2/3.

4 months agoBGP: Fix repeated route refresh request
Maria Matejka [Thu, 8 May 2025 21:03:57 +0000 (23:03 +0200)] 
BGP: Fix repeated route refresh request

The previous approach was crashing on rapid successions of route refreshs
without even completing the previous ones. Now the newly requested refreshs
just queue and don't start multiple refreshs over and over again.

4 months agoBGP: Fix route refresh behavior
Igor Putovny [Mon, 5 May 2025 13:47:10 +0000 (15:47 +0200)] 
BGP: Fix route refresh behavior

On import filter reconfiguration, the route refresh capability is now
honored and used instead of restarting the session.

On export filter reconfiguration, the enhanced route refresh capability
is used to indicate BoRR and EoRR, unless the export table is on. In
such cases, only relevant changes are sent as proper updates.

When route refresh request is received, the enhanced route refresh
capability is now honored.

Co-Authored-By: Maria Matejka <mq@ucw.cz>
4 months agoBGP: Fix reconfiguration of import behavior modifiers
Maria Matejka [Tue, 6 May 2025 17:54:11 +0000 (19:54 +0200)] 
BGP: Fix reconfiguration of import behavior modifiers

In case of aigp, gw mode and cost change, we need to reload routes
from the peer, and do that forcibly even if import table is on.

4 months agoDisable LTO for NetBSD. It crashes the compiler for whatever reason.
Igor Putovny [Fri, 9 May 2025 17:59:40 +0000 (19:59 +0200)] 
Disable LTO for NetBSD. It crashes the compiler for whatever reason.

4 months agoAdd configure option to independently enable/disable link-time optimization
Igor Putovny [Fri, 9 May 2025 17:56:24 +0000 (19:56 +0200)] 
Add configure option to independently enable/disable link-time optimization

4 months agoFix use-after-free in thread group reconfiguration
Maria Matejka [Fri, 9 May 2025 20:09:18 +0000 (22:09 +0200)] 
Fix use-after-free in thread group reconfiguration

If a thread group with no running threads is deconfigured,
it was freed before fetching the next node in the linked list.

This rare bug caused a crash in unit tests in OpenBSD.

4 months agoMerge remote-tracking branch 'origin/master' into thread-next
Maria Matejka [Thu, 8 May 2025 20:10:10 +0000 (22:10 +0200)] 
Merge remote-tracking branch 'origin/master' into thread-next

4 months agoMerge commit '823281066' into thread-next
Maria Matejka [Thu, 8 May 2025 19:57:33 +0000 (21:57 +0200)] 
Merge commit '823281066' into thread-next

4 months agoMerge commit '1acc79b75' into thread-next
Maria Matejka [Thu, 8 May 2025 19:52:15 +0000 (21:52 +0200)] 
Merge commit '1acc79b75' into thread-next

4 months agoMerge commit '9784c76c9' into thread-next
Maria Matejka [Thu, 8 May 2025 19:49:51 +0000 (21:49 +0200)] 
Merge commit '9784c76c9' into thread-next

4 months agoDoc: building singlepage version with the appropriate template
Maria Matejka [Sat, 25 Jan 2025 22:01:11 +0000 (23:01 +0100)] 
Doc: building singlepage version with the appropriate template

This change caters for the new website automation and allows for
future online display of documentation even for development versions.

4 months agoBGP: Fix crash on too long export
Maria Matejka [Wed, 7 May 2025 13:02:24 +0000 (15:02 +0200)] 
BGP: Fix crash on too long export

When BGP route is short enough to be accepted but too long after local
changes, it is converted to withdraw. In these cases though, there was
a dangling pointer left from the prefix structure to the attribute
bucket.

That pointer is now pointing at the right place after the bucket gets
converted to withdraw.

Thanks to ix.br for catching and reporting this issue.

5 months agoNetlink: Fix fix BSD error
Maria Matejka [Tue, 6 May 2025 16:30:39 +0000 (18:30 +0200)] 
Netlink: Fix fix BSD error

There was a typo in the previous commit, -> instead of .

5 months agoNetlink: Fix BSD build error
Katerina Kubecova [Tue, 22 Apr 2025 08:41:06 +0000 (10:41 +0200)] 
Netlink: Fix BSD build error

Due to missing autotests, we forgot to catch this place in Netlink code
which builds only for FreeBSD and not for Linux.

Caused by incomplete merge from master.

5 months agoMerge branch 'kk-3.1-merging' into thread-next
Maria Matejka [Tue, 6 May 2025 15:39:47 +0000 (17:39 +0200)] 
Merge branch 'kk-3.1-merging' into thread-next

5 months agoDocker: lost files for OpenSuse 15.4, 15.5
Jana Babovakova [Mon, 14 Apr 2025 13:41:46 +0000 (15:41 +0200)] 
Docker: lost files for OpenSuse 15.4, 15.5

5 months agoTable export: Drop redundant not-seen old route nullification
Katerina Kubecova [Wed, 23 Apr 2025 11:50:53 +0000 (13:50 +0200)] 
Table export: Drop redundant not-seen old route nullification

This piece of code was accidentally reintroduced in
da838bca052b3b1e5533e2900299b4140e2d5d13 CLI: fix channel stats display

and not only is obviously not relevant to that commit, it is also
obviously wrong because exactly the same nullification has been pushed
later to rt_notify_basic().

5 months agoNEWS and version update v2.17.1
Maria Matejka [Tue, 29 Apr 2025 18:30:45 +0000 (20:30 +0200)] 
NEWS and version update

5 months agoTag checking
Maria Matejka [Tue, 29 Apr 2025 08:03:14 +0000 (10:03 +0200)] 
Tag checking

Adding a script to gather all information about the current release and
confirm that it is indeed ready for departure.

5 months agoCI: Checking that the reported version is actually the built one
Maria Matejka [Thu, 24 Apr 2025 19:06:27 +0000 (21:06 +0200)] 
CI: Checking that the reported version is actually the built one

5 months agoCI: Packages are built from the single release tgz package
Maria Matejka [Thu, 24 Apr 2025 18:46:34 +0000 (20:46 +0200)] 
CI: Packages are built from the single release tgz package

5 months agoCI: Tasks generated from a data file and template
Maria Matejka [Sat, 19 Apr 2025 18:11:02 +0000 (20:11 +0200)] 
CI: Tasks generated from a data file and template

Instead of directly editing .gitlab-ci.yml, the pipeline definition is
generated by a script from a much shorter file defining the required
tests, and templated.

5 months agoVersion and release scripting
Maria Matejka [Mon, 14 Apr 2025 13:14:05 +0000 (15:14 +0200)] 
Version and release scripting

Version number moved to a separate file as a primary source of truth.

Added tools/release-commit to make the release process a little bit faster.

Fixes #218

5 months agoCI: Immediately fail if WIP commits pushed to a stable branch
Maria Matejka [Sat, 12 Apr 2025 19:13:19 +0000 (21:13 +0200)] 
CI: Immediately fail if WIP commits pushed to a stable branch

5 months agoCI: no pipeline for WIP commits
Maria Matejka [Fri, 11 Apr 2025 19:47:45 +0000 (21:47 +0200)] 
CI: no pipeline for WIP commits

We'd like to encourage team members to push WIP work to Gitlab. Such
work often fails to build and therefore we run no tests for these
branches.

5 months agoBGP: Update obsolete RFC 8203 to newer RFC 9003
Ondrej Zajicek [Sat, 26 Apr 2025 22:48:29 +0000 (00:48 +0200)] 
BGP: Update obsolete RFC 8203 to newer RFC 9003

5 months agoBSD: Silence some warnings
Ondrej Zajicek [Fri, 25 Apr 2025 17:02:11 +0000 (19:02 +0200)] 
BSD: Silence some warnings

5 months agoBSD: Fix build on NetBSD
Ondrej Zajicek [Fri, 25 Apr 2025 16:29:28 +0000 (18:29 +0200)] 
BSD: Fix build on NetBSD

Newer NetBSD versions removed RTF_LLINFO and added RTF_LLDATA.
In FreeBSD, RTF_LLINFO is obsolete, but still defined.

5 months agoCI: Add builds on new NetBSD workers
Ondrej Zajicek [Thu, 24 Apr 2025 15:04:15 +0000 (17:04 +0200)] 
CI: Add builds on new NetBSD workers

5 months agoBGP: Fix crash when incoming connection for disabled protocol arrives
Ondrej Zajicek [Thu, 24 Apr 2025 01:01:19 +0000 (03:01 +0200)] 
BGP: Fix crash when incoming connection for disabled protocol arrives

The function bgp_find_proto() may return a protocol in DOWN state, but
ao.keys (as most protocol data) are only valid in non-DOWN state.

5 months agoTable export: ignoring invalid routes before marking them in export maps
Maria Matejka [Mon, 10 Mar 2025 19:20:32 +0000 (20:20 +0100)] 
Table export: ignoring invalid routes before marking them in export maps

Fast subsequent updates on filtered routes made the code crash because
no flags were set while ignoring them. And if these routes flapped, the
squashed export update crashed on a consistency check.

We ignore them unconditionally so we don't have to mark them at all and
we can convert them to NULL even before export maps are touched.

5 months agoTable export: consider route never seen before actually nonexistent
Maria Matejka [Mon, 10 Mar 2025 14:58:33 +0000 (15:58 +0100)] 
Table export: consider route never seen before actually nonexistent

This may trigger some spurious warnings.

5 months agoFix crash on graceful restart of a channel with ROA subscription
Maria Matejka [Mon, 10 Mar 2025 18:57:39 +0000 (19:57 +0100)] 
Fix crash on graceful restart of a channel with ROA subscription

Reported by NIX-CZ, thanks!

5 months agoSilence some warnings
Ondrej Zajicek [Wed, 23 Apr 2025 01:53:56 +0000 (03:53 +0200)] 
Silence some warnings

5 months agoCI: Add builds on new OpenBSD workers
Ondrej Zajicek [Tue, 22 Apr 2025 13:46:34 +0000 (15:46 +0200)] 
CI: Add builds on new OpenBSD workers

5 months agoMerge remote-tracking branch 'origin/master' into thread-next
Maria Matejka [Thu, 17 Apr 2025 17:32:34 +0000 (19:32 +0200)] 
Merge remote-tracking branch 'origin/master' into thread-next

5 months agoCI: Add FreeBSD 14 and netlink builds for FreeBSD 13 and 14.
Jana Babovakova [Mon, 14 Apr 2025 13:29:58 +0000 (15:29 +0200)] 
CI: Add FreeBSD 14 and netlink builds for FreeBSD 13 and 14.

5 months agoMerge remote-tracking branch 'origin/master' into thread-next
Maria Matejka [Thu, 17 Apr 2025 16:30:38 +0000 (18:30 +0200)] 
Merge remote-tracking branch 'origin/master' into thread-next

5 months agoCI: Do not rebuild Docker images for test builds for new branches
Maria Matejka [Wed, 16 Apr 2025 18:36:17 +0000 (20:36 +0200)] 
CI: Do not rebuild Docker images for test builds for new branches

New branch considers all files changed. We don't want to rebuild all
docker images for new branches; that's just a waste of time and energy.

There is a better way for future -- a much better fine-grained control
may be obtained by running secondary pipelines.

fixes #212

5 months agoMerge branch 'kk-dump-help-fix' into thread-next
Katerina Kubecova [Thu, 17 Apr 2025 14:09:06 +0000 (16:09 +0200)] 
Merge branch 'kk-dump-help-fix' into thread-next

5 months agoMerge branch 'thread-next' of gitlab.nic.cz:labs/bird into thread-next
Katerina Kubecova [Thu, 17 Apr 2025 14:08:54 +0000 (16:08 +0200)] 
Merge branch 'thread-next' of gitlab.nic.cz:labs/bird into thread-next

5 months agocli/commands: Help for multiple word command did not show properly.
Katerina Kubecova [Tue, 15 Apr 2025 15:22:33 +0000 (17:22 +0200)] 
cli/commands: Help for multiple word command did not show properly.

Possible commands are stored as keywords, each keyword has its own structure.
The last acceptable keyword structure contains string with hint. But when the hint was printed only direct child
of the base keyword was considered. If it was multi keyword command, the first child did not carry any hint to print,
so it was ignored.

Now, if we don't find a hint in a child, we recursively search in grandchildren.

5 months agoMerge remote-tracking branch 'origin/master' into thread-next
Maria Matejka [Thu, 17 Apr 2025 14:02:17 +0000 (16:02 +0200)] 
Merge remote-tracking branch 'origin/master' into thread-next

5 months agoCI: enable Fedora 42: image, build, package.
Jana Babovakova [Wed, 16 Apr 2025 08:41:34 +0000 (10:41 +0200)] 
CI: enable Fedora 42: image, build, package.

5 months agoDocker: added lost docker file for Fedora 42.
Jana Babovakova [Wed, 16 Apr 2025 08:39:50 +0000 (10:39 +0200)] 
Docker: added lost docker file for Fedora 42.

5 months agoDocker: lost files for OpenSuse 15.4, 15.5
Jana Babovakova [Mon, 14 Apr 2025 13:41:46 +0000 (15:41 +0200)] 
Docker: lost files for OpenSuse 15.4, 15.5

5 months agoDoc: Minor corrections in README and INSTALL
Jana Babovakova [Wed, 2 Apr 2025 11:44:02 +0000 (13:44 +0200)] 
Doc: Minor corrections in README and INSTALL

- Licence to License - also in code comments.
- copyright date until now.
- updated license text from gnu.org
- added command to build bird documentation.

5 months agoMerge remote-tracking branch 'origin/master' into thread-next
Ondrej Zajicek [Tue, 8 Apr 2025 16:20:02 +0000 (18:20 +0200)] 
Merge remote-tracking branch 'origin/master' into thread-next

5 months agoCI: Fix missing srcdir in path to tools/version
Ondrej Zajicek [Tue, 8 Apr 2025 15:52:12 +0000 (17:52 +0200)] 
CI: Fix missing srcdir in path to tools/version

5 months agoCI: fix test collisions between branches (again)
Maria Matejka [Tue, 17 Dec 2024 11:38:12 +0000 (12:38 +0100)] 
CI: fix test collisions between branches (again)

The build-netlab job was side-effecting the test-* jobs,
and if for some reason Gitlab scheduled build-netlab before
other pipeline's test-* jobs finished, these jobs got a wrong
binary, possibly failing. Solved by using explicit artifacts, which is
not the fastest way to do this (we could keep the binaries named there)
but it's the gitlab-right way to do this.

(Re-committed, was accidentally removed by one of previous commits)

6 months agoNEWS and version update v3.1.0
Maria Matejka [Tue, 1 Apr 2025 19:49:58 +0000 (21:49 +0200)] 
NEWS and version update

6 months agoMerge commit 'ec2acff48115badc04ebace72a635acb87a2e2b9' into thread-next
Maria Matejka [Thu, 3 Apr 2025 18:39:14 +0000 (20:39 +0200)] 
Merge commit 'ec2acff48115badc04ebace72a635acb87a2e2b9' into thread-next

6 months agoNEWS and version update v2.17
Maria Matejka [Tue, 1 Apr 2025 19:49:58 +0000 (21:49 +0200)] 
NEWS and version update

6 months agoRelease tools: fix several bugs in version number detection
Maria Matejka [Thu, 3 Apr 2025 18:03:50 +0000 (20:03 +0200)] 
Release tools: fix several bugs in version number detection

Forgetting to do proper checks, I merged a buggy release tools update
not detecting the right version (mostly if tagged).

6 months agoNEWS and version update
Maria Matejka [Tue, 1 Apr 2025 19:49:58 +0000 (21:49 +0200)] 
NEWS and version update