0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 18:21:54 +00:00
Commit Graph

2794 Commits

Author SHA1 Message Date
Pavel Tvrdík
51e8192c4c Clearness of code of usage variable argument lists
All cases are exiting from BIRD, so the patch is a little useless,
however it will be good for copiage of this code.
2016-03-30 17:11:17 +02:00
Pavel Tvrdík
e19d71a137 Birdtest: minor change in headers of filter test 2016-03-30 17:05:37 +02:00
Pavel Tvrdík
3352922b77 Birdtest: fix usage of variable argument lists 2016-03-30 17:05:16 +02:00
Pavel Tvrdík
fb5e3d7fa5 Birdtest: remove warnings about 32 bit shifting 2016-03-30 17:05:13 +02:00
Pavel Tvrdík
decab56092 Birdtest: remove bad buffer initialization 2016-03-30 17:03:35 +02:00
Pavel Tvrdík
4d33b997e6 HMAC-SHA1: add test with 64 byte size key 2015-11-30 14:04:57 +01:00
Pavel Tvrdík
f6dd038802 Merge branch 'master' into birdtest 2015-11-12 16:20:37 +01:00
Pavel Tvrdík
fce764f90e Fix compiling with --enable-debug option 2015-11-11 11:46:38 +01:00
Jan Moskyto Matejka
9ddbfbddf8 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.
2015-11-11 11:40:49 +01:00
Ondrej Zajicek (work)
86b4e17001 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.
2015-11-09 01:01:12 +01:00
Ondrej Zajicek (work)
9b9a7143c4 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.
2015-11-09 00:42:02 +01:00
Ondrej Zajicek (work)
3aed0a6ff7 IO: Fix the previous bugfix
I should check it after making some trivial changes. The original patch
from Alexander has it right.
2015-11-03 11:27:27 +01:00
Ondrej Zajicek (work)
338f85ca77 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.
2015-11-03 11:08:57 +01:00
Pavel Tvrdík
3b59d07582 Small change in birdtest.h
Thanks to Martin Mares.
2015-11-03 09:26:38 +01:00
Pavel Tvrdík
f12f9d9131 Birdtest: Fix setting TERM environment variable 2015-11-02 13:29:03 +01:00
Pavel Tvrdík
2fcae1f9fc Birdtest: do not use strcpy() 2015-11-02 13:28:15 +01:00
Pavel Tvrdík
ed6571ca67 Fix print format of integer variables 2015-10-22 16:47:24 +02:00
Pavel Tvrdík
2766155c7a Remove unused variable 2015-10-22 16:47:24 +02:00
Ondrej Zajicek (work)
acb04cfdc5 Minor changes 2015-10-17 14:43:37 +02:00
Pavel Tvrdík
2e2078d913 Birdtest: filter FIXME 2015-09-01 15:10:55 +02:00
Pavel Tvrdík
7a76c0369e Birdtest: nest/a-set (finished) 2015-09-01 14:01:02 +02:00
Pavel Tvrdík
c8f081e5e8 Birdtest: Fixing macro ARGip4(x) for non-debugging environment 2015-09-01 08:54:59 +02:00
Pavel Tvrdík
fcda50cfcd Birdtest: nest/a-set (unfinished) 2015-08-28 15:57:10 +02:00
Pavel Tvrdík
ce5878d2fc Birdtest: nest/a-path 2015-08-28 15:56:46 +02:00
Pavel Tvrdík
4fb506466c Birdtest: filter/trie
Thanks to Santiago for reuse here his code.
bt_rand_num() -> bt_random()
2015-08-28 15:56:35 +02:00
Pavel Tvrdík
45e65e8232 Birdtest: fixing test framework build 2015-08-19 15:11:10 +02:00
Pavel Tvrdík
4885a7167e Birdtest: add test for filter/tree.c 2015-08-19 14:57:54 +02:00
Pavel Tvrdík
1c7e2c284b Birdtets: filters (unfinished)
- Updates old tests
2015-08-19 14:57:54 +02:00
Pavel Tvrdík
810090517b _GNU_SOURCE for setresuid() 2015-08-19 14:57:54 +02:00
Pavel Tvrdík
e96f1ea735 Make async_*_flag as global shared variables 2015-08-19 14:57:54 +02:00
Pavel Tvrdík
daaa115943 Birdtest: add some utils to framework
and updates old tests
2015-08-19 14:57:34 +02:00
Ondrej Zajicek
b5e76398de OSPF: Fixes some issues with link detection
Thanks to Bernardo Figueiredo and Israel G. Lugo for the bugreport.
2015-08-19 11:16:23 +02:00
Pavel Tvrdík
39059e21b7 Birdtest: Add unfinished filter test
Add birdtest utils for testing parsing configurations files
Add tests with parsing filter examples
2015-08-14 16:14:32 +02:00
Pavel Tvrdík
aa96f486e0 Birdtest: Improve reliable
Fixing some bugs
Add option to call birdtest with an argument (void *)
2015-08-14 16:08:04 +02:00
Ondrej Zajicek
0f38795b33 Netlink: Fixes uninitialized variable
Thanks to Pavel Tvrdik for the bugfix
2015-08-13 14:38:41 +02:00
Pavel Tvrdík
e0176f2639 Birdtest: Clean up unit tests from mock-ups 2015-08-05 12:36:40 +02:00
Pavel Tvrdík
856250c27f Birdtest: Purge 'int main()' from lib/birdlib.a #2
All origin static functions from sysdep/unix/main.c were rewrited to
non-static.

