Browse Source

ospf6d: Fix for fast OSPF convergence

Fixed use of OSPF_MIN_LS_ARRIVAL, which changed its unit from
seconds to milliseconds
Michael Rossberg 3 years ago
parent
commit
ca8ec20b01
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ospf6d/ospf6_flood.c

+ 1 - 1
ospf6d/ospf6_flood.c

@@ -863,7 +863,7 @@ ospf6_receive_lsa (struct ospf6_neighbor *from,
           struct timeval now, res;
           quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
           timersub (&now, &old->installed, &res);
-          if (res.tv_sec < OSPF_MIN_LS_ARRIVAL)
+          if (res.tv_sec < (OSPF_MIN_LS_ARRIVAL / 1000))
             {
               if (is_debug)
                 zlog_debug ("LSA can't be updated within MinLSArrival, discard");