]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
8 years agoMake: Silence echo in verbose mode
Ondrej Zajicek (work) [Tue, 17 May 2016 15:59:38 +0000 (17:59 +0200)] 
Make: Silence echo in verbose mode

8 years agoBSD: Fix setkey in int-new branch
Ondrej Zajicek (work) [Tue, 17 May 2016 14:19:50 +0000 (16:19 +0200)] 
BSD: Fix setkey in int-new branch

8 years agoIO: Minor changes in socket AF handing
Ondrej Zajicek (work) [Tue, 17 May 2016 13:21:49 +0000 (15:21 +0200)] 
IO: Minor changes in socket AF handing

AF can be specified implicitly by saddr or daddr, flags SKF_V4ONLY and
SKF_V6ONLY are to be removed.

8 years agoMerge branch 'int-new' of gitlab.labs.nic.cz:labs/bird into int-new
Jan Moskyto Matejka [Fri, 13 May 2016 11:48:04 +0000 (13:48 +0200)] 
Merge branch 'int-new' of gitlab.labs.nic.cz:labs/bird into int-new

8 years agoHash: Fix of previous commit
Jan Moskyto Matejka [Fri, 13 May 2016 11:46:46 +0000 (13:46 +0200)] 
Hash: Fix of previous commit

8 years agoMerge branch 'master' into int-new
Ondrej Zajicek (work) [Thu, 12 May 2016 19:47:50 +0000 (21:47 +0200)] 
Merge branch 'master' into int-new

8 years agoMake int-new compilable again
Ondrej Zajicek (work) [Thu, 12 May 2016 19:47:29 +0000 (21:47 +0200)] 
Make int-new compilable again

8 years agoWe don't need bvsnprintf() in BIRD client
Ondrej Zajicek (work) [Thu, 12 May 2016 19:29:04 +0000 (21:29 +0200)] 
We don't need bvsnprintf() in BIRD client

8 years agoMerge remote-tracking branch 'origin/int-new' into int-new
Ondrej Zajicek (work) [Thu, 12 May 2016 16:11:12 +0000 (18:11 +0200)] 
Merge remote-tracking branch 'origin/int-new' into int-new

8 years agoMerge remote-tracking branch 'origin/master' into int-new
Ondrej Zajicek (work) [Thu, 12 May 2016 15:49:12 +0000 (17:49 +0200)] 
Merge remote-tracking branch 'origin/master' into int-new

8 years agoHash: fixed rta hashing wrt. structure padding
Jan Moskyto Matejka [Thu, 12 May 2016 14:16:25 +0000 (16:16 +0200)] 
Hash: fixed rta hashing wrt. structure padding

8 years agoMiscellaneous minor fixes
Ondrej Zajicek (work) [Thu, 12 May 2016 14:04:47 +0000 (16:04 +0200)] 
Miscellaneous minor fixes

8 years agoProg Doc: Complete several missing parameters
Pavel Tvrdik [Thu, 12 May 2016 13:49:44 +0000 (15:49 +0200)] 
Prog Doc: Complete several missing parameters

8 years agoUser Doc: Fix several typing error
Pavel Tvrdik [Thu, 12 May 2016 11:37:23 +0000 (13:37 +0200)] 
User Doc: Fix several typing error

8 years agonetlink: update struct msghdr
Stijn Tintel [Tue, 10 May 2016 13:45:35 +0000 (16:45 +0300)] 
netlink: update struct msghdr

The netlink code assumes an order for the members of struct msghdr.
This breaks recvmsg and sendmsg with musl libc on mips64. Fix this by
using designated initializers instead.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoMerge branch 'int-new' into int-new-merged
Jan Moskyto Matejka [Tue, 10 May 2016 12:30:49 +0000 (14:30 +0200)] 
Merge branch 'int-new' into int-new-merged

8 years agoMerge remote-tracking branch 'origin/rte-update' into int-new
Jan Moskyto Matejka [Tue, 10 May 2016 12:21:15 +0000 (14:21 +0200)] 
Merge remote-tracking branch 'origin/rte-update' into int-new

8 years agoPortability: Fixed C extension error generated by CLang.
Jan Moskyto Matejka [Wed, 27 Apr 2016 12:45:14 +0000 (14:45 +0200)] 
Portability: Fixed C extension error generated by CLang.