All origin static global variables from sysdep/unix/main.c was rewrited
to extern.

It is possible create executables bird, birdc and birdcl as well as run
unit tests without mockuping

After remake new BIRD's build system will be this commit reverting...
2015-08-05 12:36:40 +02:00
Pavel Tvrdík
ce8d15a02d Birdtest: Purge 'int main()' from lib/birdlib.a #1
We need link lib/birdlib.a and remaining */all.o to tests (mockups suck)

Code from sysdep/unix/main.c is moved without 'int main()' function
   to the sysdep/unix/main_helper.c

Yes, it is dirty...
After remake new BIRD's build system will be this commit reverting...

Actually it is not possible to build executable bird, birdc nor birdcl
due duplicity of functions in main_helper.o in lib/birdlib.a and
lib/main.o
2015-08-05 12:36:40 +02:00
Pavel Tvrdík
d51a3385a6 Birdtest: Fixing outputs at 'exotic' OS 2015-08-05 12:36:40 +02:00
Pavel Tvrdík
aad0af2fd7 Birdtest: Add an another verbose level for tests 2015-08-04 14:40:40 +02:00
Pavel Tvrdík
3ed4f968c0 Birdtest: Add Fletcher-16 Checksum Tests 2015-08-04 14:23:12 +02:00
Pavel Tvrdík
f594ab67bb Revert "Birdtest: U64_C() macro"
This reverts commit 804ee1458d.

And make better solution with stdint.h and UINT64_C macro.
Thanks to Ondrej Zajicek.
2015-08-04 10:31:50 +02:00
Pavel Tvrdík
d16050108f Birdtest: Tunning IP tests, Hash tests 2015-08-04 10:26:33 +02:00
Pavel Tvrdík
2d9b796bc5 Revert "Linking: move LDFLAGS at the end of commands"
This reverts commit 9334886d1a.

Thanks to Ondrej Zajicek.
2015-08-04 10:08:43 +02:00
Pavel Tvrdík
182f73dfba Birdtest: Fix Hash Unit Testing 2015-08-03 15:55:53 +02:00
Pavel Tvrdík
804ee1458d Birdtest: U64_C() macro 2015-08-03 14:41:20 +02:00
Pavel Tvrdík
ca996d807f Birdtest: Use origin macros from lib/ip.h
Thanks to Ondrej 'Santiago' Zajicek
2015-08-03 09:03:38 +02:00
Pavel Tvrdík
7e035b81cb Birdtest: Add Pattern Matching Tests 2015-07-29 11:49:51 +02:00
Pavel Tvrdík
9334886d1a Linking: move LDFLAGS at the end of commands
Better support gcov
 $ LDFLAGS="-lgcov" CFLAGS="-fprofile-arcs -ftest-coverage" ./configure
2015-07-29 10:42:41 +02:00
Pavel Tvrdík
12879947cf Birdtest: Fix non-debug compilation of IP tests 2015-07-29 09:51:17 +02:00