[quagga-dev 7719] [PATCH 2/5] ospfd: OSPF_MIN_LS_ARRIVAL compare should be >= to match ospf_flood

paul at jakma.org paul at jakma.org
Mon Feb 1 15:52:12 GMT 2010


From: Paul Jakma <paul at quagga.net>

* 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 6f83a2d..8b7c63a 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -1990,7 +1990,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);
-- 
1.6.5.2




More information about the Quagga-dev mailing list