0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00
bird/sysdep/unix
Ondrej Zajicek (work) 943478b00f Basic VRF support
Add basic VRF (virtual routing and forwarding) support. Protocols can be
associated with VRFs, such protocols will be restricted to interfaces
assigned to the VRF (as reported by Linux kernel) and will use sockets
bound to the VRF. E.g., different multihop BGP instances can use diffent
kernel routing tables to handle BGP TCP connections.

The VRF support is preliminary, currently there are several limitations:

- Recent Linux kernels (4.11) do not handle correctly sockets bound
to interaces that are part of VRF, so most protocols other than multihop
BGP do not work. This will be fixed by future kernel versions.

- Neighbor cache ignores VRFs. Breaks config with the same prefix on
local interfaces in different VRFs. Not much problem as single hop
protocols do not work anyways.

- Olock code ignores VRFs. Breaks config with multiple BGP peers with the
same IP address in different VRFs.

- Incoming BGP connections are not dispatched according to VRFs.
Breaks config with multiple BGP peers with the same IP address in
different VRFs. Perhaps we would need some kernel API to read VRF of
incoming connection? Or probably use multiple listening sockets in
int-new branch.

- We should handle master VRF interface up/down events and perhaps
disable associated protocols when VRF goes down. Or at least disable
associated interfaces.

- Also we should check if the master iface is really VRF iface and
not some other kind of master iface.

- BFD session request dispatch should be aware of VRFs.

- Perhaps kernel protocol should read default kernel table ID from VRF
iface so it is not necessary to configure it.

- Perhaps we should have per-VRF default table.
2017-09-06 17:38:48 +02:00
..
config.Y Implement latency tracking, internal event log and watchdog 2015-03-02 09:41:14 +01:00
Doc Documented all the sysdeps (only briefly, I admit). 2000-06-05 12:49:04 +00:00
endian.h OpenBSD port related changes. 2009-05-11 01:32:49 +02:00
io.c Basic VRF support 2017-09-06 17:38:48 +02:00
krt.c Build: switch on -Wextra, get rid of most of the warnings 2016-11-01 14:52:54 +01:00
krt.h Nest: Fix bug in device proto 2015-11-23 11:13:40 +01:00
krt.Y KRT: Fix trivial error 2016-08-31 14:02:41 +02:00
log.c Some more autoconf cleanups 2017-05-16 12:59:22 +02:00
main.c Minor code cleanups 2016-11-08 17:46:29 +01:00
Modules Cleanup in sysdep KRT code, part 2. 2012-04-30 22:25:24 +02:00
random.c Split random number functions off io.c, so that they can be documented 2000-06-05 11:46:40 +00:00
timer.h Fix some forgotten warnings 2017-05-18 14:26:57 +02:00
unix.h Build: switch on -Wextra, get rid of most of the warnings 2016-11-01 14:52:54 +01:00