]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
21 months agoMerge commit '58efa944' into thread-next
Maria Matejka [Wed, 25 Oct 2023 12:41:11 +0000 (14:41 +0200)] 
Merge commit '58efa944' into thread-next

Conflicts:
conf/cf-lex.l
conf/conf.h
conf/confbase.Y
conf/gen_keywords.m4
conf/gen_parser.m4
filter/config.Y
nest/config.Y
proto/bgp/config.Y
proto/static/config.Y

Keywords and attributes are split to separate namespaces, to avoid
collisions between regular keyword use and attribute overlay.

21 months agoMerge commit 'a5a6de58' into thread-next
Maria Matejka [Tue, 24 Oct 2023 08:39:52 +0000 (10:39 +0200)] 
Merge commit 'a5a6de58' into thread-next

Conflicts:
      filter/config.Y
      filter/data.h
      filter/data.c

21 months agoMerge commit '86598183' into thread-next
Maria Matejka [Tue, 24 Oct 2023 07:34:43 +0000 (09:34 +0200)] 
Merge commit '86598183' into thread-next

21 months agoMerge commit 'aa70e14c' into thread-next
Maria Matejka [Tue, 24 Oct 2023 07:34:06 +0000 (09:34 +0200)] 
Merge commit 'aa70e14c' into thread-next

22 months agoMerge commit 'f5140d10' into thread-next
Maria Matejka [Fri, 13 Oct 2023 13:18:07 +0000 (15:18 +0200)] 
Merge commit 'f5140d10' into thread-next

Smashed as "ours" as local changes are completely incompatible.
Relevant fixes will be merged from later commits if possible.

22 months agoMerge commit 'cce48c6c' into thread-next
Maria Matejka [Fri, 13 Oct 2023 12:02:21 +0000 (14:02 +0200)] 
Merge commit 'cce48c6c' into thread-next

22 months agoMerge commit '32427c9c' into thread-next
Maria Matejka [Fri, 13 Oct 2023 11:49:09 +0000 (13:49 +0200)] 
Merge commit '32427c9c' into thread-next

22 months agoMerge commit 'f411a19b' into thread-next
Maria Matejka [Fri, 13 Oct 2023 11:46:04 +0000 (13:46 +0200)] 
Merge commit 'f411a19b' into thread-next

22 months agoCI: Temporarily disabling test-ibgp-loop-big as it tends to hang
Maria Matejka [Fri, 13 Oct 2023 11:38:15 +0000 (13:38 +0200)] 
CI: Temporarily disabling test-ibgp-loop-big as it tends to hang

22 months agoMerge commit '0dbcc927' into thread-next
Maria Matejka [Fri, 13 Oct 2023 11:36:47 +0000 (13:36 +0200)] 
Merge commit '0dbcc927' into thread-next

22 months agoMerge commit 'fc354788' into thread-next
Maria Matejka [Fri, 13 Oct 2023 09:32:53 +0000 (11:32 +0200)] 
Merge commit 'fc354788' into thread-next

22 months agoRIP: actually remove the interface structures on shutdown
Maria Matejka [Fri, 13 Oct 2023 09:23:21 +0000 (11:23 +0200)] 
RIP: actually remove the interface structures on shutdown

This avoids a spurious route update fail when protocol shutdown collides
with an incoming RIP packet.

22 months agoMerge commit 'e3c0eca9' into thread-next
Maria Matejka [Fri, 13 Oct 2023 09:04:39 +0000 (11:04 +0200)] 
Merge commit 'e3c0eca9' into thread-next

22 months agoProtocol: better granularity of pool management
Maria Matejka [Fri, 13 Oct 2023 08:22:09 +0000 (10:22 +0200)] 
Protocol: better granularity of pool management

There are now 3 different pools with specific lifetime. All of these are
available since protocol start, anyway they get freed in different
moments.

First, pool_up gets freed immediately after announcing PS_STOP, to e.g.
stop all timers and events regularly updating the routing table when the
imports are already flushing.

