]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
10 years agoBirdtest: Extend IP addr funcs Tests
Pavel Tvrdík [Mon, 13 Apr 2015 08:59:20 +0000 (10:59 +0200)] 
Birdtest: Extend IP addr funcs Tests

10 years agoBirdtest: Rewrite MD5 unit test
Pavel Tvrdík [Mon, 13 Apr 2015 08:57:47 +0000 (10:57 +0200)] 
Birdtest: Rewrite MD5 unit test

10 years agoBirdtest: Add bt_assert_fn_in_*
Pavel Tvrdík [Mon, 13 Apr 2015 08:52:21 +0000 (10:52 +0200)] 
Birdtest: Add bt_assert_fn_in_*

- Improved test output formating: aligned, colored [ OK ] / [FAIL]
- A failed assert will not interupt the whole test suite
- bt_assert_fn_in_* are macros for testing input and output from the some
  function

10 years agoBirdtest: bt_test_case() -> bt_test_suite()
Pavel Tvrdík [Mon, 13 Apr 2015 08:42:10 +0000 (10:42 +0200)] 
Birdtest: bt_test_case() -> bt_test_suite()

10 years agoBirdtest: Improve a tests lancher script
Pavel Tvrdík [Mon, 13 Apr 2015 08:33:04 +0000 (10:33 +0200)] 
Birdtest: Improve a tests lancher script

10 years agoBirdtest: Add IP addr funcs Tests (not complete)
Pavel Tvrdík [Fri, 3 Apr 2015 10:55:36 +0000 (12:55 +0200)] 
Birdtest: Add IP addr funcs Tests (not complete)

10 years agoBirdtest: Add Hash Tests
Pavel Tvrdík [Fri, 3 Apr 2015 10:54:54 +0000 (12:54 +0200)] 
Birdtest: Add Hash Tests

10 years agoBirdtest: Add Event Processing Tests
Pavel Tvrdík [Fri, 3 Apr 2015 10:52:44 +0000 (12:52 +0200)] 
Birdtest: Add Event Processing Tests

Add test/birdtest_support.h for provisional hack a build system

10 years agoBirdtest: Small improve in checksum test
Pavel Tvrdík [Fri, 3 Apr 2015 10:51:05 +0000 (12:51 +0200)] 
Birdtest: Small improve in checksum test

10 years agolib/ip.c: add parenthesis for better readability
Pavel Tvrdík [Fri, 3 Apr 2015 10:49:21 +0000 (12:49 +0200)] 
lib/ip.c: add parenthesis for better readability

10 years agoBirdtest: improve bt_check macro
Pavel Tvrdík [Fri, 3 Apr 2015 10:46:04 +0000 (12:46 +0200)] 
Birdtest: improve bt_check macro

Now dat for testing can be defined somelike this:

  struct in_out_data_ {
    char *in;
    u32 out;
  } in_out_data[] = {
      {
  .in  = "192.168.1.128",
  .out = build_ip4(192, 168, 1, 128),
      },
      {
  .in  = "255.255.255.255",
  .out = build_ip4(255, 255, 255, 255),
      },
      ...
  };

  bt_check(ip4_pton_, in_out_data, "%s", "0x%08X");

10 years agoBirdtest: move def bt_rand_num() at a better place
Pavel Tvrdík [Fri, 3 Apr 2015 10:44:47 +0000 (12:44 +0200)] 
Birdtest: move def bt_rand_num() at a better place

10 years agoBirdtest: Add printing backtrace while segfault
Pavel Tvrdík [Fri, 3 Apr 2015 10:42:49 +0000 (12:42 +0200)] 
Birdtest: Add printing backtrace while segfault

10 years agoBirdtest: Improve build scripts
Pavel Tvrdík [Fri, 3 Apr 2015 10:40:07 +0000 (12:40 +0200)] 
Birdtest: Improve build scripts

Add make rule 'clean-tests'
Add tests sources to dependecy generator

10 years agoBirdtest: IP One-Complement Checksum Tests
Pavel Tvrdík [Mon, 30 Mar 2015 16:54:09 +0000 (18:54 +0200)] 
Birdtest: IP One-Complement Checksum Tests

10 years agoBirdtest: small fix in md5_test
Pavel Tvrdík [Mon, 30 Mar 2015 16:52:58 +0000 (18:52 +0200)] 
Birdtest: small fix in md5_test

