]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
9 years agoL3VPN: using FIB's internal allocator of MPLS labels mpls-new
Jan Moskyto Matejka [Mon, 25 Apr 2016 08:41:04 +0000 (10:41 +0200)] 
L3VPN: using FIB's internal allocator of MPLS labels

9 years agoFIB: Added label allocation option
Jan Moskyto Matejka [Mon, 25 Apr 2016 08:39:18 +0000 (10:39 +0200)] 
FIB: Added label allocation option

Why is this inside FIB and not at some layer before? Simply only this
layer knows whether fib_get() just returns an existing record or inserts
a new one.

9 years agoID Map allows max and min limits
Jan Moskyto Matejka [Mon, 25 Apr 2016 08:35:08 +0000 (10:35 +0200)] 
ID Map allows max and min limits

9 years agoL3VPN: updated rte_update2() to net_addr *
Jan Moskyto Matejka [Fri, 8 Apr 2016 11:18:49 +0000 (13:18 +0200)] 
L3VPN: updated rte_update2() to net_addr *

9 years agoMerge branch 'rte-update' into mpls-new
Jan Moskyto Matejka [Fri, 8 Apr 2016 11:15:45 +0000 (13:15 +0200)] 
Merge branch 'rte-update' into mpls-new

9 years agoRoute update: move table lookup from protocols into rte_update2().
Jan Moskyto Matejka [Fri, 8 Apr 2016 11:08:03 +0000 (13:08 +0200)] 
Route update: move table lookup from protocols into rte_update2().

Many protocols do almost the same when creating a rte_update request
before calling rte_update2(). This commit should simplify the protocol
side of the route-creation routine.

9 years agoL3VPN: new protocol
Jan Moskyto Matejka [Mon, 4 Apr 2016 14:16:18 +0000 (16:16 +0200)] 
L3VPN: new protocol

9 years agoMPLS: RTA_ENCAP parsing in netlink interface
Jan Moskyto Matejka [Tue, 15 Mar 2016 15:02:19 +0000 (16:02 +0100)] 
MPLS: RTA_ENCAP parsing in netlink interface

9 years agoNetlink: MPLS routes in kernel, not fully working yet.
Jan Moskyto Matejka [Fri, 4 Mar 2016 11:55:50 +0000 (12:55 +0100)] 
Netlink: MPLS routes in kernel, not fully working yet.

TODO:
- fix static to detect MPLS stack changes on reload
- fix MPLS_ENCAP parsing on route scan

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.

9 years agoMPLS tables, static protocol MPLS support
Jan Moskyto Matejka [Thu, 3 Mar 2016 13:34:39 +0000 (14:34 +0100)] 
MPLS tables, static protocol MPLS support

9 years agoMPLS: added net_addr_mpls variant of net_addr
Jan Moskyto Matejka [Wed, 2 Mar 2016 13:37:18 +0000 (14:37 +0100)] 
MPLS: added net_addr_mpls variant of net_addr

9 years agoMPLS: Allowing MPLS stack route attribute and setup in static protocol
Jan Moskyto Matejka [Wed, 2 Mar 2016 13:36:38 +0000 (14:36 +0100)] 
MPLS: Allowing MPLS stack route attribute and setup in static protocol

9 years agoSupport of MPLS stack in static protocol and route tables
Jan Moskyto Matejka [Fri, 26 Feb 2016 10:48:13 +0000 (11:48 +0100)] 
Support of MPLS stack in static protocol and route tables

9 years agoVPN address parser fix, better display of invalid values
Jan Moskyto Matejka [Fri, 19 Feb 2016 12:59:55 +0000 (13:59 +0100)] 
VPN address parser fix, better display of invalid values

9 years agoVPN4 and VPN6 literals
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).

9 years agoROA: fixed max_text_lengths
Jan Moskyto Matejka [Wed, 3 Feb 2016 12:28:05 +0000 (13:28 +0100)] 
ROA: fixed max_text_lengths

9 years agoChannelize: rt_notify arg conversion table -> channel
Jan Moskyto Matejka [Mon, 4 Apr 2016 14:17:11 +0000 (16:17 +0200)] 
Channelize: rt_notify arg conversion table -> channel