sysdep/linux/netlink.c:921:10: error: fields must have a constant size:
'variable length array in structure' extension will never be supported
    char buf[128 + KRT_METRICS_MAX*8 + nh_bufsize(a->nexthops)];
         ^
1 error generated.

8 years agoBuild system reworked to one global Makefile with includes and no nesting
Jan Moskyto Matejka [Tue, 12 Apr 2016 09:14:54 +0000 (11:14 +0200)] 
Build system reworked to one global Makefile with includes and no nesting

Also removed the lib-dir merging with sysdep. Updated #include's
accordingly.

Fixed make doc on recent Debian together with moving generated doc into
objdir.

Moved Makefile.in into root dir

Retired all.o and birdlib.a
Linking the final binaries directly from all the .o files.

8 years agoInitialize variable ifr in sk_setup()
Pavel Tvrdik [Tue, 3 May 2016 07:32:49 +0000 (09:32 +0200)] 
Initialize variable ifr in sk_setup()

==00:00:00:02.831 2468== Syscall param socketcall.setsockopt(optval) points to uninitialised byte(s)
==00:00:00:02.831 2468==    at 0x513BDEA: setsockopt (in /usr/lib/libc-2.23.so)
==00:00:00:02.831 2468==    by 0x45C7AF: sk_setup (io.c:1216)
==00:00:00:02.831 2468==    by 0x45CDFF: sk_open (io.c:1417)
==00:00:00:02.831 2468==    by 0x44B562: rip_open_socket (packets.c:740)
==00:00:00:02.831 2468==    by 0x4481A7: rip_iface_locked (rip.c:616)
==00:00:00:02.831 2468==    by 0x4133E4: olock_run_event (locks.c:177)
==00:00:00:02.831 2468==    by 0x45A6DE: ev_run (event.c:85)
==00:00:00:02.831 2468==    by 0x45A7AD: ev_run_list (event.c:142)
==00:00:00:02.831 2468==    by 0x45E0FC: io_loop (io.c:2066)
==00:00:00:02.831 2468==    by 0x463B56: main (main.c:845)
==00:00:00:02.831 2468==  Address 0xffefffd24 is on thread 1's stack
==00:00:00:02.831 2468==  in frame #1, created by sk_setup (io.c:1188)
==00:00:00:02.831 2468==  Uninitialised value was created by a stack allocation
==00:00:00:02.831 2468==    at 0x45C6BB: sk_setup (io.c:1188)

8 years agoDoc: Minor fix v1.6.0
Ondrej Zajicek (work) [Fri, 29 Apr 2016 11:25:46 +0000 (13:25 +0200)] 
Doc: Minor fix

8 years agoNEWS and version update
Ondrej Zajicek (work) [Fri, 29 Apr 2016 11:07:21 +0000 (13:07 +0200)] 
NEWS and version update

8 years agoAdd the Babel routing protocol (RFC 6126)
Ondrej Zajicek (work) [Thu, 28 Apr 2016 16:01:40 +0000 (18:01 +0200)] 
Add the Babel routing protocol (RFC 6126)

This patch implements the IPv6 subset of the Babel routing protocol.
Based on the patch from Toke Hoiland-Jorgensen, with some heavy
modifications and bugfixes.

Thanks to Toke Hoiland-Jorgensen for the original patch.

8 years agoBSD: Add the IPsec SA/SP database entries control
Ondrej Zajicek (work) [Wed, 13 Apr 2016 12:30:28 +0000 (14:30 +0200)] 
BSD: Add the IPsec SA/SP database entries control

Add code for manipulation with TCP-MD5 keys in the IPsec SA/SP database
at FreeBSD systems. Now, BGP MD5 authentication (RFC 2385) keys are
handled automatically on both Linux and FreeBSD.

Based on patches from Pavel Tvrdik.

8 years agoDocumentation update
Ondrej Zajicek (work) [Sun, 10 Apr 2016 22:41:10 +0000 (00:41 +0200)] 
Documentation update

8 years agoDirect: Implement check link for direct protocol
Ondrej Zajicek (work) [Fri, 8 Apr 2016 13:10:57 +0000 (15:10 +0200)] 
Direct: Implement check link for direct protocol

When enabled, direct protocol generates routes only if the underlying
link state is up.

8 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.