Then, pool_inloop gets freed just before the protocol loop is finally
stopped, after all channels, imports and exports and other hooks are
cleaned up.

And finally, the pool itself is freed the last. Unless you explicitly
need the early free, use this pool.

22 months agoMerge commit '5121101136cb80151a9361c63dc4822afeb44eef' into thread-next
Maria Matejka [Thu, 12 Oct 2023 12:12:33 +0000 (14:12 +0200)] 
Merge commit '5121101136cb80151a9361c63dc4822afeb44eef' into thread-next

22 months agoChannel: using a separate pool for export data
Maria Matejka [Thu, 12 Oct 2023 08:07:57 +0000 (10:07 +0200)] 
Channel: using a separate pool for export data

22 months agoMerge commit 'e2f08c382a2adbbbd94c5cd7d996ce9175e0fb9c' into HEAD
Maria Matejka [Thu, 12 Oct 2023 09:38:16 +0000 (11:38 +0200)] 
Merge commit 'e2f08c382a2adbbbd94c5cd7d996ce9175e0fb9c' into HEAD

22 months agoMerge commit '4972590e' into thread-next
Maria Matejka [Thu, 12 Oct 2023 07:29:51 +0000 (09:29 +0200)] 
Merge commit '4972590e' into thread-next

22 months agoBGP/BMP: fixed build with no bmp at all
Maria Matejka [Thu, 12 Oct 2023 08:57:55 +0000 (10:57 +0200)] 
BGP/BMP: fixed build with no bmp at all

22 months agoBGP: dropped bgp_fix_attr_flags() (useless remnant from previous versions)
Maria Matejka [Thu, 12 Oct 2023 07:29:09 +0000 (09:29 +0200)] 
BGP: dropped bgp_fix_attr_flags() (useless remnant from previous versions)

22 months agoMerge commit 'b20b6a9ad204f2648ed3d62720435bb21dfb947c' into thread-next
Maria Matejka [Wed, 11 Oct 2023 20:26:41 +0000 (22:26 +0200)] 
Merge commit 'b20b6a9ad204f2648ed3d62720435bb21dfb947c' into thread-next

22 months agoBGP/BMP: Moved temporary allocation checks to the freeing functions
Maria Matejka [Wed, 11 Oct 2023 20:23:34 +0000 (22:23 +0200)] 
BGP/BMP: Moved temporary allocation checks to the freeing functions

22 months agoMerge branch 'mq-bmp-to-merge-to-v3' into thread-next
Maria Matejka [Wed, 11 Oct 2023 20:06:18 +0000 (22:06 +0200)] 
Merge branch 'mq-bmp-to-merge-to-v3' into thread-next

22 months agoMerge commit '2d988f71a5c3caf3b56426a45d4d234c4fd4fce7' into thread-next
Maria Matejka [Wed, 11 Oct 2023 12:16:39 +0000 (14:16 +0200)] 
Merge commit '2d988f71a5c3caf3b56426a45d4d234c4fd4fce7' into thread-next

22 months agoMerge commit '6e908775' into thread-next
Maria Matejka [Wed, 11 Oct 2023 11:28:30 +0000 (13:28 +0200)] 
Merge commit '6e908775' into thread-next

22 months agoMerge branch 'mq-bmp-to-merge-to-v3' into HEAD
Maria Matejka [Tue, 10 Oct 2023 13:04:26 +0000 (15:04 +0200)] 
Merge branch 'mq-bmp-to-merge-to-v3' into HEAD

22 months agoNest: Use generic rte_announce() also for import tables
Ondrej Zajicek [Mon, 21 Aug 2023 02:17:21 +0000 (04:17 +0200)] 
Nest: Use generic rte_announce() also for import tables

Remove special rte_announce_in(), so we can use generic rte_announce()
for bot feed and notifications.

22 months agoConf: Improve handling of keywords
Ondrej Zajicek [Thu, 27 Apr 2023 16:20:49 +0000 (18:20 +0200)] 
Conf: Improve handling of keywords

