- Oct 16, 2024
-
-
Current implementation handles flowspec prefix length and offset only in bytes, but RFC 8956 (Dissemination of Flow Specification Rules for IPv6) Section 3.1 [1] and example in Section 3.8.2 [2] states the pattern should begin right after offset *bits*. For example, pattern "::1:1234:5678:9800:0/60-104" is currently serialized as "02 68 3c 01 12 34 56 78 98", but it should shift its pattern 4 more bits to the left: "02 68 3c 11 23 45 67 89 80". This patch implements shifting left/right for IPv6 type and use it to correct the behaviour. Test data are replaced with the correct ones. Minor changes and test vectors done by committer. [1]: https://www.rfc-editor.org/rfc/rfc8956.html#section-3.1 [2]: https://www.rfc-editor.org/rfc/rfc8956.html#section-3.8.2
-
Ondřej Zajíček authored
Simplify Flowspec initialization macros. Add examples from RFC 8955 4.3 and RFC 8956 3.8 to format tests.
-
- Oct 15, 2024
-
-
Ondřej Zajíček authored
-
Ondřej Zajíček authored
Code blocks should not be indented, as the indendation is passed to the output,
-
Minor changes by committer.
-
- Oct 09, 2024
-
-
Ondřej Zajíček authored
-
- Oct 08, 2024
-
-
Ondřej Zajíček authored
Unify grammar for set_atom and switch_atom to avoid inconsistencies between them. Fix errors in documentation related to case statement and set type. Change 'vpnrd' to 'rd' to be consistent with the filter language. Thanks to Mikhail Mayorov for bugreport.
-
- Oct 07, 2024
-
-
Ondřej Zajíček authored
Fix typo in user docs See merge request labs/bird!27
-
David Petera authored
-
- Oct 03, 2024
-
-
RPKI-To-Router (RTR) sessions seem to be similar security-sensitivity as IBGP sessions. BIRD already offered a choice of either "plain TCP" (meh) or "SSH" (secure, albeit a bit more hassle to set up than TCP-MD5). The patch adds TCP-MD5 as another option. TCP-MD5 for RTR is specified through RFC 6810 section 7.3 and RFC 8210 section 9.3. Minor changes by committer.
-
- Aug 29, 2024
-
-
Maria Matejka authored
-
Maria Matejka authored
Introduced in 08ff0af8, the additional CLI configuration wasn't properly initialized in the parse-and-exit mode due to an oversight that cli_init_unix() is not called in this mode. Thanks to Felix Friedlander for the bugreport.
-
- Aug 27, 2024
-
-
Since autoconf 2.69 and https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=76754e04fce5f6a7701bec57b057020585df2ae3 ac_test_CFLAGS is set to ${CFLAGS+y} instead of ${CFLAGS+set}. Just test that ac_test_CFLAGS is not empty, to support both cases. Signed-off-by:
Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by:
Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-
Ondřej Zajíček authored
The period of recurent timers was stored in 32b field, despite it was btime-compatible value in us. Therefore, it was limited to ~72 min, which mas okay for most purposes, except configurable MRT dump periods. Thanks to Felix Friedlander for the bugreport.
-
- Aug 01, 2024
-
-
Ondřej Zajíček authored
The socket structure has the field rbsize (receive buffer size), which controls the size of the userspace receive buffer. There is also kernel receive buffer, which in some cases may be smaller (e.g. on FreeBSD it is by default ~8k). The patch ensures that the kernel receive buffer is as large as the userspace receive buffer.
-
- Jul 30, 2024
-
-
Ondřej Zajíček authored
-
Ondřej Zajíček authored
When VRFs are used, BIRD correctly binds listening (and connecting) sockets to their VRFs but also re-binds accepted sockets to the same VRF. This is not needed as the interface bind is inherited in this case, and indeed this redundant bind causes an -EPERM if BIRD is running as non-root making BIRD close the connection and reject the peer. Thanks to Christian Svensson for the original patch and Alexander Zubkov for suggestions.
-
- Jun 27, 2024
-
-
This allows to have one main socket for the heavy operations very restricted just for the appropriate users, whereas the looking glass socket may be more open. Implemented an idea originally submitted and requested by Akamai.
-
If the user has such a need, they may configure additional sockets in the config file. This may work for e.g. some advanced access control.
-
-
-
Source: dda37842
-
- Jun 26, 2024
-
-
Ondřej Zajíček authored
-
Some vendors do not fill the checksum for IPv6 UDP packets. For interoperability with such implementations one can set UDP_NO_CHECK6_RX socket option on Linux. Thanks to Ville O for the suggestion. Minor changes by committer.
-
- May 30, 2024
-
-
Ondřej Zajíček authored
The krt_metric is a part of the primary key, so it cannot differ for route replace operation. Thanks to Leif Jakob for the bugreport.
-
Ondřej Zajíček authored
-
Ondřej Zajíček authored
-
- May 29, 2024
-
-
Ondřej Zajíček authored
-
- May 28, 2024
-
-
Ondřej Zajíček authored
-
Ondřej Zajíček authored
Move bfd_opts grammar inside BFD parser code to avoid dependences between nest and BFD grammars, which breaks when BFD build is disabled. Add dummy bfd_opts grammar rule, so protocols can use this nonterminal even with BFD disabled. Thanks to Yuri Honegger for the bugreport.
-
- May 07, 2024
-
-
Maria Matejka authored
-
- Apr 17, 2024
-
-
Ondřej Zajíček authored
-
- Apr 16, 2024
-
-
- Apr 11, 2024
-
-
Ondřej Zajíček authored
In BIRD 1, we used DD-MM-YYYY, while in BIRD 2 we switched to the usual format YYYY-MM-DD. Thanks to Janne Pisilä for the bugreport.
-
- Apr 04, 2024
-
-
Ondřej Zajíček authored
In OSPFv3-IPv4 there is no requirement that link-local next hop announced in Link-LSA must be in interface address range. Therefore, for interfaces that do not have IPv4 address we can use some loopback IP address and announce it as a next hop. Also we should accept such address.
-
- Mar 25, 2024
-
-
Maria Matejka authored
-
Maria Matejka authored
-
Maria Matejka authored
-
- Mar 22, 2024
-
-
Ondřej Zajíček authored
BFD requires defined local IP, but for nexthop with onlink there might not be such address. So we reject this combination of nexthop options. This prevent crash where such combination of options is used.