]>
git.ipfire.org Git - thirdparty/bird.git/log
Michal 'vorner' Vaner [Thu, 10 Aug 2017 10:32:30 +0000 (12:32 +0200)]
Fix bird.conf example
Make it syntactically correct, so it is accepted.
Ondrej Zajicek (work) [Wed, 9 Aug 2017 10:46:27 +0000 (12:46 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Wed, 9 Aug 2017 10:41:44 +0000 (12:41 +0200)]
RAdv: Fix typo
Michal 'vorner' Vaner [Tue, 8 Aug 2017 12:40:51 +0000 (14:40 +0200)]
RAdv: Style updates
Adapt the naming conventions to be a bit closer to the other protocols.
proto_radv -> radv_proto
struct radv_proto *ra -> struct radv_proto *p
struct proto *p -> struct proto *P
Michal 'vorner' Vaner [Tue, 8 Aug 2017 12:40:51 +0000 (14:40 +0200)]
RAdv: Style updates
Adapt the naming conventions to be a bit closer to the other protocols.
proto_radv -> radv_proto
struct radv_proto *ra -> struct radv_proto *p
struct proto *p -> struct proto *P
Michal 'vorner' Vaner [Fri, 4 Aug 2017 08:52:57 +0000 (10:52 +0200)]
radv: Fix RFC reference in comments
Michal 'vorner' Vaner [Fri, 4 Aug 2017 08:52:57 +0000 (10:52 +0200)]
radv: Fix RFC reference in comments
Martin Mares [Tue, 18 Jul 2017 21:48:25 +0000 (23:48 +0200)]
Configure: Fix a typo in checking of backtrace()
Ondrej Zajicek (work) [Tue, 4 Jul 2017 21:36:21 +0000 (23:36 +0200)]
Implement onlink flag for nexthops
Add proper support for per-nexthop onlink flag in routes to handle next
hop addresses that are not covered by interface IP ranges. Supported by
kernel and static protocols.
Thanks to Vincent Bernat for the idea.
Ondrej Zajicek (work) [Mon, 19 Jun 2017 10:46:40 +0000 (12:46 +0200)]
Filters: Do not clamp EC set values to 16 bit for EC_GENERICs
Thanks to Lennert Buytenhek <buytenh@wantstofly.org> for the patch.
Ondrej Zajicek (work) [Wed, 14 Jun 2017 10:34:43 +0000 (12:34 +0200)]
Babel: Fix pointer arithmetic in subtlv parsing
The subtlv parsing code was doing byte-based arithmetic with non-void pointers,
causing it to read beyond the end of the packet.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Ondrej Zajicek (work) [Fri, 9 Jun 2017 12:33:06 +0000 (14:33 +0200)]
Babel: Parse sub-TLVs and skip TLVs with mandatory sub-TLV
RFC6126bis formally introduces sub-TLVs to the Babel protocol, including
mandatory sub-TLVs. This adds support for parsing sub-TLVs to the Babel
protocol and skips TLVs that contain mandatory sub-TLVs, as per the spec.
For details, see section 4.4 of
https://tools.ietf.org/html/draft-ietf-babel-rfc6126bis-02
Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for the patch.
Ondrej Zajicek (work) [Fri, 9 Jun 2017 11:00:20 +0000 (13:00 +0200)]
Babel: Implement IPv6 prefix compression on outgoing updates
Previously, the Babel protocol would never use prefix compression on outgoing
updates (but would parse it on incoming ones). This adds compression of IPv6
addresses of outgoing updates.
The compression only works to the extent that the FIB is walked in lexicographic
order; i.e. a prefix is only compressed if it shares bytes with the previous
prefix in the same packet.
Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for the patch.
Ondrej Zajicek (work) [Fri, 9 Jun 2017 09:56:20 +0000 (11:56 +0200)]
Babel: Add documentation for dual-stack operation and options
This updates the documentation for the Babel protocol to mention the fact
that it now supports dual-stack operation, and adds documentation for the
new next hop options.
Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for the patch.
Ondrej Zajicek (work) [Thu, 8 Jun 2017 10:18:16 +0000 (12:18 +0200)]
Babel: Add support for dual-stack IPv4/IPv6 operation
This adds support for dual-stack v4/v6 operation to the Babel protocol.
Routing messages will be exchanged over IPv6, but IPv4 routes can be
carried in the messages being exchanged. This matches how the reference
Babel implementation (babeld) works.
The nexthop address for v4 can be configured per interface, and will
default to the first available IPv4 address on the given interface. For
symmetry, a configuration option to configure the IPv6 nexthop address
is also added.
Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for the patch.
Ondrej Zajicek (work) [Wed, 31 May 2017 12:12:03 +0000 (14:12 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Wed, 31 May 2017 11:31:03 +0000 (13:31 +0200)]
CLI: Fix bug in symbol handling introduced in previous patches
Ondrej Zajicek (work) [Tue, 30 May 2017 12:44:37 +0000 (14:44 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Tue, 30 May 2017 12:43:49 +0000 (14:43 +0200)]
Workaround for older bisons
Ondrej Zajicek (work) [Thu, 25 May 2017 21:37:50 +0000 (23:37 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Thu, 25 May 2017 21:30:39 +0000 (23:30 +0200)]
Conf: Replace keyword and symbol hash table with generic hash table.
The old hash table had fixed size, which makes it slow for config files
with large number of symbols and symbol lookups. The new one is growing
according to needs.
Ondrej Zajicek (work) [Tue, 23 May 2017 16:45:33 +0000 (18:45 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Tue, 23 May 2017 16:39:20 +0000 (18:39 +0200)]
Client: Fix isspace() calls
Function isspace() expects to get *unsigned* chars (encoded as ints),
not that it matters for plain ASCII.
Ondrej Zajicek (work) [Tue, 23 May 2017 15:22:53 +0000 (17:22 +0200)]
Change parser to handle numbers as unsigned
Lexer always parsed numbers as unsigned, but parser handled them as
signed and grammar contained many unnecessary checks for negativity.
Pavel Tvrdik [Thu, 30 Jun 2016 13:04:49 +0000 (15:04 +0200)]
Add a hint for an invalid IP prefix
bird> eval 200.210.220.0/16
Invalid IPv4 prefix 200.210.220.0/16, maybe you wanted 200.210.0.0/16
bird> eval 1000:2000::/8
Invalid IPv6 prefix 1000:2000::/8, maybe you wanted 1000::/8
Ondrej Zajicek (work) [Tue, 23 May 2017 11:12:25 +0000 (13:12 +0200)]
Minor cleanups and fixes
Ondrej Zajicek (work) [Thu, 18 May 2017 22:33:52 +0000 (00:33 +0200)]
Fix type mixing in flowspec formatting
Variable of u64 type was passed to vararg function as uint.
Ondrej Zajicek (work) [Thu, 18 May 2017 12:51:36 +0000 (14:51 +0200)]
Fix VPN-RD parsing on 32-bit systems
When shift count >= width of type the behavior is undefined.
Ondrej Zajicek (work) [Thu, 18 May 2017 12:28:03 +0000 (14:28 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Thu, 18 May 2017 12:26:57 +0000 (14:26 +0200)]
Fix some forgotten warnings
Ondrej Zajicek (work) [Thu, 18 May 2017 11:29:38 +0000 (13:29 +0200)]
Fix of the previous fix
Avoid empty macro argument to avoid default behavior.
Ondrej Zajicek (work) [Thu, 18 May 2017 10:05:09 +0000 (12:05 +0200)]
Fix minor bug in configure script
Space in action branch breaks build on some platforms.
Ondrej Zajicek (work) [Wed, 17 May 2017 15:37:27 +0000 (17:37 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Wed, 17 May 2017 15:30:23 +0000 (17:30 +0200)]
Fix of the previous commit
Ondrej Zajicek (work) [Wed, 17 May 2017 15:03:36 +0000 (17:03 +0200)]
History lib may be integrated to Readline lib
Ondrej Zajicek (work) [Wed, 17 May 2017 14:05:07 +0000 (16:05 +0200)]
Fix build on systems with dirty headers
Ondrej Zajicek (work) [Wed, 17 May 2017 12:50:00 +0000 (14:50 +0200)]
Merge remote-tracking branch 'origin/int-new' into int-new
Ondrej Zajicek (work) [Wed, 17 May 2017 12:38:04 +0000 (14:38 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Wed, 17 May 2017 11:17:40 +0000 (13:17 +0200)]
One more configure cleanup
Simplify BIRD client library checks, add proper devel header checks and
prefer dependency on just tinfo than full ncurses.
Jan Moskyto Matejka [Tue, 16 May 2017 13:47:41 +0000 (15:47 +0200)]
Client: manipulate history only if interactive
Jan Moskyto Matejka [Tue, 16 May 2017 12:31:16 +0000 (14:31 +0200)]
Linpool: default allocation size
Jan Moskyto Matejka [Tue, 16 May 2017 08:35:10 +0000 (10:35 +0200)]
Bird readline client saves its history.
Ondrej Zajicek (work) [Tue, 16 May 2017 12:18:25 +0000 (14:18 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Wed, 10 May 2017 23:29:39 +0000 (01:29 +0200)]
Remove autoconf macros for time_t and alignment
Replaced by constant compile-time expressions. CPU_STRUCT_ALIGN is not
really correct, but is consistent with the old behavior.
Ondrej Zajicek (work) [Tue, 9 May 2017 16:58:22 +0000 (18:58 +0200)]
Minor autoconf cleanups
Make indentation and quotation consistent in configure macros.
Also remove --with-sysinclude option, which was broken for 7 years
and nobody complained.
Thanks to Ruben Kerkhof for source patches.
Ondrej Zajicek (work) [Tue, 9 May 2017 14:46:41 +0000 (16:46 +0200)]
Minor autoconf cleanup and documentation update
Ondrej Zajicek (work) [Tue, 9 May 2017 11:44:02 +0000 (13:44 +0200)]
Some more autoconf cleanups
Replace integer type width detection with C99 fixed-width types.
Also remove some unused or obsolete code.
Thanks to Ruben Kerkhof for the patchset.
Jan Moskyto Matejka [Mon, 15 May 2017 10:10:51 +0000 (12:10 +0200)]
Nest: split route show into separate file
Ondrej Zajicek (work) [Tue, 9 May 2017 15:37:38 +0000 (17:37 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Tue, 9 May 2017 14:46:41 +0000 (16:46 +0200)]
Minor autoconf cleanup and documentation update
Ondrej Zajicek (work) [Tue, 9 May 2017 12:07:14 +0000 (14:07 +0200)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Tue, 9 May 2017 11:44:02 +0000 (13:44 +0200)]
Some more autoconf cleanups
Replace integer type width detection with C99 fixed-width types.
Also remove some unused or obsolete code.
Thanks to Ruben Kerkhof for the patchset.
Ondrej Zajicek (work) [Wed, 3 May 2017 10:56:17 +0000 (12:56 +0200)]
Device: Fix option 'primary'
Ondrej Zajicek (work) [Sat, 29 Apr 2017 20:14:36 +0000 (22:14 +0200)]
One last update to NEWS and example
Ondrej Zajicek (work) [Sat, 29 Apr 2017 19:49:13 +0000 (21:49 +0200)]
NEWS and version update
Ondrej Zajicek (work) [Sat, 29 Apr 2017 16:37:51 +0000 (18:37 +0200)]
BSD: Fix address scan on OpenBSD
Ondrej Zajicek (work) [Fri, 28 Apr 2017 22:36:35 +0000 (00:36 +0200)]
Minor fixes
Ondrej Zajicek (work) [Fri, 28 Apr 2017 09:19:12 +0000 (11:19 +0200)]
Merge master into int-new
Ondrej Zajicek (work) [Wed, 26 Apr 2017 15:13:45 +0000 (17:13 +0200)]
Flowspec: Max tcp mask length is 12 bits
Ondrej Zajicek (work) [Wed, 26 Apr 2017 12:38:19 +0000 (14:38 +0200)]
Doc: BIRD example update
Ondrej Zajicek (work) [Wed, 26 Apr 2017 12:11:28 +0000 (14:11 +0200)]
Test: Fix broken test for filters
Jan Moskyto Matejka [Wed, 26 Apr 2017 10:30:22 +0000 (12:30 +0200)]
Merge branch 'int-new' of gitlab.labs.nic.cz:labs/bird into int-new
Jan Moskyto Matejka [Wed, 26 Apr 2017 10:26:14 +0000 (12:26 +0200)]
Flowspec: split net_format_flowspec into several functions
Jan Moskyto Matejka [Wed, 26 Apr 2017 10:19:39 +0000 (12:19 +0200)]
Test: fixed broken test for VPN RD output
Jan Moskyto Matejka [Wed, 26 Apr 2017 08:53:48 +0000 (10:53 +0200)]
Debug: Add a Makefile rule for assembler intermediates.
The main Makefile rules directly compile to object files;
this target is only for debug purposes.
Ondrej Zajicek (work) [Tue, 25 Apr 2017 17:02:31 +0000 (19:02 +0200)]
Nest: Update of show route cmd
Some code cleanup, multiple bugfixes, allows to specify also channel
for 'show route export'. Interesting how such apparenty simple thing
like show route cmd has plenty of ugly corner cases.
Ondrej Zajicek (work) [Thu, 6 Apr 2017 15:16:49 +0000 (17:16 +0200)]
Filter: Fix reconfiguration of roa_check()
Ondrej Zajicek (work) [Wed, 5 Apr 2017 14:16:04 +0000 (16:16 +0200)]
Check validity of dest w.r.t. net_type
Allow to define static roa/flow routes without dest.
Jan Moskyto Matejka [Tue, 18 Apr 2017 11:45:50 +0000 (13:45 +0200)]
Client: separate config syntax structure for "show route for"
Jan Moskyto Matejka [Wed, 5 Apr 2017 13:11:10 +0000 (15:11 +0200)]
Nest: Fix route lookup
Jan Moskyto Matejka [Wed, 5 Apr 2017 12:26:37 +0000 (14:26 +0200)]
Adding also our copy of struct rtvia.
Jan Moskyto Matejka [Wed, 5 Apr 2017 12:15:43 +0000 (14:15 +0200)]
Include local lwtunnel.h unless found in system
Ondrej Zajicek (work) [Thu, 30 Mar 2017 12:00:08 +0000 (14:00 +0200)]
BGP: Add support for SAFI 129 (VPN multicast)
Which, in contrast to SAFI 128, does not use MPLS labels.
Ondrej Zajicek (work) [Thu, 30 Mar 2017 11:29:34 +0000 (13:29 +0200)]
Static: Support for dual-AF IGP tables
When recursive routes with hybrid next hops (e.g. IPv6 route with IPv4 next
hop) are allowed, we need both IPv4 and IPv6 IGP tables.
Jan Moskyto Matejka [Thu, 30 Mar 2017 11:52:01 +0000 (13:52 +0200)]
Client: multitable version of show route
Ondrej Zajicek (work) [Wed, 29 Mar 2017 14:10:00 +0000 (16:10 +0200)]
Netlink: Change default kernel metric to 32
This avoids collisions with non-BIRD routes in kernel tables.
Ondrej Zajicek (work) [Wed, 29 Mar 2017 13:55:39 +0000 (15:55 +0200)]
Netlink: Better handling of an error case
Ondrej Zajicek (work) [Wed, 29 Mar 2017 13:31:04 +0000 (15:31 +0200)]
BGP: Simplify igp table options
Ondrej Zajicek (work) [Wed, 29 Mar 2017 11:48:23 +0000 (13:48 +0200)]
BGP: Update list of supported standards
Ondrej Zajicek (work) [Tue, 28 Mar 2017 16:14:32 +0000 (18:14 +0200)]
Netlink: Fix device route delete
Jan Moskyto Matejka [Tue, 28 Mar 2017 15:35:57 +0000 (17:35 +0200)]
Merge branch 'int-new' of gitlab.labs.nic.cz:labs/bird into int-new
Jan Moskyto Matejka [Tue, 28 Mar 2017 15:35:32 +0000 (17:35 +0200)]
Simpler format of VPN RD
Ondrej Zajicek (work) [Tue, 28 Mar 2017 14:05:40 +0000 (16:05 +0200)]
Netlink: Fix bug in RTA_PRIORITY handling
Ondrej Zajicek (work) [Sun, 26 Mar 2017 17:20:15 +0000 (19:20 +0200)]
BGP: Support for routes with mixed-AF next hops
Covers IPv4/VPNv4 routes with IPv6 next hop (RFC 5549), IPv6 routes with
IPv4 next hop (RFC 4798) and VPNv6 routes with IPv4 next hop (RFC 4659).
Unfortunately it also makes next hop hooks more messy.
Each BGP channel now could have two IGP tables, one for IPv4 next hops,
the other for IPv6 next hops.
Ondrej Zajicek (work) [Thu, 23 Mar 2017 13:10:42 +0000 (14:10 +0100)]
BGP: Bugfix in VPN NLRI encoding
Ondrej Zajicek (work) [Wed, 22 Mar 2017 14:00:07 +0000 (15:00 +0100)]
BGP: Support for MPLS labels and VPN SAFI
Basic support for SAFI 4 and 128 (MPLS labeled IP and VPN) for IPv4 and
IPv6. Should work for route reflector, but does not properly handle
originating routes with next hop self.
Based on patches from Jan Matejka.
Jan Moskyto Matejka [Wed, 22 Mar 2017 13:54:00 +0000 (14:54 +0100)]
Merge branch 'nexthop-merged' into int-new
Jan Moskyto Matejka [Wed, 22 Mar 2017 13:53:37 +0000 (14:53 +0100)]
Filter: Check whether IP is 4 or 6
Jan Moskyto Matejka [Fri, 17 Mar 2017 14:48:09 +0000 (15:48 +0100)]
Nexthop: Fixed recursive route mpls label merging
Ondrej Zajicek (work) [Tue, 14 Mar 2017 16:18:50 +0000 (17:18 +0100)]
Minor cleanups
BTW, 'prefices' is hypercorrection, as 'prefix' is from 'praefixum' with
plural 'praefixa'.
Ondrej Zajicek (work) [Tue, 14 Mar 2017 12:46:51 +0000 (13:46 +0100)]
Some autoconf cleanups
The patch allows to use autoreconf, replaces some long obsolete
constructs and does some other minor cleanups. Also, the file
configure.in is renamed to configure.ac, as the old name has been
deprecated for a long time.
Thanks to Ruben Kerkhof for the patchset.
Ondrej Zajicek (work) [Tue, 14 Mar 2017 11:56:47 +0000 (12:56 +0100)]
BGP: Allow to specify interface for regular sessions
This may be useful if multple interfaces share the same network range.
Thanks to Fritz Grimpen for the original patch.
Ondrej Zajicek (work) [Sat, 11 Mar 2017 15:21:28 +0000 (16:21 +0100)]
BGP: Fix bug in ADD_PATH
When a BGP session with ADD_PATH is restarted and the neighbor do not
announce ADD_PATH capability during reconnect, the accept_ra_types is
still set to RA_ANY.
Thanks to Lennert Buytenhek for the bugreport
Jan Moskyto Matejka [Mon, 13 Mar 2017 12:50:32 +0000 (13:50 +0100)]
Filters: VPN Route Distinguishers, Prefix Type, Docs Update
Jan Moskyto Matejka [Thu, 9 Mar 2017 14:57:54 +0000 (15:57 +0100)]
Filter: ROA check test and mixed prefix test
Ondrej Zajicek (work) [Wed, 8 Mar 2017 15:27:18 +0000 (16:27 +0100)]
Nest: Minor fixes in show route
Ondrej Zajicek (work) [Tue, 7 Mar 2017 17:42:41 +0000 (18:42 +0100)]
Static: Minor overhaul
The patch fixes several bugs introduced in previous changes, simplifies
the protocol by handing routes uniformly, introduces asynchronous route
processing to avoid issues with separate notifications for each next-hop
in ECMP routes, and makes reconfiguration faster by avoiding quadratic
complexity.
Ondrej Zajicek (work) [Tue, 21 Feb 2017 13:56:14 +0000 (14:56 +0100)]
Nest: Allow iface-only neighbors
Ondrej Zajicek (work) [Wed, 8 Mar 2017 16:37:11 +0000 (17:37 +0100)]
Update OSPF and RIP protocol names and related documentation
Jan Moskyto Matejka [Fri, 24 Feb 2017 13:05:11 +0000 (14:05 +0100)]
Nexthop: Fixed hostentry