1. 19 Sep, 2017 1 commit
    • Ondřej Zajíček's avatar
      BGP: Shutdown communication (RFC 8203) · cd1d9961
      Ondřej Zajíček authored
      The patch implements BGP Administrative Shutdown Communication (RFC 8203)
      allowing BGP operators to pass messages related to BGP session
      administrative shutdown/restart. It handles both transmit and receive of
      shutdown messages. Messages are logged and may be displayed by show
      protocol all command.
      
      Thanks to Job Snijders for the basic patch.
      cd1d9961
  2. 12 Sep, 2017 1 commit
  3. 06 Sep, 2017 1 commit
    • Ondřej Zajíček's avatar
      Basic VRF support · 943478b0
      Ondřej Zajíček authored
      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.
      943478b0
  4. 14 Mar, 2017 1 commit
  5. 25 Nov, 2016 1 commit
    • Ondřej Zajíček's avatar
      BGP: Fix memory leak in graceful restart code · ed1a908e
      Ondřej Zajíček authored
      Prefix and bucket tables are initialized when entering established state
      but not explicitly freed when leaving it (that is handled by protocol
      restart). With graceful restart, BGP may enter and leave established
      state multiple times without hard protocol restart causing memory leak.
      ed1a908e
  6. 01 Nov, 2016 1 commit
  7. 13 Apr, 2016 1 commit
    • Ondřej Zajíček's avatar
      BSD: Add the IPsec SA/SP database entries control · a7baa098
      Ondřej Zajíček authored
      Add code for manipulation with TCP-MD5 keys in the IPsec SA/SP database
      at FreeBSD systems. Now, BGP MD5 authentication (RFC 2385) keys are
      handled automatically on both Linux and FreeBSD.
      
      Based on patches from Pavel Tvrdik.
      a7baa098
  8. 06 Apr, 2016 2 commits
    • Ondřej Zajíček's avatar
      IO: Avoid multiple event cycles in one loop cycle. · bd22d7f4
      Ondřej Zajíček authored
      Event cycle may took too much time and trigger next timer events, so
      avoid cycling between timer and event cycles inside the loop cycle.
      bd22d7f4
    • Ondřej Zajíček's avatar
      IO: Replace RX priority heuristic with explicit mark · 9e7b3ebd
      Ondřej Zajíček authored
      In BIRD, RX has lower priority than TX with the exception of RX from
      control socket. The patch replaces heuristic based on socket type with
      explicit mark and uses it for both control socket and BGP session waiting
      to be established.
      
      This should avoid an issue when during heavy load, outgoing connection
      could connect (TX event), send open, but then failed to receive OPEN /
      establish in time, not sending notifications between and therefore
      got hold timer expired error from the neighbor immediately after it
      finally established the connection.
      9e7b3ebd
  9. 11 Feb, 2016 1 commit
    • Ondřej Zajíček's avatar
      BGP: Fix bug in incoming connection handling · 487c6961
      Ondřej Zajíček authored
      When a BGP session was established by an outgoing connection with
      Graceful Restart behavior negotiated, a pending incoming connection in
      OpenSent state, and another incoming connection was received, then the
      outgoing connection (and whole BGP session) was closed, but the old
      incoming connection was just overwritten by the new one. That later
      caused a crash when the hold timer from the old connection fired.
      487c6961
  10. 18 Jul, 2015 1 commit
  11. 08 Jun, 2015 1 commit
    • Ondřej Zajíček's avatar
      BGP multipath support · 8d9eef17
      Ondřej Zajíček authored
      Kernel option 'merge paths' allows to merge routes exported to kernel
      protocol (currently BGP and static routes) to multipath routes.
      8d9eef17
  12. 29 Mar, 2015 1 commit
  13. 22 Feb, 2015 2 commits
  14. 21 Feb, 2015 4 commits
  15. 24 Oct, 2014 1 commit
  16. 02 Oct, 2014 1 commit
  17. 18 May, 2014 1 commit
  18. 24 Mar, 2014 1 commit
  19. 23 Mar, 2014 1 commit
  20. 20 Mar, 2014 1 commit
    • Ondřej Zajíček's avatar
      BGP graceful restart support. · 0c791f87
      Ondřej Zajíček authored
      Also significant core protocol state changes needed for that,
      global graceful restart recovery state and kernel proto support
      for recovery.
      0c791f87
  21. 02 Dec, 2013 1 commit
  22. 01 Dec, 2013 1 commit
  23. 24 Nov, 2013 1 commit
  24. 22 Nov, 2013 1 commit
  25. 19 Nov, 2013 1 commit
  26. 13 Aug, 2013 1 commit
  27. 13 Jul, 2013 1 commit
  28. 09 May, 2013 1 commit
  29. 10 Jan, 2013 1 commit
  30. 27 Dec, 2012 1 commit
    • Ondřej Zajíček's avatar
      Implements interface masks for choosing router id. · 79b4e12e
      Ondřej Zajíček authored
      Router ID could be automatically determined based of subset of
      ifaces/addresses specified by 'router id from' option. The patch also
      does some minor changes related to router ID reconfiguration.
      
      Thanks to Alexander V. Chernikov for most of the work.
      79b4e12e
  31. 15 Nov, 2012 1 commit
  32. 10 Nov, 2012 1 commit
    • Ondřej Zajíček's avatar
      Allows rejected routes to be kept and examined. · cf98be7b
      Ondřej Zajíček authored
      When 'import keep rejected' protocol option is activated, routes
      rejected by the import filter are kept in the routing table, but they
      are hidden and not propagated to other protocols. It is possible to
      examine them using 'show route rejected'.
      cf98be7b
  33. 14 Aug, 2012 1 commit
    • Ondřej Zajíček's avatar
      Implements ADD-PATH extension for BGP. · 094d2bdb
      Ondřej Zajíček authored
      Allows to send and receive multiple routes for one network by one BGP
      session. Also contains necessary core changes to support this (routing
      tables accepting several routes for one network from one protocol).
      It needs some more cleanup before merging to the master branch.
      094d2bdb
  34. 06 Aug, 2012 1 commit
  35. 16 Jul, 2012 1 commit