1. 18 Sep, 2018 1 commit
    • Ondřej Zajíček's avatar
      The MRT protocol · c0fc3e67
      Ondřej Zajíček authored
      The new MRT protocol is responsible for periodic RIB table dumps in the
      MRT format (RFC 6396). Also the existing code for BGP4MP MRT dumps is
      refactored and splitted between BGP to MRT protocols, will be more
      integrated into MRT in the future.
      
      Example:
      
      protocol mrt {
      	table "*";
      	filename "%N_%F_%T.mrt";
      	period 60;
      }
      
      It is partially based on the old MRT code from Pavel Tvrdik.
      c0fc3e67
  2. 11 Sep, 2018 1 commit
  3. 28 Jul, 2018 1 commit
    • Ondřej Zajíček's avatar
      BSD: Use MSG_DONTROUTE for unicast packets on FreeBSD · 6be71641
      Ondřej Zajíček authored
      BSD systems cannot use SO_DONTROUTE, because it does not work properly
      with multicast packets (perhaps it tries to find iface based on multicast
      group address). But we can use MSG_DONTROUTE sendmsg() flag for unicast
      packets. Works on FreeBSD, is ignored on OpenBSD and is broken on NetBSD
      (i guess due to integrated routing table and ARP table).
      6be71641
  4. 24 Apr, 2018 1 commit
  5. 23 Apr, 2018 1 commit
  6. 21 Mar, 2018 1 commit
  7. 23 Jan, 2018 1 commit
    • Ondřej Zajíček's avatar
      IO: Fix socket priority · d6cf9961
      Ondřej Zajíček authored
      On Linux, setting the ToS will also set the priority and the range of
      accepted values is quite limited (masked by 0x1e). Therefore, 0xc0 is
      translated to a priority of 0, not something we want, overriding the
      "7" priority which was set previously explicitely. To avoid that, just
      move setting priority later in the code.
      
      Thanks to Vincent Bernat for the patch.
      d6cf9961
  8. 16 Jan, 2018 1 commit
    • Ondřej Zajíček's avatar
      Filter: Allow silent filter execution · b9405791
      Ondřej Zajíček authored
      A filter should log messages only if executed explicitly (e.g., during
      route export or route import). When a filter is executed for technical
      reasons (e.g., to establish whether a route was exported before), it
      should run silently.
      b9405791
  9. 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
  10. 05 Sep, 2017 1 commit
    • Ondřej Zajíček's avatar
      KRT: Fix IPv6 ECMP handling with Linux 4.11+ · 98bb80a2
      Ondřej Zajíček authored
      Starting from Linux 4.11, IPv6 ECMP routes are now notified using
      RTA_MULTIPATH, like IPv4 ones. The patch adds support for RTA_MULTIPATH
      parsing for IPv6 routes. This also enables to parse ECMP alien routes
      correctly.
      
      Thanks to Vincent Bernat for the original patch.
      98bb80a2
  11. 04 Sep, 2017 1 commit
    • Ondřej Zajíček's avatar
      BSD: Fix alignment issue · 9befc7cc
      Ondřej Zajíček authored
      Incorrect structure alignment breaks kernel routing table updates on
      FreeBSD/ARM (and perhaps other platforms).
      
      Thanks to Eugene Sevastyanov for the original patch.
      9befc7cc
  12. 18 May, 2017 1 commit
  13. 16 May, 2017 3 commits
  14. 14 Mar, 2017 1 commit
    • Ondřej Zajíček's avatar
      Some autoconf cleanups · 7a855725
      Ondřej Zajíček authored
      The patch allows to use autoreconf, replaces some long obsolete
      constructs and does some other minor cleanups. Also, the file
      configure.in is renamed to configure.ac, as the old name has been
      deprecated for a long time.
      
      Thanks to Ruben Kerkhof for the patchset.
      7a855725
  15. 17 Jan, 2017 1 commit
    • Ondřej Zajíček's avatar
      Fix IP_HDRINCL usage on FreeBSD 11 · f6e6c3b5
      Ondřej Zajíček authored
      FreeBSD 11 changed endianity of ip_len field from host order to network
      order. Also DragonFly BSD allegedly expects network order here.
      
      Thanks to Olivier Cochard-Labbé for the patch.
      f6e6c3b5
  16. 21 Dec, 2016 1 commit
  17. 20 Dec, 2016 1 commit
  18. 08 Nov, 2016 1 commit
  19. 01 Nov, 2016 3 commits
  20. 29 Sep, 2016 2 commits
  21. 22 Sep, 2016 1 commit
  22. 19 Sep, 2016 1 commit
    • Ondřej Zajíček's avatar
      KRT: Add krt_scope attribute · 6e75d0d2
      Ondřej Zajíček authored
      Add a new route attribute, krt_scope, to expose the Linux kernel route
      scope. Constants from /etc/iproute2/rt_scopes (prefixed by "ips_") are
      expected to be used with the attribute. Both import and export are
      supported.
      
      Also, the patch fixes device route export to the kernel, by setting link
      scope automatically.
      6e75d0d2
  23. 15 Sep, 2016 3 commits
    • Pavel Tvrdik's avatar
      Main: Improve BIRD help messages · 292f7858
      Pavel Tvrdik authored
      292f7858
    • Pavel Tvrdik's avatar
      rt-table: Fix kernel protocol export filter memory bug · a290da25
      Pavel Tvrdik authored
      Kernel protocol calls rt_export_merged(), which used @rte_update_pool for
      temporary allocations, supposing it is called from other functions from
      rt-table.c that handles locking and flushing of the linpool. Therefore,
      linpool was not flushed properly and memory leaked.
      
      Add linpool argument to rt_export_merged() and use @krt_filter_lp when
      called from kernel protocol.
      
      Thanks to Justin Cattle and Alexander Frolkin for the bugreport.
      
      (Commit squashed and updated by Ondrej Zajicek)
      a290da25
    • Ondřej Zajíček's avatar
      KRT: Add kernel metric protocol option · 4adcb9df
      Ondřej Zajíček authored
      Kernel routes with different metrics do not clash with each other,
      therefore using dedicated metric value is a reliable way to avoid
      overwriting routes from other sources (e.g. kernel device routes).
      
      Although kernel route metric could already be set as a route attribute by
      filters, that is not consistent with the way how Linux kernel handles
      route metric - not just a route attribute, but a part of a route key.
      4adcb9df
  24. 14 Sep, 2016 1 commit
    • Ondřej Zajíček's avatar
      KRT: Support for IPv6 ECMP · 2feaa693
      Ondřej Zajíček authored
      Linux represents IPv6 ECMP routes as a sequence of unipath routes with
      the same prefix. We have to translate between our representation (one
      route with multipath next hop) and the Linux representation in both
      directions.
      
      Proper learning of alien IPv6 ECMP routes still not supported.
      
      Thanks to Mikhail Sennikovskii for the original patch.
      2feaa693
  25. 31 Aug, 2016 1 commit
  26. 30 Aug, 2016 1 commit
  27. 16 Aug, 2016 1 commit
  28. 20 Jul, 2016 2 commits
  29. 11 Jul, 2016 1 commit
  30. 27 Jun, 2016 1 commit
  31. 30 May, 2016 1 commit
  32. 12 May, 2016 1 commit