9 years agoMerge branch 'int-new-channels' of gitlab.labs.nic.cz:labs/bird into int-new-channels
Jan Moskyto Matejka [Thu, 7 Apr 2016 07:58:31 +0000 (09:58 +0200)] 
Merge branch 'int-new-channels' of gitlab.labs.nic.cz:labs/bird into int-new-channels

9 years agocf_error(char *msg, ...) -> cf_error(const char *msg, ...)
Pavel Tvrdík [Wed, 9 Mar 2016 15:48:28 +0000 (16:48 +0100)] 
cf_error(char *msg, ...) -> cf_error(const char *msg, ...)

9 years agonest/proto fix local_debug mode
Pavel Tvrdík [Wed, 9 Mar 2016 10:03:49 +0000 (11:03 +0100)] 
nest/proto fix local_debug mode

9 years agoFix typo
Pavel Tvrdík [Tue, 2 Feb 2016 17:14:53 +0000 (18:14 +0100)] 
Fix typo

9 years agoHash: typecast error fix
Jan Moskyto Matejka [Fri, 19 Feb 2016 14:51:16 +0000 (15:51 +0100)] 
Hash: typecast error fix

9 years agoUpdated RTA hashes to 32-bit values.
Jan Moskyto Matejka [Wed, 10 Feb 2016 12:26:07 +0000 (13:26 +0100)] 
Updated RTA hashes to 32-bit values.

... and reworked the hashes a bit. Also added mem_hash function
which just computes a hash of given memory block.

9 years agoFix closing flushed channel
Pavel Tvrdík [Mon, 8 Feb 2016 15:08:50 +0000 (16:08 +0100)] 
Fix closing flushed channel

Fix reading from freed memory.
  Free at: channel_set_state(c, CS_DOWN)
  Read at: WALK_LIST2_DELSAFE(c, n, x, tab->channels, table_node)

==00:00:00:00.261 24718==
==00:00:09:31.755 24718== Invalid read of size 8
==00:00:09:31.755 24718==    at 0x4061BA: rt_prune_table (rt-table.c:1688)
==00:00:09:31.755 24718==    by 0x405D5E: rt_event (rt-table.c:1559)
==00:00:09:31.755 24718==    by 0x45D089: ev_run (event.c:85)
==00:00:09:31.755 24718==    by 0x45D158: ev_run_list (event.c:142)
==00:00:09:31.755 24718==    by 0x462814: io_loop (io.c:2412)
==00:00:09:31.755 24718==    by 0x468712: main (main.c:833)
==00:00:09:31.755 24718==  Address 0x5601538 is 136 bytes inside a block of size 304 free'd
==00:00:09:31.755 24718==    at 0x4C29D2A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==00:00:09:31.755 24718==    by 0x46FF3E: rfree (resource.c:166)
==00:00:09:31.755 24718==    by 0x470309: mb_free (resource.c:415)
==00:00:09:31.755 24718==    by 0x406A6B: rt_unlock_table (rt-table.c:1921)
==00:00:09:31.755 24718==    by 0x40DAE3: channel_do_down (proto.c:297)
==00:00:09:31.755 24718==    by 0x40DD46: channel_set_state (proto.c:359)
==00:00:09:31.755 24718==    by 0x4061AD: rt_prune_table (rt-table.c:1692)
==00:00:09:31.755 24718==    by 0x405D5E: rt_event (rt-table.c:1559)
==00:00:09:31.755 24718==    by 0x45D089: ev_run (event.c:85)
==00:00:09:31.755 24718==    by 0x45D158: ev_run_list (event.c:142)
==00:00:09:31.755 24718==    by 0x462814: io_loop (io.c:2412)
==00:00:09:31.755 24718==    by 0x468712: main (main.c:833)
==00:00:09:31.755 24718==  Block was alloc'd at
==00:00:09:31.755 24718==    at 0x4C28C10: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==00:00:09:31.755 24718==    by 0x470FBC: bird_xmalloc (xmalloc.c:29)
==00:00:09:31.755 24718==    by 0x4701E6: mb_alloc (resource.c:339)
==00:00:09:31.755 24718==    by 0x406C29: rt_commit (rt-table.c:1977)
==00:00:09:31.755 24718==    by 0x45C36D: config_do_commit (conf.c:269)
==00:00:09:31.755 24718==    by 0x45C545: config_commit (conf.c:361)
==00:00:09:31.755 24718==    by 0x4686F9: main (main.c:822)
==00:00:09:31.755 24718==