10 years agoBirdtest: Add test for lib/bitops.c
Pavel Tvrdík [Fri, 27 Mar 2015 13:10:28 +0000 (14:10 +0100)] 
Birdtest: Add test for lib/bitops.c

10 years agoBirdtest: Add test for lib/buffer_test.c
Pavel Tvrdík [Fri, 27 Mar 2015 13:10:00 +0000 (14:10 +0100)] 
Birdtest: Add test for lib/buffer_test.c

10 years agoBirdtest: Add test for lib/md5.c
Pavel Tvrdík [Fri, 27 Mar 2015 13:09:27 +0000 (14:09 +0100)] 
Birdtest: Add test for lib/md5.c

10 years agoBirdtest: Refactorize heap_test.c and lists_test.c
Pavel Tvrdík [Fri, 27 Mar 2015 13:08:39 +0000 (14:08 +0100)] 
Birdtest: Refactorize heap_test.c and lists_test.c

10 years agoBirdtest: Add bt_check()
Pavel Tvrdík [Fri, 27 Mar 2015 13:04:37 +0000 (14:04 +0100)] 
Birdtest: Add bt_check()

  - A function for check test some other function for
    in and out/expected data in array.

10 years agoBirdtest: Add bt_rand_num()
Pavel Tvrdík [Fri, 27 Mar 2015 13:03:47 +0000 (14:03 +0100)] 
Birdtest: Add bt_rand_num()

10 years agoBirdtest: Fix calc num of build-failured tests
Pavel Tvrdík [Fri, 27 Mar 2015 13:01:30 +0000 (14:01 +0100)] 
Birdtest: Fix calc num of build-failured tests

10 years agoBirdtest: Refactore tests and build system
Pavel Tvrdík [Mon, 23 Mar 2015 16:40:13 +0000 (17:40 +0100)] 
Birdtest: Refactore tests and build system

