]>
git.ipfire.org Git - thirdparty/bird.git/log
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
Ondrej Zajicek (work) [Thu, 23 Feb 2017 15:32:07 +0000 (16:32 +0100)]
BGP: Allow exchanging LOCAL_PREF with eBGP peers
Adds option 'allow bgp_local_pref' to override the usual restriction of
LOCAL_PREF on eBGP sessions.
Thanks to Lennert Buytenhek for the patch.
Jan Moskyto Matejka [Wed, 22 Feb 2017 13:02:03 +0000 (14:02 +0100)]
Nest: names for nhu_state values
It took too much time to analyze what's the meaning of nhu_state values
so I spent less than the same amount of time documenting it.
Jan Moskyto Matejka [Wed, 22 Feb 2017 11:02:28 +0000 (12:02 +0100)]
Babel post-merge fixes
Jan Moskyto Matejka [Wed, 22 Feb 2017 10:58:04 +0000 (11:58 +0100)]
Merge branch 'int-new' into nexthop-merged
Ondrej Zajicek (work) [Mon, 20 Feb 2017 01:28:04 +0000 (02:28 +0100)]
BGP: Update RFC references
Ondrej Zajicek (work) [Mon, 20 Feb 2017 01:26:45 +0000 (02:26 +0100)]
Several minor fixes
Ondrej Zajicek (work) [Sun, 19 Feb 2017 11:02:39 +0000 (12:02 +0100)]
BGP: Update RFC references
Ondrej Zajicek (work) [Sun, 19 Feb 2017 10:25:16 +0000 (11:25 +0100)]
Doc: Fix RIP example
Thanks to Steve Leung for the bugreport.
Ondrej Zajicek (work) [Fri, 17 Feb 2017 21:54:06 +0000 (22:54 +0100)]
Static: Fix bug in static route filter expressions
During reconfiguration, old and new filter expressions in static routes
are compared using i_same() function. When filter expressions contain
function calls, it is necessary that old filter expressions are the
second argument in i_same(), as it is internally modified by i_same().
Otherwise pointers to old (and freed) data appear in the config
structure.
Thanks to Lennert Buytenhek for tracking and reporting the bug.
Ondrej Zajicek (work) [Wed, 8 Feb 2017 13:34:48 +0000 (14:34 +0100)]
Merge branch 'master' into int-new
Ondrej Zajicek (work) [Tue, 7 Feb 2017 14:55:51 +0000 (15:55 +0100)]
BGP: Minor cleanups
Ondrej Zajicek (work) [Tue, 24 Jan 2017 14:35:38 +0000 (15:35 +0100)]
Filter: Fix missing case for !~ operator
Thanks to Vincent Bernat for the patch.
Ondrej Zajicek (work) [Tue, 24 Jan 2017 01:00:35 +0000 (02:00 +0100)]
BGP: Partial support for IPv4 routes with IPv6 next hop (RFC 5549)
Mostly capability signalling
Ondrej Zajicek (work) [Sun, 22 Jan 2017 15:32:42 +0000 (16:32 +0100)]
BGP: Support for AS confederations (RFC 5065)
Ondrej Zajicek (work) [Tue, 17 Jan 2017 12:21:25 +0000 (13:21 +0100)]
Fix IP_HDRINCL usage on FreeBSD 11
FreeBSD 11 changed endianity of ip_len field from host order to network
order. Also DragonFly BSD allegedly expects network order here.
Thanks to Olivier Cochard-Labbé for the patch.
Ondrej Zajicek (work) [Fri, 23 Dec 2016 22:03:26 +0000 (23:03 +0100)]
Minor cleanups
Jan Moskyto Matejka [Tue, 9 Feb 2016 13:53:29 +0000 (14:53 +0100)]
VPN4 and VPN6 literals
From now on, protocol static accepts VPN4 and VPN6 addressess.
With some concerns about VPN6 Route Distinguishers, I finally chose
to have the same format as for VPN4 (where it is defined by RFC 4364).
Jan Moskyto Matejka [Tue, 9 Aug 2016 12:47:51 +0000 (14:47 +0200)]
MPLS: Label stack concatenation for recursive routes
Jan Moskyto Matejka [Fri, 4 Mar 2016 11:55:50 +0000 (12:55 +0100)]
Netlink: MPLS routes in kernel
Anyway, Bird is now capable to insert both MPLS routes and MPLS encap
routes into kernel.
It was (among others) needed to define platform-specific AF_MPLS to 28
as this constant has been assigned in the linux kernel.
No support for BSD now, it may be added in the future.
Jan Moskyto Matejka [Mon, 13 Jun 2016 13:49:53 +0000 (15:49 +0200)]
Static: Protocol rework wrt. struct nexthop changes; MPLS label support
Jan Moskyto Matejka [Wed, 2 Mar 2016 13:37:18 +0000 (14:37 +0100)]
MPLS: added net_addr_mpls variant of net_addr