Jan Maria Matejka
d50b0bc437
Conf: Show the line:char position where the syntax error happens
2018-09-11 17:35:13 +02:00
Jan Maria Matejka
7ffc0a6534
Bison: A bit more verbose error messages in config.
2018-08-14 14:36:44 +02:00
Jan Maria Matejka
86b9e8e39a
M4: generate synchronization lines
...
This also includes Bison version check. Versions before 3.0 don't
support them in a reliable way and we don't promise to work with
versions older than 2.4.
2018-08-14 14:01:39 +02:00
Maria Matejka
c2fc4c10ac
Doc: renamed progdoc files Doc -> progdoc to fix collision with doc/ folder on case-insensitive filesystems
2018-06-26 17:09:12 +02:00
Jan Maria Matejka
f851f0d7e3
Config: Dropping CF_ADDTO.
2018-06-26 14:29:03 +02:00
Jan Maria Matejka
d1ba927b36
Merge branch 'master' into int-new
2018-03-13 16:51:04 +01:00
Maria Jan Matejka
5a14df3950
Filter: Instruction codes named as enum
...
The two-letter instructions were quite messy but they could be easily
read from memory dumps. Now GDB (since 2012) supports pretty printing
enum values and GCC checks the switch construction for missing enum
values so we are converting the nice two-byte values to enums.
Anyway, the enum still keeps the old two-byte values to be able to read
the instruction codes even without GDB from plain memory dump.
2018-03-13 16:29:33 +01:00
Jan Maria Matejka
0575c7db72
Config: Dropped the ipv4:netmask4 syntax for IPv4 prefixes.
2018-03-08 12:57:39 +01:00
Ondrej Zajicek (work)
2d6d4b8053
Babel: Fix build with restricted protocol set
...
All keywords used in Babel config have to be declared locally.
Thanks to Leo Vandewoestijne for the bugreport.
2018-03-07 17:35:24 +01:00
Ondrej Zajicek (work)
be17805c0b
Add support for source-specific IPv6 routes to BIRD core
...
This patch adds support for source-specific IPv6 routes to BIRD core.
This is based on Dean Luga's original patch, with the review comments
addressed. SADR support is added to network address parsing in confbase.Y
and to the kernel protocol on Linux.
Currently there is no way to mix source-specific and non-source-specific
routes (i.e., SADR tables cannot be connected to non-SADR tables).
Thanks to Toke Hoiland-Jorgensen for the original patch.
Minor changes by Ondrej Santiago Zajicek.
2018-02-13 16:39:07 +01:00
Ondrej Zajicek (work)
66acbc8d7f
Revive FIB and kernel MPLS code
2017-12-12 00:05:49 +01:00
Jan Maria Matejka
3e52d112d7
Docs: Update to v2.0
2017-12-08 16:27:19 +01:00
Ondrej Zajicek (work)
a6f79ca57f
Timers: Revert temporary names and remove old timer.h
2017-12-07 13:54:59 +01:00
Ondrej Zajicek (work)
574b232427
Timers: Fix TBF and some last remains
2017-12-07 13:53:42 +01:00
Ondrej Zajicek (work)
3e405fb188
Nest: Update to new timers
2017-12-07 13:53:42 +01:00
Ondrej Zajicek (work)
ee528fbd5d
Timers: Add typecast to unit-converting macros
2017-12-07 13:53:42 +01:00
Ondrej Zajicek (work)
f047271cb9
Timers: Parse and format functions for microsecond times
...
Date/time output (e.g. in logs, show commands) can use %f to specify
subsecond time. By default, millisecond precision is used in output.
2017-12-07 13:49:27 +01:00
Ondrej Zajicek (work)
025525266f
Timers: Replace old timers with microsecond timers
...
The old timer interface is still kept, but implemented by new timers. The
plan is to switch from the old inteface to the new interface, then clean
it up.
2017-12-07 13:49:27 +01:00
Ondrej Zajicek (work)
77810030d2
Merge branch 'master' into int-new
2017-05-30 14:44:37 +02:00
Ondrej Zajicek (work)
4fec43067e
Workaround for older bisons
2017-05-30 14:43:49 +02:00
Ondrej Zajicek (work)
a1dc526760
Merge branch 'master' into int-new
2017-05-25 23:37:50 +02:00
Ondrej Zajicek (work)
b7761af34d
Conf: Replace keyword and symbol hash table with generic hash table.
...
The old hash table had fixed size, which makes it slow for config files
with large number of symbols and symbol lookups. The new one is growing
according to needs.
2017-05-25 23:30:39 +02:00
Ondrej Zajicek (work)
6aaaa63519
Change parser to handle numbers as unsigned
...
Lexer always parsed numbers as unsigned, but parser handled them as
signed and grammar contained many unnecessary checks for negativity.
2017-05-23 17:40:19 +02:00
Pavel Tvrdik
0705a1c565
Add a hint for an invalid IP prefix
...
bird> eval 200.210.220.0/16
Invalid IPv4 prefix 200.210.220.0/16, maybe you wanted 200.210.0.0/16
bird> eval 1000:2000::/8
Invalid IPv6 prefix 1000:2000::/8, maybe you wanted 1000::/8
2017-05-23 15:59:27 +02:00
Ondrej Zajicek (work)
734e9fb8a9
Minor cleanups and fixes
2017-05-23 13:12:25 +02:00
Ondrej Zajicek (work)
e521150b8f
Fix VPN-RD parsing on 32-bit systems
...
When shift count >= width of type the behavior is undefined.
2017-05-18 14:51:36 +02:00
Jan Moskyto Matejka
05d47bd53e
Linpool: default allocation size
2017-05-16 15:34:57 +02:00
Ondrej Zajicek (work)
4278abfe27
Check validity of dest w.r.t. net_type
...
Allow to define static roa/flow routes without dest.
2017-04-18 13:56:40 +02:00
Jan Moskyto Matejka
3484cb9a65
Client: separate config syntax structure for "show route for"
2017-04-18 13:45:50 +02:00
Jan Moskyto Matejka
2faf519cf9
Client: multitable version of show route
2017-04-12 16:04:22 +02:00
Jan Moskyto Matejka
2282030b2a
Simpler format of VPN RD
2017-03-28 17:35:32 +02:00
Jan Moskyto Matejka
3c74416465
Nexthop: Fixed recursive route mpls label merging
2017-03-17 15:48:32 +01:00
Ondrej Zajicek (work)
62e64905b7
Several minor fixes
2017-02-20 02:26:45 +01:00
Jan Moskyto Matejka
d311368bc5
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).
2016-12-22 21:38:33 +01:00
Jan Moskyto Matejka
d14f8c3c45
Netlink: MPLS routes in kernel
...
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.
2016-12-22 21:38:33 +01:00
Jan Moskyto Matejka
f2010f9c65
Static: Protocol rework wrt. struct nexthop changes; MPLS label support
2016-12-22 21:38:33 +01:00
Ondrej Zajicek (work)
77234bbbde
Basic flow specification support (RFC 5575)
...
Add flow4/flow6 network and rt-table type and operations, config grammar
and static protocol support.
Squashed flowspec branch from Pavel Tvrdik.
2016-12-07 15:54:19 +01:00
Pavel Tvrdik
bd7958776b
conf/conf.h: Fix a description of a variable in a structure
2016-11-30 11:57:35 +01:00
Pavel Tvrdik
1b7ddb0ea0
conf/conf.c: Revert some includes removing
2016-11-30 11:57:35 +01:00
Pavel Tvrdik
45ec4ce82a
Lexer: Add a quotation mark back while parsing quotes
...
Thanks to Ondrej Zajicek for code.
2016-11-16 12:21:19 +01:00
Ondrej Zajicek (work)
9b0a0ba9e6
Unit Testing for BIRD
...
- Unit Testing Framework (BirdTest)
- Integration of BirdTest into the BIRD build system
- Tests for several BIRD modules
Based on squashed Pavel Tvrdik's int-test branch, updated for
current int-new branch.
2016-11-09 16:36:34 +01:00
Ondrej Zajicek (work)
8860e991f6
Merge branch 'master' into int-new
2016-11-08 19:27:58 +01:00
Ondrej Zajicek (work)
c8cafc8ebb
Minor code cleanups
2016-11-08 17:46:29 +01:00
Ondrej Zajicek (work)
cc5b93f72d
Merge tag 'v1.6.2' into int-new
2016-11-08 17:04:29 +01:00
Jan Moskyto Matejka
3e236955c9
Build: switch on -Wextra, get rid of most of the warnings
...
There are several unresolved -Wmissing-field-initializers on older
versions of GCC than 5.1, all of them false positive.
2016-11-01 14:52:54 +01:00
Pavel Tvrdik
768d5e1058
Add !~ operator to filter grammar
2016-09-21 13:35:52 +02:00
Ondřej Surý
61e6725335
Include <stdint.h> in cf-lex.l to avoid UINTx_MAX redefinition
2016-08-16 09:23:55 +02:00
Pavel Tvrdík
8f01879c56
cppcheck: fix va_end() functions
2016-06-27 15:07:50 +02:00
Jan Moskyto Matejka
925aa14912
After-master-merge simple fixes.
...
BSD lib/setkey.h and lib/sysio.h #include fixes.
OpenBSD's flex needs -o param without space.
V6ONLY for SK_IP fix.
2016-05-24 12:12:14 +02:00
Ondrej Zajicek (work)
af678af0d5
Merge remote-tracking branch 'origin/master' into int-new
2016-05-12 18:03:23 +02:00