For whatever reason, parser allocated a symbol for every parsed keyword
in each scope. That wasted time and memory. The effect is worsened with
recent changes allowing local scopes, so keywords often promote soft
scopes (with no symbols) to real scopes.

Do not allocate a symbol for a keyword. Take care of keywords that could
be promoted to symbols (kw_sym) and do it explicitly.

22 months agoConf: Fix symbol lookup
Ondrej Zajicek [Thu, 27 Apr 2023 15:09:00 +0000 (17:09 +0200)] 
Conf: Fix symbol lookup

The symbol table used just symbol name as a key, and used a trick with
active flag to find symbols in active scopes with one hash table lookup.

The disadvantage is that it can degenerate to O(n) for negative queries
in situations where are many symbols with the same name in different
scopes.

Thanks to Yanko Kaneti for the bugreport.

22 months agoChannel: Refeeding by an auxiliary request if needed.
Maria Matejka [Fri, 29 Sep 2023 14:24:50 +0000 (16:24 +0200)] 
Channel: Refeeding by an auxiliary request if needed.

If the protocol supports route refresh on export, we keep the stop-start
method of route refeed. This applies for BGP with ERR or with export
table on, for OSPF, Babel, RIP or Pipe.

For BGP without ERR or for future selective ROA reloads, we're adding an
auxiliary export request, doing the refeed while the main export request
is running, somehow resembling the original method of BIRD 2 refeed.

There is also a refeed request queue to keep track of different refeed
requests.

22 months agoBabel: Properly handle route refeed
Maria Matejka [Wed, 27 Sep 2023 14:47:25 +0000 (16:47 +0200)] 
Babel: Properly handle route refeed

22 months agoRIP: Properly handle route refeed
Maria Matejka [Wed, 27 Sep 2023 14:29:44 +0000 (16:29 +0200)] 
RIP: Properly handle route refeed

22 months agoBabel: Remove interfaces on shutdown
Maria Matejka [Mon, 25 Sep 2023 07:31:18 +0000 (09:31 +0200)] 
Babel: Remove interfaces on shutdown

This avoids calling interface timer between Babel going
PS_DOWN and finally cleaning up the resource pool.

22 months agoKernel: refeed routes and delete them from kernel before actual shutdown
Maria Matejka [Sun, 24 Sep 2023 20:20:27 +0000 (22:20 +0200)] 
Kernel: refeed routes and delete them from kernel before actual shutdown

22 months agoProtocols have now assigned startup phases
Maria Matejka [Sun, 24 Sep 2023 21:22:43 +0000 (23:22 +0200)] 
Protocols have now assigned startup phases

For now, there are 4 phases: Necessary (device), Connector (kernel, pipe), Generator (static, rpki) and Regular.
Started and reconfigured are from Necessary to Regular, shutdown backwards.

This way, kernel can flush routes before actually being shutdown.

22 months agoIface: trace log messages cleanup
Maria Matejka [Sun, 24 Sep 2023 20:20:01 +0000 (22:20 +0200)] 
Iface: trace log messages cleanup

22 months agoTable: Added some journal and export tracing
Maria Matejka [Sun, 24 Sep 2023 10:15:26 +0000 (12:15 +0200)] 
Table: Added some journal and export tracing

22 months agoTable: Fixed feed race condition
Maria Matejka [Sun, 24 Sep 2023 09:47:24 +0000 (11:47 +0200)] 
Table: Fixed feed race condition

The problem happened like this:

1. Single route for the given net in table
2. A feed is started
3. The route is deleted (from another thread)
4. The feed finds an empty net, exports nothing, ignores journal (here is bug)
5. The route is added
6. The export transitions from FEEDING to READY
7. While processing the journal, the route deletion and addition combines into noop.

This way routes mysteriously disappeared in specific cases of link instability.

Problem fixed by explicitly marking the empty-net journal entries as processed in step 4.