9 years agoFixed sigsegv for missing proto->rt_notify hook
Jan Moskyto Matejka [Mon, 1 Feb 2016 09:25:31 +0000 (10:25 +0100)] 
Fixed sigsegv for missing proto->rt_notify hook

If rt_notify is NULL, the export must always stay DOWN.

9 years agoBSD: compilation error fix
Jan Moskyto Matejka [Mon, 1 Feb 2016 08:22:18 +0000 (09:22 +0100)] 
BSD: compilation error fix

9 years agoChannels - explicit links between protocols and tables
Ondrej Zajicek (work) [Tue, 26 Jan 2016 10:48:58 +0000 (11:48 +0100)] 
Channels - explicit links between protocols and tables

The patch adds support for channels, structures connecting protocols and
tables and handling most interactions between them. The documentation is
missing yet.

9 years agoAdd 'GENERATE/ACCEPT FROM datetime TO datetime' to password options
Pavel Tvrdík [Thu, 28 Jan 2016 15:55:27 +0000 (16:55 +0100)] 
Add 'GENERATE/ACCEPT FROM datetime TO datetime' to password options

9 years agoio.c: fix reads from uninitialized memory
Pavel Tvrdík [Wed, 27 Jan 2016 11:14:46 +0000 (12:14 +0100)] 
io.c: fix reads from uninitialized memory

9 years agoRIP: Fix DBG output
Pavel Tvrdík [Wed, 27 Jan 2016 11:25:30 +0000 (12:25 +0100)] 
RIP: Fix DBG output

9 years agoRIPng: fixed misrejection of host routes
Jan Moskyto Matejka [Mon, 25 Jan 2016 09:29:06 +0000 (10:29 +0100)] 
RIPng: fixed misrejection of host routes

9 years agoBSD: fix no-return warning
Jan Moskyto Matejka [Thu, 21 Jan 2016 14:46:33 +0000 (15:46 +0100)] 
BSD: fix no-return warning

9 years agoBSD: Explicitly dropping routes with mismatched AF's.
Jan Moskyto Matejka [Thu, 21 Jan 2016 09:59:52 +0000 (10:59 +0100)] 
BSD: Explicitly dropping routes with mismatched AF's.

9 years agoAll the current pthread implementations are OK and working with us.
Jan Moskyto Matejka [Wed, 20 Jan 2016 14:23:17 +0000 (15:23 +0100)] 
All the current pthread implementations are OK and working with us.

No more need to disable pthread for specific BSD's.

9 years agoAdd condition for max_pxlen by ROA grammar
Pavel Tvrdík [Thu, 21 Jan 2016 09:30:08 +0000 (10:30 +0100)] 
Add condition for max_pxlen by ROA grammar

9 years agoUse net_addr pointer for net_addr_roaX
Pavel Tvrdík [Thu, 21 Jan 2016 09:24:50 +0000 (10:24 +0100)] 
Use net_addr pointer for net_addr_roaX

net_addr_roa6 is bigger than net_addr

Thanks to Ondrej Zajicek for notice

9 years agoAdd forgotten semicolon
Pavel Tvrdík [Wed, 20 Jan 2016 14:41:15 +0000 (15:41 +0100)] 
Add forgotten semicolon

9 years agoDelete old ROA code
Pavel Tvrdík [Wed, 20 Jan 2016 15:29:17 +0000 (16:29 +0100)] 
Delete old ROA code

9 years agoRewrite roa_check() for integrated BIRD
Pavel Tvrdík [Wed, 20 Jan 2016 14:38:37 +0000 (15:38 +0100)] 
Rewrite roa_check() for integrated BIRD

Thanks to Ondrej Zajicek for his support with writing this code.

9 years agoAdd ROA_* constants values to grammar of configuration
Pavel Tvrdík [Wed, 20 Jan 2016 14:06:19 +0000 (15:06 +0100)] 
Add ROA_* constants values to grammar of configuration

Add ROA_UNKNOWN, ROA_VALID and ROA_INVALID