8 years agoMerge branch 'master' into int-new-channels
Jan Moskyto Matejka [Fri, 8 Apr 2016 10:09:31 +0000 (12:09 +0200)] 
Merge branch 'master' into int-new-channels

8 years agoMain: Add local option
Ondrej Zajicek (work) [Thu, 7 Apr 2016 10:20:45 +0000 (12:20 +0200)] 
Main: Add local option

Add option that changes default paths for config file and control socket
to the current working directory.

8 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

8 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

8 years agoNest: Reset export route counter during graceful restart
Ondrej Zajicek (work) [Wed, 6 Apr 2016 23:10:24 +0000 (01:10 +0200)] 
Nest: Reset export route counter during graceful restart

Counter exp_routes is increased during initial route feed after GR
recovery, so it has to start with zero, otherwise BIRD will end with
double value in exp_routes.

8 years agoIO: Avoid multiple event cycles in one loop cycle.
Ondrej Zajicek (work) [Wed, 6 Apr 2016 09:57:28 +0000 (11:57 +0200)] 
IO: Avoid multiple event cycles in one loop cycle.

Event cycle may took too much time and trigger next timer events, so
avoid cycling between timer and event cycles inside the loop cycle.

8 years agoIO: Replace RX priority heuristic with explicit mark
Ondrej Zajicek (work) [Wed, 6 Apr 2016 09:49:34 +0000 (11:49 +0200)] 
IO: Replace RX priority heuristic with explicit mark

In BIRD, RX has lower priority than TX with the exception of RX from
control socket. The patch replaces heuristic based on socket type with
explicit mark and uses it for both control socket and BGP session waiting
to be established.

This should avoid an issue when during heavy load, outgoing connection
could connect (TX event), send open, but then failed to receive OPEN /
establish in time, not sending notifications between and therefore
got hold timer expired error from the neighbor immediately after it
finally established the connection.

8 years agoKRT: Fix route learn scan when route changed
Ondrej Zajicek (work) [Wed, 23 Mar 2016 17:25:15 +0000 (18:25 +0100)] 
KRT: Fix route learn scan when route changed

When a kernel route changed, function krt_learn_scan() noticed that and
replaced the route in internal kernel FIB, but after that, function
krt_learn_prune() failed to propagate the new route to the nest, because
it confused the new route with the (removed) old best route and decided
that the best route did not changed.

Wow, the original code (and the bug) is almost 17 years old.

8 years agoIO/Poll: fix mistaken variable merge
Jan Moskyto Matejka [Wed, 30 Mar 2016 14:21:32 +0000 (16:21 +0200)] 
IO/Poll: fix mistaken variable merge

The events variable is used in the short loop decision. The reasons are
not much clear, keeping this to keep the former behaviour.

8 years agoBirdlib: Modify lists to avoid problems with pointer aliasing rules
Jan Moskyto Matejka [Wed, 23 Mar 2016 00:45:37 +0000 (01:45 +0100)] 
Birdlib: Modify lists to avoid problems with pointer aliasing rules

The old linked list implementation used some wild typecasts and required
GCC option -fno-strict-aliasing to work properly. This patch fixes that.
However, we still keep the option due to other potential problems.

(Commited by Ondrej Santiago Zajicek)

8 years agoBirdlib: Do cleanups after remove/free
Ondrej Zajicek (work) [Tue, 22 Mar 2016 12:35:40 +0000 (13:35 +0100)] 
Birdlib: Do cleanups after remove/free

To avoid byzantine behavior in case of some errors, linked lists are
cleared after rem_node() and resource headers are cleared after rfree().

8 years agoOSPF: Fix bogus LSA ID collisions between received and originated LSAs
Ondrej Zajicek (work) [Tue, 22 Mar 2016 11:51:31 +0000 (12:51 +0100)] 
OSPF: Fix bogus LSA ID collisions between received and originated LSAs

After restart, LSAs locally originated by the previous instance are
received from neighbors. They are installed to LSA db and flushed. If
export of a route triggers origination of a new external LSA before flush
of the received one is complete, the check in ospf_originate_lsa() causes
origination to fail (because en->nf is NULL for the old LSA and non-NULL
for the new LSA). The patch fixes this by updating the en->nf for LSAs
being flushed (as is already done for empty ones). Generally, en->nf
field deserves some better description in the code.

Thanks to Jigar Mehta for analyzing the problem.