22 months agoExport: More strict export state checking on change
Maria Matejka [Tue, 15 Aug 2023 10:31:28 +0000 (12:31 +0200)] 
Export: More strict export state checking on change

22 months agoProperly consted routes inside table
Maria Matejka [Mon, 3 Jul 2023 18:38:24 +0000 (20:38 +0200)] 
Properly consted routes inside table

22 months agoFilter iterator accepts lines instead of filter
Maria Matejka [Sun, 2 Jul 2023 13:10:39 +0000 (15:10 +0200)] 
Filter iterator accepts lines instead of filter

22 months agoRenamed channel class pointers
Vojtech Vilimek [Thu, 14 Sep 2023 13:21:53 +0000 (15:21 +0200)] 
Renamed channel class pointers

The channel class pointers were strangely named , not .

22 months agoLogging: fixed size logfiles behaving as mmapped ringbuffers
Maria Matejka [Thu, 24 Aug 2023 15:00:54 +0000 (17:00 +0200)] 
Logging: fixed size logfiles behaving as mmapped ringbuffers

This variant of logging avoids calling write() for every log line,
allowing for waitless logging. This makes heavy logging less heavy
and more useful for race condition debugging.

22 months agoLogging limit enforcement moved into the rfile structure
Maria Matejka [Thu, 24 Aug 2023 13:38:44 +0000 (15:38 +0200)] 
Logging limit enforcement moved into the rfile structure

22 months agoLogging now doesn't lock with each message
Maria Matejka [Mon, 21 Aug 2023 16:44:10 +0000 (18:44 +0200)] 
Logging now doesn't lock with each message

The original logging routines were locking a common mutex. This led to
massive underperformance and unwanted serialization when heavily logging
due to lock contention. Now the logging is lockless, though still
serializing on write() syscalls to the same filedescriptor.

This change also brings in a persistent logging channel structures and
thus avoids writing into active configuration data structures during
regular run.

22 months agoThreads: added a generic method to run in all threads
Maria Matejka [Mon, 21 Aug 2023 18:56:19 +0000 (20:56 +0200)] 
Threads: added a generic method to run in all threads

22 months agoLogging: Abolished stdio in favor of write() to make the logging faster.
Maria Matejka [Wed, 16 Aug 2023 13:05:36 +0000 (15:05 +0200)] 
Logging: Abolished stdio in favor of write() to make the logging faster.

22 months agoCLI: Dropping the mechanism of echoing log messages
Maria Matejka [Tue, 15 Aug 2023 15:05:58 +0000 (17:05 +0200)] 
CLI: Dropping the mechanism of echoing log messages

This is better done by running tail -f on a logfile.

22 months agoBGP: When debug { routes } is set, updates considered as loop are logged
Maria Matejka [Thu, 14 Sep 2023 12:44:35 +0000 (14:44 +0200)] 
BGP: When debug { routes } is set, updates considered as loop are logged

22 months agoEnhanced tracing of route refresh state
Maria Matejka [Thu, 14 Sep 2023 12:40:33 +0000 (14:40 +0200)] 
Enhanced tracing of route refresh state

23 months agoConf: Keywords have their default symbols
Maria Matejka [Fri, 9 Jun 2023 10:49:19 +0000 (12:49 +0200)] 
Conf: Keywords have their default symbols

This avoids unnecessary collapsed soft scopes caused by keyword symbol multiallocation.

23 months agoConf: Symbol hashes for all scopes
Maria Matejka [Mon, 2 May 2022 18:29:03 +0000 (20:29 +0200)] 
Conf: Symbol hashes for all scopes

This is a backport cherry-pick of commits
  165156beeb2926472bbceca3c103aacc3f81a8cc
  cce974e8ea992d0e6d2f649eca7880b436d91d71

from the v3.0 branch as we need symbol hashes directly inside their
scopes for more general usage than before.

23 months agoDropping empty-type const f_vals, they were copied anyway
Maria Matejka [Fri, 9 Jun 2023 09:02:05 +0000 (11:02 +0200)] 
Dropping empty-type const f_vals, they were copied anyway

