]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: OSPF_MIN_LS_ARRIVAL compare should be >= to match ospf_flood
authorPaul Jakma <paul@quagga.net>
Mon, 11 Jan 2010 16:22:12 +0000 (16:22 +0000)
committerPaul Jakma <paul@quagga.net>
Wed, 8 Dec 2010 17:11:18 +0000 (17:11 +0000)
* ospf_packet.c: (ospf_ls_upd) the corresponding test on the arrival side
  in (ospf_flood) is <, so this should be >=, not >, purely for consistency.

  There is no practical effect here though.

ospfd/ospf_packet.c

index 1066e64fb7e5adae1ad1200c0b6b1c6762a68ae6..57ed11404029afbf0e064653e83cd277a6a6b85b 100644 (file)
@@ -1946,7 +1946,7 @@ ospf_ls_upd (struct ip *iph, struct ospf_header *ospfh,
              quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
              
              if (tv_cmp (tv_sub (now, current->tv_orig), 
-                         int2tv (OSPF_MIN_LS_ARRIVAL)) > 0)
+                         int2tv (OSPF_MIN_LS_ARRIVAL)) >= 0)
                /* Trap NSSA type later.*/
                ospf_ls_upd_send_lsa (nbr, current, OSPF_SEND_PACKET_DIRECT);
              DISCARD_LSA (lsa, 8);