1. 03 May, 2018 4 commits
    • Ondřej Zajíček's avatar
      Better initialization of random generator · eaf63d31
      Ondřej Zajíček authored
      Use full time precision to initialize random generator. The old
      code was prone to initialize it to the same values in specific
      circumstances (boot without RTC, multiple VMs starting at once).
      eaf63d31
    • Ondřej Zajíček's avatar
      Babel: Add option to randomize router ID · 70fab178
      Ondřej Zajíček authored
      When a Babel node restarts, it loses its sequence number, which can cause
      its routes to be rejected by peers until the state is cleared out by other
      nodes in the network (which can take on the order of minutes).
      
      There are two ways to fix this: Having stable storage to keep the sequence
      number across restarts, or picking a different router ID each time.
      
      This implements the latter, by introducing a new option that will cause
      BIRD to randomize a high 32 bits of router ID every time it starts up.
      This avoids the problem at the cost of not having stable router IDs in
      the network.
      
      Thanks to Toke Hoiland-Jorgensen for the patch.
      70fab178
    • Ondřej Zajíček's avatar
      Babel: Fix type of route entry router ID · 23b07904
      Ondřej Zajíček authored
      The router ID being assigned to routes was a uint, which discards the
      upper 32 bits. This also has the nice side effect of echoing the wrong
      router ID back to other routers.
      
      Thanks to Toke Hoiland-Jorgensen for the patch.
      23b07904
    • Jan Maria Matejka's avatar
      Makefile: Only set git version if BIRD is build from its repository. · 29958745
      Jan Maria Matejka authored
      Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for reporting this bug.
      29958745
  2. 27 Apr, 2018 1 commit
  3. 25 Apr, 2018 1 commit
  4. 12 Apr, 2018 1 commit
  5. 03 Apr, 2018 2 commits
  6. 24 Mar, 2018 1 commit
  7. 23 Mar, 2018 1 commit
  8. 22 Mar, 2018 2 commits
  9. 21 Mar, 2018 2 commits
  10. 20 Mar, 2018 1 commit
  11. 19 Mar, 2018 1 commit
  12. 18 Mar, 2018 2 commits
  13. 17 Mar, 2018 2 commits
  14. 14 Mar, 2018 2 commits
    • Jan Maria Matejka's avatar
      Merge branch 'master' into int-new · 8a871e89
      Jan Maria Matejka authored
      8a871e89
    • Jan Maria Matejka's avatar
      Filter: make bgpmask literals real constructors · e8bc64e3
      Jan Maria Matejka authored
      The bgpmask literals can include expressions. This is OK but they have
      to be interpreted as soon as the code is run, not in the time the code
      is used as value.
      
      This led to strange behavior like rewriting bgpmasks when they shan't
      be rewritten:
      
      	function mask_generator(int as)
      	{
      		return [= * as * =];
      	}
      
      	function another()
      	bgpmask m1;
      	bgpmask m2;
      	{
      		m1 = mask_generator(10);
      		m2 = mask_generator(20);
      		if (m1 == m2) {
      			print("strange"); # this would happen
      		}
      	}
      
      Moreover, sending this to CLI would cause stack overflow and knock down the
      whole BIRD, as soon as there is at least one route to execute the given
      filter on.
      
      	show route filter bgpmask mmm; bgppath ppp; { ppp = +empty+; mmm = [= (ppp ~ mmm) =]; print(mmm); accept; }
      
      The magic match operator (~) inside the bgpmask literal would try to
      resolve mmm, which points to the same bgpmask so it would resolve
      itself, call the magic match operator and vice versa.
      
      After this patch, the bgpmask literal will get resolved as soon as it's
      assigned to mmm and it also will return a type error as bool is not
      convertible to ASN in BIRD.
      e8bc64e3
  15. 13 Mar, 2018 5 commits
  16. 08 Mar, 2018 2 commits
  17. 07 Mar, 2018 2 commits
  18. 27 Feb, 2018 1 commit
  19. 13 Feb, 2018 5 commits
    • Ondřej Zajíček's avatar
      1561ee79
    • Ondřej Zajíček's avatar
      Add cscope Makefile target · d5144ea9
      Ondřej Zajíček authored
      For those who prefer cscope to etags
      
      Thanks to Toke Hoiland-Jorgensen for the patch.
      d5144ea9
    • Ondřej Zajíček's avatar
      Babel: Fix accidental bitwise or assignment · 5ce7adfc
      Ondřej Zajíček authored
      Fix an accidental bitwise or assignment that was supposed to be a
      comparison.
      
      Thanks to Toke Hoiland-Jorgensen for the patch.
      5ce7adfc
    • Ondřej Zajíček's avatar
      Babel: Add source-specific routing support · 185a0a51
      Ondřej Zajíček authored
      This patch adds support for source-specific routing to the Babel protocol.
      It changes the protocol to support both NET_IP6 and NET_IP6_SADR channels
      for IPv6 addresses. If only a NET_IP6 channel is configured,
      source-specific updates are ignored. Otherwise, non-source-specific
      routes are simply treated as source-specific routes with SADR prefix 0.
      
      Thanks to Toke Hoiland-Jorgensen for the original patch.
      Minor changes by Ondrej Santiago Zajicek.
      185a0a51
    • Ondřej Zajíček's avatar
      Add support for source-specific IPv6 routes to BIRD core · be17805c
      Ondřej Zajíček authored
      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.
      be17805c
  20. 07 Feb, 2018 1 commit
  21. 06 Feb, 2018 1 commit
    • Ondřej Zajíček's avatar
      KRT: Fix IPv6 route learn · 28b3b551
      Ondřej Zajíček authored
      Internal table used for route learn was created with non-matching net
      type for IPv6 kernel proto.
      
      Thanks to Toke Hoiland-Jorgensen for the bugreport
      28b3b551