23 months agoConf: Adding dummy thread-number setting for easier sharing of configuration between...
Maria Matejka [Fri, 9 Jun 2023 11:49:17 +0000 (13:49 +0200)] 
Conf: Adding dummy thread-number setting for easier sharing of configuration between v2 and v3

23 months agoBFD: Improve handling of AdminDown
Ondrej Zajicek [Tue, 29 Aug 2023 16:23:29 +0000 (18:23 +0200)] 
BFD: Improve handling of AdminDown

According to RFC 5882, system should not interpret the local or remote
session state transition to AdminDown as failure. We followed that for
the local session state but not for the remote session state (which
just triggered a transition of the local state to Down). The patch
fixes that.

We do not properly generate AdminDown on our side, so the patch is
relevant just for interoperability with other systems.

Thanks to Sunnat Samadov for the bugreport.

23 months agoHostentry application locking
Maria Matejka [Mon, 28 Aug 2023 13:36:40 +0000 (15:36 +0200)] 
Hostentry application locking

Due to a race condition between rta_apply_hostentry() and rt_update_hostentry(),
happening when a new route is inserted to a table, this commit makes it mandatory
to lock the next hop resolution table while resolving the next hop.

This may be slow, we'll fix it better in some future release

23 months agoConf: Allow keywords to be redefined by user symbols
Ondrej Zajicek [Tue, 13 Dec 2022 18:31:46 +0000 (19:31 +0100)] 
Conf: Allow keywords to be redefined by user symbols

Most syntactic constructs in BIRD configuration (e.g. protocol options)
are defined as keywords, which are distinct from symbols (user-defined
names for protocols, variables, ...). That may cause backwards
compatibility issue when a new feature is added, as it may collide with
existing user names.

We can allow keywords to be shadowed by symbols in almost all cases to
avoid this issue.

This replaces the previous mechanism, where shadowable symbols have to be
explictly added to kw_syms.

23 months agoFilter: Add separate instruction for uninitialized variable declaration
Ondrej Zajicek [Fri, 25 Aug 2023 21:14:36 +0000 (23:14 +0200)] 
Filter: Add separate instruction for uninitialized variable declaration

The previous approach (use VOID constant for variable initialization)
failed due to dynamic type check failure.

Thanks to Alexander Zubkov <green@qrator.net> for the bugreport.

23 months agoRPKI: Fix conflict in config grammar
Ondrej Zajicek [Fri, 25 Aug 2023 02:32:01 +0000 (04:32 +0200)] 
RPKI: Fix conflict in config grammar

23 months agoNest: Fix missing bar in kw_sym
Ondrej Zajicek [Fri, 25 Aug 2023 02:29:32 +0000 (04:29 +0200)] 
Nest: Fix missing bar in kw_sym

Thanks to Alexander Zubkov for the notice.

23 months agoDoc: Document bytestring type
Alexander Zubkov [Thu, 24 Aug 2023 16:04:33 +0000 (18:04 +0200)] 
Doc: Document bytestring type

23 months agoDoc: Document RAdv "custom option" configuration definition
Alexander Zubkov [Thu, 24 Aug 2023 15:41:51 +0000 (17:41 +0200)] 
Doc: Document RAdv "custom option" configuration definition

23 months agoConfig obstacles are lockless now
Maria Matejka [Mon, 21 Aug 2023 13:37:09 +0000 (15:37 +0200)] 
Config obstacles are lockless now

23 months agoConf: Use nonterminal bytestring instead of BYTETEXT
Ondrej Zajicek [Thu, 24 Aug 2023 14:59:23 +0000 (16:59 +0200)] 
Conf: Use nonterminal bytestring instead of BYTETEXT

Nonterminal bytestring allows to provide expressions to be evaluated in
places where BYTETEXT is used now: passwords, radv custom option.

Based on the patch from Alexander Zubkov <green@qrator.net>, thanks!