9 years agoAdd ROA net_addr to grammar
Pavel Tvrdík [Wed, 20 Jan 2016 13:55:37 +0000 (14:55 +0100)] 
Add ROA net_addr to grammar

Example:
  protocol static
  {
    route 10.110.0.0/16 max 16 as 1000 blackhole;
    route 10.120.0.0/16 max 24 as 1000 blackhole;
    route 10.130.0.0/16 max 24 as 2000 blackhole;
    route 10.130.128.0/18 max 24 as 3000 blackhole;
    ...
  }

9 years agoBSD integration fixes
Jan Moskyto Matejka [Thu, 7 Jan 2016 13:45:01 +0000 (14:45 +0100)] 
BSD integration fixes

9 years agoNET ROAx: add max_pxlen, fix format
Pavel Tvrdík [Thu, 14 Jan 2016 09:03:50 +0000 (10:03 +0100)] 
NET ROAx: add max_pxlen, fix format

9 years agoNet address format: Do not print the -4 or -6 suffix in %I4 and %I6
Jan Moskyto Matejka [Mon, 11 Jan 2016 10:03:11 +0000 (11:03 +0100)] 
Net address format: Do not print the -4 or -6 suffix in %I4 and %I6

9 years agoNET ROAx more small changes
Pavel Tvrdík [Tue, 12 Jan 2016 10:36:28 +0000 (11:36 +0100)] 
NET ROAx more small changes

- Remove `u8 src` from net_add_roaX
- Add `u8 max_pxlen` to net_add_roaX
- Add some missing macro and functions for ROA
- Remove ASN from hash function for ROA

Thanks to Ondrej Santiago Zajicek

9 years agoROA change printf 'ASN: xxx' to 'ASxxx'
Pavel Tvrdík [Tue, 12 Jan 2016 10:27:38 +0000 (11:27 +0100)] 
ROA change printf 'ASN: xxx' to 'ASxxx'

9 years agoHidden AF_INET* inside sysdep/
Jan Moskyto Matejka [Thu, 7 Jan 2016 11:02:54 +0000 (12:02 +0100)] 
Hidden AF_INET* inside sysdep/

9 years agoBFD: split of v4/v6 sockets
Jan Moskyto Matejka [Thu, 7 Jan 2016 10:29:05 +0000 (11:29 +0100)] 
BFD: split of v4/v6 sockets

9 years agoFix check in net_route() in debug mode
Pavel Tvrdík [Thu, 7 Jan 2016 17:24:14 +0000 (18:24 +0100)] 
Fix check in net_route() in debug mode

9 years agoAdd NET ROA4/6 structures
Pavel Tvrdík [Thu, 7 Jan 2016 17:17:16 +0000 (18:17 +0100)] 
Add NET ROA4/6 structures

9 years agoExplicit ip4_addr / ip6_addr printf support
Ondrej Zajicek (work) [Tue, 29 Dec 2015 16:12:47 +0000 (17:12 +0100)] 
Explicit ip4_addr / ip6_addr printf support

9 years agoMove ID allocator to a separate file and use it also in OSPF
Ondrej Zajicek (work) [Tue, 29 Dec 2015 14:34:48 +0000 (15:34 +0100)] 
Move ID allocator to a separate file and use it also in OSPF

9 years agoNetlink: Removed forgotten if-stub (caused strange errors)
Jan Moskyto Matejka [Tue, 29 Dec 2015 12:01:00 +0000 (13:01 +0100)] 
Netlink: Removed forgotten if-stub (caused strange errors)

9 years agoFollow-up work on integration
Ondrej Zajicek (work) [Thu, 24 Dec 2015 14:52:03 +0000 (15:52 +0100)] 
Follow-up work on integration

9 years agoBetter fix of missing AF_INET6? definition in lib/socket.h
Jan Moskyto Matejka [Tue, 22 Dec 2015 08:45:09 +0000 (09:45 +0100)] 
Better fix of missing AF_INET6? definition in lib/socket.h

Moved the code to sysdep.

9 years agoModify FIB_WALK() and FIB_ITERATE() to work with new FIB code
Ondrej Zajicek (work) [Mon, 21 Dec 2015 19:16:05 +0000 (20:16 +0100)] 
Modify FIB_WALK() and FIB_ITERATE() to work with new FIB code

