Pavel Tvrdik
5c0eb50b45
Revert partially "Socktest: minor change in document"
...
This reverts partially commit a1aafffbf3
.
Revert all inserted spaces in table (should center text, but doesn't work)
2016-04-07 10:23:25 +02:00
Pavel Tvrdik
a1aafffbf3
Socktest: minor change in document
2016-04-07 10:01:47 +02:00
Pavel Tvrdik
ef7f5afbdc
Socktest: Add document with outcome of tests
2016-04-06 15:57:26 +02:00
Pavel Tvrdik
e4a6c41236
Socktest: Renaming
2016-04-06 15:57:26 +02:00
Pavel Tvrdik
a6e111ae54
Socktest: Minor change in code style
...
Move printing out received packet into own function
2016-04-06 15:57:16 +02:00
Pavel Tvrdik
2bd35b0609
Socktest: Fix setting of TTL value
2016-04-06 15:57:14 +02:00
Pavel Tvrdik
6dc69a00f7
Use IP_ONESBCAST at FreeBSD
...
IP_ONESBCAST allows send universal broadcast via requested interface
using directed broadcast.
2016-04-06 15:57:14 +02:00
Pavel Tvrdik
43ae8c395f
Socktest: check existence of given name of interface
2016-04-06 15:57:14 +02:00
Pavel Tvrdik
856c3d105c
Socktest: Allow BIRD logger
2016-04-06 15:57:14 +02:00
Pavel Tvrdik
c46329e701
Socktest: Opt list: allow parameter to -B option (bind)
2016-04-06 15:57:02 +02:00
Pavel Tvrdik
6b8d11556e
Socktest: Minor change
2016-04-05 09:09:57 +02:00
Pavel Tvrdík
2ce8589753
Socktest: Fixing bugs
...
Changes:
- Remove -R command line option (it's automatic, system dependent)
- Fix mixing of broadcast and binding
- Add -c command line option for count of packet
- Fix receiving broadcast
- Scan all interfaces via device protocol (unfortunately it is ugly)
2016-04-01 09:44:56 +02:00
Pavel Tvrdík
8de4cfbe13
Socktest: Add missing Makefile
2016-03-31 09:35:49 +02:00
Pavel Tvrdík
b4c639d9ae
Socktest: initial commit
...
Using `make sockettest` generetes `snd` and `rcv` binaries. It can be
used for testing BIRD's sockets.
Based on code by Ondrej Zajicek
2016-03-30 17:16:12 +02:00
Pavel Tvrdík
9d4042a171
io.c: init some uninitialized variables
2016-03-30 17:16:12 +02:00
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