23 months agoFilter: Use more generic approach for intra-config expressions
Alexander Zubkov [Thu, 24 Aug 2023 02:45:55 +0000 (04:45 +0200)] 
Filter: Use more generic approach for intra-config expressions

Replace f_eval_int() function with a type-generic variant: cf_eval().
Implement similar fuction: cf_eval_int() via inline call to cf_eval().

23 months agoFilter: Add bytestring type
Alexander Zubkov [Thu, 24 Aug 2023 02:30:42 +0000 (04:30 +0200)] 
Filter: Add bytestring type

 - Rename BYTESTRING lexem to BYTETEXT, not to collide with 'bytestring' type name
 - Add bytestring type with id T_BYTESTRING (0x2c)
 - Add from_hex() filter function to create bytestring from hex string
 - Add filter test cases for bytestring type

Minor changes by committer.

23 months agoLib: Add functions for reading and writing of bytestrings
Ondrej Zajicek [Thu, 24 Aug 2023 01:04:58 +0000 (03:04 +0200)] 
Lib: Add functions for reading and writing of bytestrings

Based on patch from Alexander Zubkov, thanks!

23 months agoNest: Treat VRF interfaces as inside respective VRFs
Ondrej Zajicek [Wed, 23 Aug 2023 13:55:31 +0000 (15:55 +0200)] 
Nest: Treat VRF interfaces as inside respective VRFs

Despite not having defined 'master interface', VRF interfaces should be
treated as being inside respective VRFs. They behave as a loopback for
respective VRFs. Treating the VRF interface as inside the VRF allows
e.g. OSPF to pick up IP addresses defined on the VRF interface.

For this, we also need to tell apart VRF interfaces and regular interfaces.
Extend Netlink code to parse interface type and mark VRF interfaces with
IF_VRF flag.

Based on the patch from Erin Shepherd, thanks!

23 months agoMerge branch 'bmp'
Ondrej Zajicek [Tue, 22 Aug 2023 13:28:05 +0000 (15:28 +0200)] 
Merge branch 'bmp'

23 months agoRPM: Sync bird.spec from Fedora dist-git
Jakub Ružička [Tue, 22 Aug 2023 12:13:55 +0000 (14:13 +0200)] 
RPM: Sync bird.spec from Fedora dist-git

It seems all Fedora packages are built from epel7 branch.

23 months agoDistro: Add apkg packaging test
Jakub Ružička [Wed, 26 Apr 2023 15:26:30 +0000 (17:26 +0200)] 
Distro: Add apkg packaging test

The test was written by Maria Matejka, thanks!

Run this using

    apkg test

23 months agoDistro: Add apkg compat level
Jakub Ružička [Fri, 21 May 2021 02:48:27 +0000 (04:48 +0200)] 
Distro: Add apkg compat level

This will allow compatibility on future apkg config updates.

23 months agoDebian: Fix for arm64 cross build
Jakub Ružička [Wed, 3 May 2023 12:13:21 +0000 (14:13 +0200)] 
Debian: Fix for arm64 cross build

Mirrors debian patch.

23 months agoDebian: Use {{ now }} in changelog
Jakub Ružička [Thu, 20 Oct 2022 16:47:09 +0000 (18:47 +0200)] 
Debian: Use {{ now }} in changelog

23 months agoDebian: Bump compat level to 11
Jakub Ružička [Wed, 22 Feb 2023 18:01:31 +0000 (19:01 +0100)] 
Debian: Bump compat level to 11

Current is 13, remaining blockers:

- Debian 9 @ 11 (EOL)
- Ubuntu 18.04 @ 12 (EOL 2023-04-02)

23 months agoDebian: Sync packaging with Debian
Jakub Ružička [Tue, 7 Feb 2023 18:20:52 +0000 (19:20 +0100)] 
Debian: Sync packaging with Debian

23 months agoDebian: Add birdcl manpage
Jakub Ružička [Tue, 7 Feb 2023 18:19:57 +0000 (19:19 +0100)] 
Debian: Add birdcl manpage

