summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_message.c
diff options
context:
space:
mode:
authorDinesh Dutt <ddutt@cumulusnetworks.com>2013-08-25 03:03:07 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2013-11-07 18:15:43 -0800
commit7a10a359e9740710c1e39c8be0f761f506795480 (patch)
treeacf3db650a76ef97da33b0703d97920ea3d8e53a /ospf6d/ospf6_message.c
parent3b220289a4d0da4539d965ca71e9479d68c87b11 (diff)
downloadquagga-7a10a359e9740710c1e39c8be0f761f506795480.tar.bz2
quagga-7a10a359e9740710c1e39c8be0f761f506795480.tar.xz
ospf6d: don't change SeqNum on initial DbDesc message
The code was setting the DbDesc seqnum to the current seconds value of time if this was the initial DbDesc. However, the same code was getting invoked if the initial DbDesc was retransmitted. Caused ANVL test XX.XX to fail. Signed-off-by: Dinesh G Dutt <ddutt at cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_message.c')
-rw-r--r--ospf6d/ospf6_message.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index 82d2d340..caebf5d6 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -1797,7 +1797,8 @@ ospf6_dbdesc_send (struct thread *thread)
sizeof (struct ospf6_header));
/* if this is initial one, initialize sequence number for DbDesc */
- if (CHECK_FLAG (on->dbdesc_bits, OSPF6_DBDESC_IBIT))
+ if (CHECK_FLAG (on->dbdesc_bits, OSPF6_DBDESC_IBIT) &&
+ (on->dbdesc_seqnum == 0))
{
struct timeval tv;
if (quagga_gettime (QUAGGA_CLK_MONOTONIC, &tv) < 0)