Returned user data pointers have offset relative to fib_node.

9 years agoBSD wants to include sys/socket.h in lib/socket.h (AF_INET6? definitions)
Jan Moskyto Matejka [Mon, 21 Dec 2015 17:23:08 +0000 (18:23 +0100)] 
BSD wants to include sys/socket.h in lib/socket.h (AF_INET6? definitions)

9 years agoFollow-up work on integration
Ondrej Zajicek (work) [Mon, 21 Dec 2015 16:17:21 +0000 (17:17 +0100)] 
Follow-up work on integration

Contains some patches from Jan Moskyto Matejka

9 years agoFollow-up work on integration
Ondrej Zajicek (work) [Mon, 21 Dec 2015 02:27:41 +0000 (03:27 +0100)] 
Follow-up work on integration

9 years agoFilter: Fix some changes in IP<->Quad implicit conversion
Ondrej Zajicek (work) [Sun, 20 Dec 2015 20:43:00 +0000 (21:43 +0100)] 
Filter: Fix some changes in IP<->Quad implicit conversion

9 years agoDelete ipv6 option from configure
Ondrej Zajicek (work) [Sun, 20 Dec 2015 18:47:36 +0000 (19:47 +0100)] 
Delete ipv6 option from configure

9 years agoNest: Reimplement fib_route() and add some consts
Ondrej Zajicek (work) [Sun, 20 Dec 2015 17:16:48 +0000 (18:16 +0100)] 
Nest: Reimplement fib_route() and add some consts

9 years agoKRT: Integration of IPv4/IPv6 in sysdep/linux
Ondrej Zajicek (work) [Sun, 20 Dec 2015 15:58:37 +0000 (16:58 +0100)] 
KRT: Integration of IPv4/IPv6 in sysdep/linux

9 years agoIntegrated address print lengths
Jan Moskyto Matejka [Fri, 18 Dec 2015 10:57:38 +0000 (11:57 +0100)] 
Integrated address print lengths

Minor changes by Ondrej Santiago Zajicek

9 years agoROA code switchoff
Jan Moskyto Matejka [Wed, 16 Dec 2015 14:30:44 +0000 (15:30 +0100)] 
ROA code switchoff

9 years agoImplemented missing prefix manipulation functions
Jan Moskyto Matejka [Wed, 16 Dec 2015 09:43:58 +0000 (10:43 +0100)] 
Implemented missing prefix manipulation functions

9 years agoStop perusing f_prefix for non-prefix-set uses
Jan Moskyto Matejka [Wed, 16 Dec 2015 09:25:12 +0000 (10:25 +0100)] 
Stop perusing f_prefix for non-prefix-set uses

Multiple changes by Ondrej Santiago Zajicek

9 years agoRemoved BITS_PER_IP_ADDRESS, MAX_PREFIX_LENGTH, BIRD_AF
Jan Moskyto Matejka [Fri, 11 Dec 2015 14:35:37 +0000 (15:35 +0100)] 
Removed BITS_PER_IP_ADDRESS, MAX_PREFIX_LENGTH, BIRD_AF

Explicit setting of AF_INET(6|) in IP socket creation. BFD set to listen
on v6, without setting the V6ONLY flag to catch both v4 and v6 traffic.

Squashing and minor changes by Ondrej Santiago Zajicek

9 years agoNetlink and BSD: Integrating IPv4 and IPv6
Jan Moskyto Matejka [Mon, 7 Dec 2015 15:24:18 +0000 (16:24 +0100)] 
Netlink and BSD: Integrating IPv4 and IPv6

Squashing and minor changes by Ondrej Santiago Zajicek

9 years agoMerge branch 'master' into int-new
Ondrej Zajicek (work) [Wed, 25 Nov 2015 13:24:35 +0000 (14:24 +0100)] 
Merge branch 'master' into int-new

9 years agoMD5: Mormalize naming style
Pavel Tvrdík [Fri, 13 Nov 2015 15:08:28 +0000 (16:08 +0100)] 
MD5: Mormalize naming style

9 years agoMerge branch 'master' into rip-new
Ondrej Zajicek (work) [Tue, 24 Nov 2015 14:21:11 +0000 (15:21 +0100)] 
Merge branch 'master' into rip-new