8 years agoMinor changes in documentation
Ondrej Zajicek (work) [Wed, 9 Mar 2016 16:51:50 +0000 (17:51 +0100)] 
Minor changes in documentation

8 years agoOSPF: Fix reading from freed memory
Ondrej Zajicek (work) [Wed, 9 Mar 2016 16:37:44 +0000 (17:37 +0100)] 
OSPF: Fix reading from freed memory

Thanks to Pavel Tvrdik for noticing it.

8 years agoMerge remote-tracking branch 'origin/poll'
Jan Moskyto Matejka [Tue, 22 Mar 2016 12:23:55 +0000 (13:23 +0100)] 
Merge remote-tracking branch 'origin/poll'

8 years agoUnix: Substituted select -> poll also in congestion checker
Jan Moskyto Matejka [Fri, 18 Mar 2016 10:44:28 +0000 (11:44 +0100)] 
Unix: Substituted select -> poll also in congestion checker

It does strange things when even one fd larger than FD_SETSIZE is
passed to select().

8 years agoRIP: fix typo in configuration at rx length opt
Pavel Tvrdík [Tue, 15 Mar 2016 13:55:40 +0000 (14:55 +0100)] 
RIP: fix typo in configuration at rx length opt

8 years agoBGP: Add documentaion for extended messages
Pavel Tvrdík [Tue, 15 Mar 2016 09:29:32 +0000 (10:29 +0100)] 
BGP: Add documentaion for extended messages

8 years agoPoll: Prevent the improbable case of EAGAIN after POLLIN
Jan Moskyto Matejka [Tue, 15 Mar 2016 13:57:49 +0000 (14:57 +0100)] 
Poll: Prevent the improbable case of EAGAIN after POLLIN

8 years agoUnix: Rework of select-loop to poll-loop
Jan Moskyto Matejka [Wed, 9 Mar 2016 11:12:02 +0000 (12:12 +0100)] 
Unix: Rework of select-loop to poll-loop

This should lift the limit of FD_SETSIZE and allow more than 1024 fd's.
FD_SETSIZE limit doesn't matter now when creating new sockets.

8 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, ...)

8 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

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

8 years agoMerge branch 'master' of gitlab.labs.nic.cz:labs/bird
Jan Moskyto Matejka [Thu, 25 Feb 2016 17:25:53 +0000 (18:25 +0100)] 
Merge branch 'master' of gitlab.labs.nic.cz:labs/bird

8 years agoOSPF: Multicast ability is irrelevant for stub interfaces
Ondrej Zajicek (work) [Thu, 25 Feb 2016 17:16:59 +0000 (18:16 +0100)] 
OSPF: Multicast ability is irrelevant for stub interfaces

8 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.

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

8 years agoFilter: Implement last_nonaggregated operator on bgp_path
Ondrej Zajicek (work) [Tue, 16 Feb 2016 16:33:58 +0000 (17:33 +0100)] 
Filter: Implement last_nonaggregated operator on bgp_path

8 years agoUnix: Fix bug in syslog name handling
Ondrej Zajicek (work) [Thu, 11 Feb 2016 20:53:55 +0000 (21:53 +0100)] 
Unix: Fix bug in syslog name handling

Pointer to current_log_name has to be changed even if the name is the
same, because the old one will be invalid/freed after reconfiguration.

8 years agoBGP: Fix bug in incoming connection handling
Ondrej Zajicek (work) [Thu, 11 Feb 2016 15:38:28 +0000 (16:38 +0100)] 
BGP: Fix bug in incoming connection handling

When a BGP session was established by an outgoing connection with
Graceful Restart behavior negotiated, a pending incoming connection in
OpenSent state, and another incoming connection was received, then the
outgoing connection (and whole BGP session) was closed, but the old
incoming connection was just overwritten by the new one. That later
caused a crash when the hold timer from the old connection fired.

8 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.

8 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==

8 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.

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

8 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.

8 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

8 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

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

8 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

8 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

8 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.

8 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.

8 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

8 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

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

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

8 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.

8 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

8 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;
    ...
  }

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

8 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

8 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

8 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

8 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'

8 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/

8 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

8 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

8 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

8 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

8 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

8 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)

8 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

8 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.

8 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.

8 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)

8 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

8 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

8 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

8 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

8 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

8 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

8 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

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