Rename directory:
  birdtest/* -> test/*

Rename Makefile rule:
  build-tests -> tests

Move run-all-test shell script from Makefile to stand-alone shell script

Simplify Makefile test build system

10 years agoAdd header wrap defines to lib/buffer.h
Pavel Tvrdík [Thu, 19 Mar 2015 17:42:33 +0000 (18:42 +0100)] 
Add header wrap defines to lib/buffer.h

10 years agoBirdtest: Remove copyrights
Pavel Tvrdík [Thu, 19 Mar 2015 17:38:38 +0000 (18:38 +0100)] 
Birdtest: Remove copyrights

10 years agoBirdtest: Output the number of Test Build Failures
Pavel Tvrdík [Thu, 19 Mar 2015 17:37:18 +0000 (18:37 +0100)] 
Birdtest: Output the number of Test Build Failures

10 years agoBirdtest: Add echoing of compilation command
Pavel Tvrdík [Tue, 17 Mar 2015 11:43:01 +0000 (12:43 +0100)] 
Birdtest: Add echoing of compilation command

10 years agoAddition necessary includes in headers files
Pavel Tvrdík [Tue, 17 Mar 2015 11:39:10 +0000 (12:39 +0100)] 
Addition necessary includes in headers files

10 years agoSeparate a definition of NULL to standalone header
Pavel Tvrdík [Tue, 17 Mar 2015 11:31:14 +0000 (12:31 +0100)] 
Separate a definition of NULL to standalone header

A lib/list.h had circular dependency through include nest/bird.h
  nest/bird.h requires lib/birdlib.h
  lib/birdlib.h requires timer.h
  timer.h requires lib/resource.h
  lib/resource.h requires lib/list.h

10 years agoBirdtest: A small change in testing output
Pavel Tvrdík [Tue, 17 Mar 2015 10:28:41 +0000 (11:28 +0100)] 
Birdtest: A small change in testing output

10 years agoBirdtest: Add default timeout and forking setting
Pavel Tvrdík [Tue, 17 Mar 2015 10:27:40 +0000 (11:27 +0100)] 
Birdtest: Add default timeout and forking setting

10 years agoAdd unit tests for lib/lists.c datastructures
Pavel Tvrdík [Fri, 13 Mar 2015 17:37:21 +0000 (18:37 +0100)] 
Add unit tests for lib/lists.c datastructures

10 years agoAdd unit tests for lib/heap.h datastructures
Pavel Tvrdík [Fri, 13 Mar 2015 17:36:10 +0000 (18:36 +0100)] 
Add unit tests for lib/heap.h datastructures

10 years agoBirdtest: Add BT_SUCCESS for success end of test
Pavel Tvrdík [Fri, 13 Mar 2015 17:30:03 +0000 (18:30 +0100)] 
Birdtest: Add BT_SUCCESS for success end of test

Add BT_FAILURE for bad end of test

10 years agoBirdtest: Customize outputs from testing framework
Pavel Tvrdík [Fri, 13 Mar 2015 17:29:21 +0000 (18:29 +0100)] 
Birdtest: Customize outputs from testing framework

10 years agoBirdtest: add bt_debug() for tests debug outputs
Pavel Tvrdík [Fri, 13 Mar 2015 17:27:33 +0000 (18:27 +0100)] 
Birdtest: add bt_debug() for tests debug outputs

Debug outputs will show with launch test with param -vv

10 years agoBirdtest: Customize Makefiles build system
Pavel Tvrdík [Fri, 13 Mar 2015 17:23:31 +0000 (18:23 +0100)] 
Birdtest: Customize Makefiles build system

From root dir is possible launch:
  $ make check         # for re-build and run all tests
  $ make build-tests   # for re-build all tests only

10 years agoAdd Ondrej Zajicek Unit Testing Framework
Pavel Tvrdík [Tue, 3 Mar 2015 12:51:35 +0000 (13:51 +0100)] 
Add Ondrej Zajicek Unit Testing Framework

 - Add Ondrej Zajicek Unit Testing Framework -- BirdTest
 - An Integration the BirdTest (BT) into the BIRD's build system.

10 years agoAdd minor comment
Ondrej Zajicek [Tue, 24 Feb 2015 15:19:14 +0000 (16:19 +0100)] 
Add minor comment

10 years agoUse IP_PORTRANGE_HIGH for BFD where available
Ondrej Zajicek [Sun, 22 Feb 2015 19:14:14 +0000 (20:14 +0100)] 
Use IP_PORTRANGE_HIGH for BFD where available

10 years agoRename BGP option 'start delay' to 'connect delay'
Ondrej Zajicek [Sun, 22 Feb 2015 15:08:28 +0000 (16:08 +0100)] 
Rename BGP option 'start delay' to 'connect delay'

Also update log message for error-triggered startup delay.

10 years agoRelax BGP neighbor parameter
Ondrej Zajicek [Sun, 22 Feb 2015 12:50:58 +0000 (13:50 +0100)] 
Relax BGP neighbor parameter

Permit specifying neighbor address, AS number and port independently.
Add 'interface' parameter for specifying interface for link-local
sessions independently.

Thanks to Alexander V. Chernikov for the original patch.

10 years agoUse AF_UNSPEC for RTM_GETLINK
Ondrej Zajicek [Sat, 21 Feb 2015 20:19:49 +0000 (21:19 +0100)] 
Use AF_UNSPEC for RTM_GETLINK

This value is specified in documentation.

10 years agoStore protocol config size inside protocol structure
Ondrej Zajicek [Sat, 21 Feb 2015 20:08:23 +0000 (21:08 +0100)] 
Store protocol config size inside protocol structure

Make proto_config_new() use this info instead of supplied size.

Thanks to Alexander V. Chernikov for the patch.

10 years agoMake BGP protocol instance search a separate function
Ondrej Zajicek [Sat, 21 Feb 2015 19:39:59 +0000 (20:39 +0100)] 
Make BGP protocol instance search a separate function

Thanks to Alexander V. Chernikov for the patch.

10 years agoMinor fixes
Pavel Tvrdík [Wed, 7 Jan 2015 14:04:02 +0000 (15:04 +0100)] 
Minor fixes

10 years agoBetter Clang compatibility
Pavel Tvrdik [Fri, 5 Dec 2014 08:25:38 +0000 (09:25 +0100)] 
Better Clang compatibility

10 years agoRemove a comparison of unsigned expression < 0
Pavel Tvrdik [Wed, 3 Dec 2014 09:32:26 +0000 (10:32 +0100)] 
Remove a comparison of unsigned expression < 0

10 years agoAdd const to a param msg at functions log_msg, log_rl, die, bug and debug
Pavel Tvrdik [Wed, 3 Dec 2014 09:57:31 +0000 (10:57 +0100)] 
Add const to a param msg at functions log_msg, log_rl, die, bug and debug

10 years agoReplacing GNU old-style field designator extension
Pavel Tvrdik [Wed, 3 Dec 2014 09:10:34 +0000 (10:10 +0100)] 
Replacing GNU old-style field designator extension

10 years agoFixes minor bug in BFD.
Ondrej Zajicek [Sat, 21 Feb 2015 13:52:17 +0000 (14:52 +0100)] 
Fixes minor bug in BFD.

Thanks to Pavel Tvrdik for noticing it.

10 years agoAllows user data attached to f_trie_node structure.
Ondrej Zajicek [Sat, 21 Feb 2015 13:05:20 +0000 (14:05 +0100)] 
Allows user data attached to f_trie_node structure.

Thanks to Alexander Chernikov for the patch.

10 years agoBump max symbol length to 64.
Ondrej Zajicek [Sat, 21 Feb 2015 11:42:31 +0000 (12:42 +0100)] 
Bump max symbol length to 64.

And move the constant to conf.h header.

Thanks to Alexander Chernikov for the patch.

10 years agoFixes a bug in locking code.
Ondrej Zajicek [Sat, 21 Feb 2015 11:27:05 +0000 (12:27 +0100)] 
Fixes a bug in locking code.

When multiple protocols have a lock for the same IP address, it crashes
under some circumstances.

Thanks to Matthias Schiffer for the bugreport.

10 years agoFixes potential alignment bug in BGP.
Ondrej Zajicek [Sat, 21 Feb 2015 11:24:30 +0000 (12:24 +0100)] 
Fixes potential alignment bug in BGP.

Thanks to Andrew (seti.kr.ua) for the bug report.

10 years agoLink state support in BGP.
Ondrej Zajicek [Sat, 21 Feb 2015 10:46:14 +0000 (11:46 +0100)] 
Link state support in BGP.

Configurable fast shutdown of a BGP session when an interface loses link.

10 years agoMerge remote-tracking branch 'origin/soft-int'
Ondrej Zajicek [Sat, 21 Feb 2015 10:39:45 +0000 (11:39 +0100)] 
Merge remote-tracking branch 'origin/soft-int'

10 years agoFixes error message in 'show route' cmd.
Ondrej Zajicek [Sat, 8 Nov 2014 22:52:42 +0000 (23:52 +0100)] 
Fixes error message in 'show route' cmd.

Message 'Network not in table' was not reported if a network node without
any routes was found in a routing table.

10 years agoVersion 1.5.0pre
Ondrej Filip [Wed, 5 Nov 2014 10:07:25 +0000 (11:07 +0100)] 
Version 1.5.0pre

10 years agoSmall typo fixed.
Ondrej Filip [Tue, 4 Nov 2014 17:11:59 +0000 (18:11 +0100)] 
Small typo fixed.

10 years agoChanges order of iface/addr/neigh event hooks.
Ondrej Zajicek [Mon, 3 Nov 2014 19:35:58 +0000 (20:35 +0100)] 
Changes order of iface/addr/neigh event hooks.

Now the order is:

Up   -> iface, addr, neigh
Down -> neigh, addr, iface

It fixes the case when an iface appears, related static routes are
activated and exported to OSPF before the iface notification and
therefore forwarding addresses are not encoded in generated external
LSAs.

10 years agoBugfix in latest OSPF changes.
Ondrej Zajicek [Mon, 3 Nov 2014 19:35:25 +0000 (20:35 +0100)] 
Bugfix in latest OSPF changes.

10 years agoBugfix to OSPF reconfiguration.
Ondrej Zajicek [Mon, 3 Nov 2014 13:53:59 +0000 (14:53 +0100)] 
Bugfix to OSPF reconfiguration.

10 years agoFininshing integrated OSPF.
Ondrej Zajicek [Mon, 3 Nov 2014 09:42:55 +0000 (10:42 +0100)] 
Fininshing integrated OSPF.

10 years agoMailling list location changed.
Ondrej Filip [Sat, 25 Oct 2014 19:08:35 +0000 (21:08 +0200)] 
Mailling list location changed.

10 years agoIntegrated IP functions.
Ondrej Zajicek [Fri, 24 Oct 2014 09:11:43 +0000 (11:11 +0200)] 
Integrated IP functions.

10 years agoRefactoring of OSPF messages.
Ondrej Zajicek [Fri, 24 Oct 2014 08:27:21 +0000 (10:27 +0200)] 
Refactoring of OSPF messages.

10 years ago__attribute__((packed)) added. Thank to Maksim Tamarsky
Ondrej Filip [Thu, 16 Oct 2014 16:05:54 +0000 (18:05 +0200)] 
__attribute__((packed)) added. Thank to Maksim Tamarsky

10 years agoMerge remote-tracking branch 'origin/master' into soft-int
Ondrej Zajicek [Tue, 14 Oct 2014 15:23:34 +0000 (17:23 +0200)] 
Merge remote-tracking branch 'origin/master' into soft-int

10 years agoNEWS and version update. v1.4.5
Ondrej Zajicek [Sun, 5 Oct 2014 21:59:18 +0000 (23:59 +0200)] 
NEWS and version update.

10 years agoImplements show route noexport option.
Ondrej Zajicek [Thu, 2 Oct 2014 10:46:26 +0000 (12:46 +0200)] 
Implements show route noexport option.

Shows routes that would be exported to the protocol but are rejected by
the export filter.

10 years agoImplements token bucket filter for rate limiting.
Ondrej Zajicek [Thu, 2 Oct 2014 09:41:34 +0000 (11:41 +0200)] 
Implements token bucket filter for rate limiting.

10 years agoAllows to configure different remote port for BGP sessions.
Ondrej Zajicek [Thu, 2 Oct 2014 09:33:55 +0000 (11:33 +0200)] 
Allows to configure different remote port for BGP sessions.

Thanks to João Taveira Araújo for the original patch.

10 years agoRefresh kernel protocol when interface disappears.
Ondrej Zajicek [Thu, 2 Oct 2014 09:05:55 +0000 (11:05 +0200)] 
Refresh kernel protocol when interface disappears.

When an interface goes down, (Linux) kernel removes routes pointing to
that ifacem but does not send withdraws for them. We rescan the
kernel table to ensure synchronization.

Thanks to Alexander Demenshin for the bugreport.

10 years agoAllows more constants in set literals.
Ondrej Zajicek [Thu, 2 Oct 2014 09:02:14 +0000 (11:02 +0200)] 
Allows more constants in set literals.

Thanks to Michael Fincham for the bugreport.

10 years agoFixes some warnings.
Ondrej Zajicek [Thu, 2 Oct 2014 08:59:34 +0000 (10:59 +0200)] 
Fixes some warnings.

11 years agoOSPF instance id option and documentation update.
Ondrej Zajicek [Mon, 21 Jul 2014 19:50:56 +0000 (21:50 +0200)] 
OSPF instance id option and documentation update.

11 years agoWhitespace cleanup in OSPF.
Ondrej Zajicek [Sat, 19 Jul 2014 15:28:38 +0000 (17:28 +0200)] 
Whitespace cleanup in OSPF.

11 years agoTemporary integrated OSPF commit.
Ondrej Zajicek [Fri, 18 Jul 2014 16:24:12 +0000 (18:24 +0200)] 
Temporary integrated OSPF commit.

11 years agoVersion 1.4.4. v1.4.4
Ondrej Filip [Wed, 9 Jul 2014 21:46:02 +0000 (23:46 +0200)] 
Version 1.4.4.

11 years agoNEWS and version update.
Ondrej Zajicek [Wed, 9 Jul 2014 16:42:59 +0000 (18:42 +0200)] 
NEWS and version update.

11 years agoFixes a bug in BSD kernel interfacing code.
Ondrej Zajicek [Wed, 9 Jul 2014 16:34:42 +0000 (18:34 +0200)] 
Fixes a bug in BSD kernel interfacing code.

The bug was introduced in 05476c4d04a24bdb26fa64e05ab31bc36118f34e.

11 years agoImplements default router preference (RFC 4191) for RAdv.
Ondrej Zajicek [Mon, 7 Jul 2014 20:56:21 +0000 (22:56 +0200)] 
Implements default router preference (RFC 4191) for RAdv.

Thanks to Baptiste Jonglez for the patch.

11 years agoReplaces function name in test.conf as it collided with new keyword.
Ondrej Zajicek [Mon, 7 Jul 2014 20:23:37 +0000 (22:23 +0200)] 
Replaces function name in test.conf as it collided with new keyword.

11 years agoFixes integer overflow in show memory command.
Ondrej Zajicek [Mon, 30 Jun 2014 09:55:22 +0000 (11:55 +0200)] 
Fixes integer overflow in show memory command.

Thanks to Job Snijders for the bugreport.

11 years agoEnsures that msg_controllen includes last padding.
Ondrej Zajicek [Thu, 26 Jun 2014 11:30:27 +0000 (13:30 +0200)] 
Ensures that msg_controllen includes last padding.

Although RFC 3542 allows both cases, Theo de Raadt thinks
he knows better, and msg_controllen without last padding
fails on OpenBSD.

Thanks to Job Snijders for the bugreport.

11 years agoTemporary integrated OSPF commit.
Ondrej Zajicek [Thu, 26 Jun 2014 09:58:57 +0000 (11:58 +0200)] 
Temporary integrated OSPF commit.

11 years agoFixes max include depth in documentation.
Ondrej Zajicek [Tue, 10 Jun 2014 10:16:01 +0000 (12:16 +0200)] 
Fixes max include depth in documentation.

Thanks to Artyom Gavrichenkov for the patch.

11 years agoString constants could be used for string option values.
Ondrej Zajicek [Thu, 29 May 2014 21:05:03 +0000 (23:05 +0200)] 
String constants could be used for string option values.

Thanks to Frederik Kriewitz for the patch.

11 years agoIPv4/IPv6 integrated socket code.
Ondrej Zajicek [Sun, 18 May 2014 09:42:26 +0000 (11:42 +0200)] 
IPv4/IPv6 integrated socket code.

11 years agoFixes a problem with undoing of deconfiguring of protocol.
Ondrej Zajicek [Mon, 5 May 2014 09:05:12 +0000 (11:05 +0200)] 
Fixes a problem with undoing of deconfiguring of protocol.

Thanks to Sergey Popovich for the original patch.

11 years agoMerge commit 'origin/master'
Ondrej Zajicek [Sun, 4 May 2014 09:59:50 +0000 (11:59 +0200)] 
Merge commit 'origin/master'

11 years agoFixes BGP crash when update with some attributes and empty NLRI is received.
Ondrej Zajicek [Sat, 3 May 2014 22:01:06 +0000 (00:01 +0200)] 
Fixes BGP crash when update with some attributes and empty NLRI is received.

Thanks to Charlie Allom for the bugreport.

11 years agoFixes BGP crash when update with some attributes and empty NLRI is received.
Ondrej Zajicek [Sat, 3 May 2014 22:01:06 +0000 (00:01 +0200)] 
Fixes BGP crash when update with some attributes and empty NLRI is received.

11 years agoFixes 'show route export' w.r.t. protocols with different RA_* types.
Ondrej Zajicek [Mon, 28 Apr 2014 15:31:03 +0000 (17:31 +0200)] 
Fixes 'show route export' w.r.t. protocols with different RA_* types.

11 years agoFixes limit verification during reconfiguration.
Ondrej Zajicek [Sat, 26 Apr 2014 22:46:32 +0000 (00:46 +0200)] 
Fixes limit verification during reconfiguration.

11 years agoExtends multipath support for OSPF.
Ondrej Zajicek [Wed, 23 Apr 2014 11:54:28 +0000 (13:54 +0200)] 
Extends multipath support for OSPF.

Fixes cases where the same network or external route are propagated by
several OSPF routes and some other corner cases in next hop construction
and ECMP. Allows to specify whether external routes should be merged.

Thanks to Peter Christensen for the original patch.

11 years agoMerge commit 'origin/master'
Ondrej Zajicek [Wed, 23 Apr 2014 11:52:15 +0000 (13:52 +0200)] 
Merge commit 'origin/master'

11 years agoNEWS and version update. v1.4.3
Ondrej Zajicek [Mon, 14 Apr 2014 12:47:20 +0000 (14:47 +0200)] 
NEWS and version update.