Mirrors Debian package change.

23 months agoRPM: Add missing BuildRequires: autoconf
Jakub Ružička [Thu, 20 May 2021 16:07:46 +0000 (18:07 +0200)] 
RPM: Add missing BuildRequires: autoconf

23 months agoUse more proper pointers to constant bytestrings
Alexander Zubkov [Tue, 22 Aug 2023 12:44:18 +0000 (14:44 +0200)] 
Use more proper pointers to constant bytestrings

23 months agoBGP: Update RFC reference
Ondrej Zajicek [Tue, 22 Aug 2023 12:20:59 +0000 (14:20 +0200)] 
BGP: Update RFC reference

RFC 5549 was obsoleted by RFC 8950.

23 months agoBMP: Improve peer_down handling
Ondrej Zajicek [Mon, 21 Aug 2023 23:24:21 +0000 (01:24 +0200)] 
BMP: Improve peer_down handling

Move all bmp_peer_down() calls to one place and make it synchronous with
BGP session down, ensuring that BMP receives peer_down before route
withdraws from flushing.

Also refactor bmp_peer_down_() message generating code.

23 months agoBMP: Use generic channel feed instead of direct walk over rtable
Ondrej Zajicek [Mon, 21 Aug 2023 02:20:32 +0000 (04:20 +0200)] 
BMP: Use generic channel feed instead of direct walk over rtable

Now we use rt_notify() and channels for both feed and notifications,
in both import tables (pre-policy) and regular tables (post-policy).

Remove direct walk in bmp_route_monitor_snapshot().

23 months agoNest: Use generic rte_announce() also for import tables
Ondrej Zajicek [Mon, 21 Aug 2023 02:17:21 +0000 (04:17 +0200)] 
Nest: Use generic rte_announce() also for import tables

Remove special rte_announce_in(), so we can use generic rte_announce()
for bot feed and notifications.

23 months agoBMP: Fix route timestamps
Ondrej Zajicek [Fri, 18 Aug 2023 13:39:08 +0000 (15:39 +0200)] 
BMP: Fix route timestamps

23 months agoBMP: Refactor route monitoring
Ondrej Zajicek [Fri, 18 Aug 2023 01:53:58 +0000 (03:53 +0200)] 
BMP: Refactor route monitoring

 - Manage BMP state through bmp_peer, bmp_stream, bmp_table structures
 - Use channels and rt_notify() hook for route announcements
 - Add support for post-policy monitoring
 - Send End-of-RIB even when there is no routes
 - Remove rte_update_in_notify() hook from import tables
 - Update import tables to support channels
 - Add bmp_hack (no feed / no flush) flag to channels

2 years agoBMP: Remove useless buffer
Ondrej Zajicek [Tue, 1 Aug 2023 16:39:38 +0000 (18:39 +0200)] 
BMP: Remove useless buffer

2 years agoBMP: Simplify route monitoring hooks
Ondrej Zajicek [Tue, 1 Aug 2023 15:56:56 +0000 (17:56 +0200)] 
BMP: Simplify route monitoring hooks

No need for *_begin(), *_commit(), and *_end() hooks. The hook *_notify()
is sufficient for everything.

2 years agoFixed a typo in documentation
Alexander Zubkov [Fri, 30 Jun 2023 11:16:09 +0000 (13:16 +0200)] 
Fixed a typo in documentation

The problem was the "/" symbol in the prefix mask that finished the formatting definition prematurely.

2 years agoRAdv: Use new syntax for custom options
Alexander Zubkov [Mon, 26 Jun 2023 13:35:22 +0000 (15:35 +0200)] 
RAdv: Use new syntax for custom options

And use WALK_LIST macro

2 years agoRAdv: Add custom options
Alexander Zubkov [Fri, 23 Jun 2023 15:21:05 +0000 (17:21 +0200)] 
RAdv: Add custom options

Currently one can use only a predefined set of advertised options in RAdv
protocol, which are supported by BIRD configuration. It would be convenient
to be able to specify other possible options at least manually as a blob
so one should not wait until it is supported in the code, released, etc.

