1. 07 Mar, 2018 1 commit
  2. 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.
  3. 15 Dec, 2016 1 commit
    • Ondřej Zajíček's avatar
      OSPF: Fix ECMP external merging · 7d95c445
      Ondřej Zajíček authored
      The variable nfa is not cleaned before each loop iteration and can have
      a wrong value of nfa.nhs_reuse from the previous step.
      Thanks to Bernardo Figueiredo for the bugreport and analysis.
  4. 13 Dec, 2016 1 commit
    • Ondřej Zajíček's avatar
      OSPF: Fix net-summary origination combined with stubnet option · 9e7d3a78
      Ondřej Zajíček authored
      Stubnet nodes in OSPF FIB were removed during rt_sync(), but the pointer
      remained in top_hash_entry.nf, so net-summary LSA origination was
      confused, reported 'LSA ID collision' and net-summary LSAs were not
      originated properly.
      Thanks to Naveen Chowdary Yerramneni for bugreport and analysis.
  5. 08 Nov, 2016 1 commit
  6. 02 Nov, 2016 2 commits
  7. 01 Nov, 2016 1 commit
  8. 12 May, 2016 1 commit
  9. 23 Mar, 2016 2 commits
    • Ondřej Zajíček's avatar
      OSPF: Fix bogus LSA ID collisions between received and originated LSAs · 39a6b19d
      Ondřej Zajíček authored
      After restart, LSAs locally originated by the previous instance are
      received from neighbors. They are installed to LSA db and flushed. If
      export of a route triggers origination of a new external LSA before flush
      of the received one is complete, the check in ospf_originate_lsa() causes
      origination to fail (because en->nf is NULL for the old LSA and non-NULL
      for the new LSA). The patch fixes this by updating the en->nf for LSAs
      being flushed (as is already done for empty ones). Generally, en->nf
      field deserves some better description in the code.
      Thanks to Jigar Mehta for analyzing the problem.
    • Ondřej Zajíček's avatar
      OSPF: Fix reading from freed memory · a459f4df
      Ondřej Zajíček authored
      Thanks to Pavel Tvrdik for noticing it.
  10. 25 Feb, 2016 1 commit
  11. 24 Nov, 2015 1 commit
  12. 05 Oct, 2015 1 commit
    • Ondřej Zajíček's avatar
      Major RIP redesign · 8465dccb
      Ondřej Zajíček authored
      The new RIP implementation fixes plenty of old bugs and also adds support
      for many new features: ECMP support, link state support, BFD support,
      configurable split horizon and more. Most options are now per-interface.
  13. 19 Aug, 2015 1 commit
  14. 20 Jul, 2015 1 commit
  15. 08 Jun, 2015 2 commits
  16. 01 Jun, 2015 1 commit
  17. 01 May, 2015 1 commit
    • Ondřej Zajíček's avatar
      OSPF: Redesign LSA checksumming · 77edab64
      Ondřej Zajíček authored
      New LSA checksumming code separates generic Fletcher-16 and OSPF-specific
      code and avoids back and forth endianity conversions, making it much more
      readable and also several times faster.
  18. 28 Apr, 2015 1 commit
    • Ondřej Zajíček's avatar
      OSPF: Fixes validation of LSA checksums · 30d09eb9
      Ondřej Zajíček authored
      Prior to this patch, BIRD validates the OSPF LSA checksum by calculating
      a new checksum and comparing it with the checksum in the header. Due to
      the specifics of the Fletcher checksum used in OSPF, this is not
      necessarily correct as the checkbytes in the header may be calculated via
      a different means and end up with a different value that is nonetheless
      still correct.
      The documented means of validating the checksum as specified in RFC 905
      B.4 is to calculate c0 and c1 from the unchanged contents of the packet,
      which must result in a zero value to be considered valid.
      Thanks to Chris Boot for the patch.
  19. 18 Apr, 2015 1 commit
  20. 12 Apr, 2015 1 commit
  21. 21 Feb, 2015 1 commit
  22. 04 Nov, 2014 1 commit
  23. 03 Nov, 2014 3 commits
  24. 24 Oct, 2014 2 commits
  25. 16 Oct, 2014 1 commit
  26. 21 Jul, 2014 1 commit
  27. 19 Jul, 2014 1 commit
  28. 18 Jul, 2014 1 commit
  29. 26 Jun, 2014 1 commit
  30. 18 May, 2014 1 commit
  31. 23 Apr, 2014 1 commit
    • Ondřej Zajíček's avatar
      Extends multipath support for OSPF. · 145368f5
      Ondřej Zajíček authored
      Fixes cases where the same network or external route are propagated by
      several OSPF routes and some other corner cases in next hop construction
      and ECMP. Allows to specify whether external routes should be merged.
      Thanks to Peter Christensen for the original patch.
  32. 31 Mar, 2014 1 commit
  33. 06 Feb, 2014 2 commits