9 years agoNetlink: attribute validation before parsing
Jan Moskyto Matejka [Tue, 10 Nov 2015 13:59:41 +0000 (14:59 +0100)] 
Netlink: attribute validation before parsing

Wanted netlink attributes are defined in a table, specifying
their size and neediness. Removing the long conditions that did the
validation before.

Also parsing IPv4 and IPv6 versions regardless on the IPV6 macro.

9 years agoSome consts for function arguments
Ondrej Zajicek (work) [Tue, 24 Nov 2015 12:52:26 +0000 (13:52 +0100)] 
Some consts for function arguments

Patch from Pavel Tvrdik

9 years agoMinor changes to SHA hash functions
Ondrej Zajicek (work) [Tue, 24 Nov 2015 12:47:28 +0000 (13:47 +0100)] 
Minor changes to SHA hash functions

9 years agoMerge commit 'origin/crypto-hash^'
Ondrej Zajicek (work) [Mon, 23 Nov 2015 10:32:18 +0000 (11:32 +0100)] 
Merge commit 'origin/crypto-hash^'

9 years agoNest: Fix bug in device proto
Ondrej Zajicek (work) [Mon, 23 Nov 2015 10:13:40 +0000 (11:13 +0100)] 
Nest: Fix bug in device proto

If an interface address notification is received during device protocol
shutdown/restart, BIRD crashed.

Thanks to Wei Huang for the bugreport.

9 years agoAdd SHA-384/512 and HMAC-SHA-384/512 crypto hash
Pavel Tvrdík [Fri, 13 Nov 2015 15:14:36 +0000 (16:14 +0100)] 
Add SHA-384/512 and HMAC-SHA-384/512 crypto hash

9 years agoAdd SHA-224/256 and HMAC-SHA-224/256 crypto hash
Pavel Tvrdík [Fri, 13 Nov 2015 15:13:15 +0000 (16:13 +0100)] 
Add SHA-224/256 and HMAC-SHA-224/256 crypto hash

9 years agoAdd SHA1 and SHA1-HMAC crypto hash
Pavel Tvrdík [Fri, 13 Nov 2015 15:11:51 +0000 (16:11 +0100)] 
Add SHA1 and SHA1-HMAC crypto hash

9 years agoAdd get_u64() and put_u64() into lib/unaligned.h
Pavel Tvrdík [Fri, 13 Nov 2015 15:10:33 +0000 (16:10 +0100)] 
Add get_u64() and put_u64() into lib/unaligned.h

9 years agoFollow-up commit on integrated BIRD
Ondrej Zajicek (work) [Thu, 12 Nov 2015 01:03:59 +0000 (02:03 +0100)] 
Follow-up commit on integrated BIRD

Use net_addr for interface address prefixes, support net_addr in
configuration parser.

9 years agoFix compiling with --enable-debug option
Pavel Tvrdík [Mon, 9 Nov 2015 08:14:26 +0000 (09:14 +0100)] 
Fix compiling with --enable-debug option

9 years agoNetlink: Allow more than 256 routing tables.
Jan Moskyto Matejka [Tue, 3 Nov 2015 13:42:41 +0000 (14:42 +0100)] 
Netlink: Allow more than 256 routing tables.

Since 2.6.19, the netlink API defines RTA_TABLE routing attribute to
allow 32-bit routing table IDs. Using this attribute to index routing
tables at Linux, instead of 8-bit rtm_table field.

9 years agoNest: Fixes bug in missing cleanup during table removal
Ondrej Zajicek (work) [Mon, 9 Nov 2015 00:01:12 +0000 (01:01 +0100)] 
Nest: Fixes bug in missing cleanup during table removal

When a table is removed during reconfiguration, a reference was not
cleared in the old configuration, which breaks undo.

9 years agoConf: Fixes bug in symbol lookup during reconfiguration
Ondrej Zajicek (work) [Sun, 8 Nov 2015 23:42:02 +0000 (00:42 +0100)] 
Conf: Fixes bug in symbol lookup during reconfiguration

Symbol lookup by cf_find_symbol() not only did the lookup but also added
new void symbols allocated from cfg_mem linpool, which gets broken when
lookups are done outside of config parsing, which may lead to crashes
during reconfiguration.