This idea is inspired by presentation by Ondřej Caletka at CSNOG, in which
he noticed the lack of either PREF64 option or possibility to add custom
options in various software.

The patch makes it possible to define such options with the syntax:

  other type <num> <bytestring>

2 years agoAdd hex:XYZ syntax for short hex strings
Alexander Zubkov [Fri, 23 Jun 2023 14:47:37 +0000 (16:47 +0200)] 
Add hex:XYZ syntax for short hex strings

Hexadecimal bytestring literals have minimal length to not collide
with IP addresses or regular (hexadecimal) number literals.

Allow to use shorter literals with explicit hex: prefix.

2 years agoMerge tag 'v2.13.1'
Maria Matejka [Thu, 22 Jun 2023 15:25:18 +0000 (17:25 +0200)] 
Merge tag 'v2.13.1'

2 years agoNEWS and version update stable-2.13 v2.13.1
Maria Matejka [Thu, 22 Jun 2023 14:14:12 +0000 (16:14 +0200)] 
NEWS and version update

2 years agoFilter: Fixed segfault when a case option had an empty block
Maria Matejka [Thu, 22 Jun 2023 14:07:28 +0000 (16:07 +0200)] 
Filter: Fixed segfault when a case option had an empty block

Thanks to Kobayashi_Bairuo <noc@tohunet.com> for reporting.

2 years agoBGP: Fix role check when no capability option is present
Ondrej Zajicek [Thu, 18 May 2023 23:02:57 +0000 (01:02 +0200)] 
BGP: Fix role check when no capability option is present

When an OPEN message without capability options was parsed, the remote
role field was not initialized with the proper (non-zero) default value,
so it was interpreted as if 'provider' was announced.

Thanks to Mikhail Grishin for the bugreport.

2 years agoNetlink: Allow RTA_VIA even without MPLS support
Luiz Amaral [Thu, 15 Jun 2023 13:01:50 +0000 (15:01 +0200)] 
Netlink: Allow RTA_VIA even without MPLS support

It is necessary for IPv4 over IPv6 nexthop support on FreeBSD,
and RTA_VIA is not really related to MPLS.

It breaks build for some very old systems like Debian 8 and CentOS 7,
but we generally do not support older kernels than 4.14 LTS anyway.

2 years agoCI: Remove obsolete CI targets
Ondrej Zajicek [Thu, 15 Jun 2023 13:50:18 +0000 (15:50 +0200)] 
CI: Remove obsolete CI targets

Remove build-debian-8, build-ubuntu-14_04, build-centos-7, pkg-debian-9,
and pkg-centos-7 targets.

Debian 8, Ubuntu 14.04, and CentOS 7 have unsupported kernels, Debian 9
has okay kernel, but is EOL.

2 years agoBMP: Ensure that bmp_fire_tx() does nothing when not up
Ondrej Zajicek [Thu, 8 Jun 2023 03:10:05 +0000 (05:10 +0200)] 
BMP: Ensure that bmp_fire_tx() does nothing when not up

2 years agoBMP: Support multiple instances of BMP protocol
Ondrej Zajicek [Thu, 8 Jun 2023 02:56:41 +0000 (04:56 +0200)] 
BMP: Support multiple instances of BMP protocol

Add internal BMP functions with plicit bmp_proto *p as first argument,
which allows using TRACE() macro. Keep list of BMP instances and call
internal functions. Old BMP functions are wrappers that call internal
functions for all enabled BMP instances.

Extract End-of-RIB mark into separate function.

Based on patch from Michal Zagorski <mzagorsk@akamai.com>. Thanks!

2 years agoBabel: Minor changes to RTT formatting
Ondrej Zajicek [Fri, 2 Jun 2023 00:34:05 +0000 (02:34 +0200)] 
Babel: Minor changes to RTT formatting

Use existing %t printf code and move 'ms' in CLI output to table header.