The patch separates lookup-only cf_find_symbol() and config-modifying
cf_get_symbol(), while the later is called only during parsing. Also
new_config and cfg_mem global variables are NULLed outside of parsing.

9 years agoInitial commit on integrated BIRD
Ondrej Zajicek (work) [Thu, 5 Nov 2015 11:48:52 +0000 (12:48 +0100)] 
Initial commit on integrated BIRD

New data types net_addr and variants (in lib/net.h) describing
network addresses (prefix/pxlen). Modifications of FIB structures
to handle these data types and changing everything to use these
data types instead of prefix/pxlen pairs where possible.

The commit is WiP, some protocols are not yet updated (BGP, Kernel),
and the code contains some temporary scaffolding.

Comments are welcome.

9 years agoIO: Fix the previous bugfix
Ondrej Zajicek (work) [Tue, 3 Nov 2015 10:27:27 +0000 (11:27 +0100)] 
IO: Fix the previous bugfix

I should check it after making some trivial changes. The original patch
from Alexander has it right.

9 years agoIO: Handle fd values too big for select()
Ondrej Zajicek (work) [Tue, 3 Nov 2015 10:08:57 +0000 (11:08 +0100)] 
IO: Handle fd values too big for select()

If the number of sockets is too much for select(), we should at least
handle it with proper error messages and reject new sockets instead of
breaking the event loop.

Thanks to Alexander V. Chernikov for the patch.

9 years agoMerge branch 'master' into rip-new
Ondrej Zajicek (work) [Sat, 17 Oct 2015 12:44:34 +0000 (14:44 +0200)] 
Merge branch 'master' into rip-new

9 years agoMinor changes
Ondrej Zajicek (work) [Sat, 17 Oct 2015 12:36:53 +0000 (14:36 +0200)] 
Minor changes

9 years agoMajor RIP redesign
Ondrej Zajicek (work) [Mon, 5 Oct 2015 10:14:50 +0000 (12:14 +0200)] 
Major RIP redesign

The new RIP implementation fixes plenty of old bugs and also adds support
for many new features: ECMP support, link state support, BFD support,
configurable split horizon and more. Most options are now per-interface.

9 years agoOSPF: Fixes some issues with link detection
Ondrej Zajicek [Wed, 19 Aug 2015 09:16:23 +0000 (11:16 +0200)] 
OSPF: Fixes some issues with link detection

Thanks to Bernardo Figueiredo and Israel G. Lugo for the bugreport.

10 years agoNest: Fixes one of previous commit
Ondrej Zajicek [Tue, 28 Jul 2015 13:08:21 +0000 (15:08 +0200)] 
Nest: Fixes one of previous commit

10 years agoMinor update to test commits
Ondrej Zajicek [Tue, 28 Jul 2015 10:56:51 +0000 (12:56 +0200)] 
Minor update to test commits

10 years agoNetlink: Fixes uninitialized variable
Ondrej Zajicek [Tue, 28 Jul 2015 10:35:12 +0000 (12:35 +0200)] 
Netlink: Fixes uninitialized variable

Thanks to Pavel Tvrdik for the bugfix

10 years agoStatic: Support for BFD controlled static routes
Ondrej Zajicek [Fri, 24 Jul 2015 16:02:07 +0000 (18:02 +0200)] 
Static: Support for BFD controlled static routes

10 years agoStatic: Allows to specify attributes for static routes
Ondrej Zajicek [Mon, 20 Jul 2015 09:12:02 +0000 (11:12 +0200)] 
Static: Allows to specify attributes for static routes

The patch adds suport for specifying route attributes together with
static routes, e.g.:

 route 10.1.1.0/24 via 10.0.0.1 { krt_advmss = 1200; ospf_metric1 = 100; };

10 years agoBFD: Fixes crash after socket error
Ondrej Zajicek [Sun, 19 Jul 2015 09:39:24 +0000 (11:39 +0200)] 
BFD: Fixes crash after socket error

Thanks to Thomas King for the bugreport.

10 years agoSimplify build messages
Ondrej Zajicek [Sat, 18 Jul 2015 21:15:04 +0000 (23:15 +0200)] 
Simplify build messages

Thanks to Christian Tacke for the original patch.