summaryrefslogtreecommitdiffstats
path: root/lib/libospf.h
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-11-15 06:00:55 +0100
committerMobashshera Rasool <mrasool@vmware.com>2022-11-21 12:19:33 +0100
commitca5997cd018ec66534285130d02de168a3a4ed5c (patch)
treebcf182ce91c8ca8e408f59ff50ae78ef40a603f8 /lib/libospf.h
parentMerge pull request #12336 from cscarpitta/fix/increase-sid-index-limit (diff)
downloadfrr-ca5997cd018ec66534285130d02de168a3a4ed5c.tar.xz
frr-ca5997cd018ec66534285130d02de168a3a4ed5c.zip
ospfd: Fix RFC conformance test cases 25.19 and 27.6
Steps to reproduce: -------------------------- 1. ANVL: Establish full adjacency with DUT for neighbor Rtr-0-A on DIface-0 with DUT as DR. 2. ANVL: Listen (for up to 2 * <RxmtInterval> seconds) on DIface-0. 3. DUT: Send <OSPF-LSU> packet. 4. ANVL: Verify that the received <OSPF-LSU> packet contains a Network- LSA for network N1 originated by DUT, and the LS Sequence Number is set to <InitialSequenceNumber>. 5. ANVL: Establish full adjacency with DUT for neighbor Rtr-0-B on DIface-0 with DUT as DR. 6. ANVL: Listen (for up to 2 * <RxmtInterval> seconds) on DIface-0. 7. DUT: Send <OSPF-LSU> packet. 8. ANVL: Verify that the received <OSPF-LSU> packet contains a new instance of the Network-LSA for network N1 originated by DUT, and the LS Sequence Number is set to (<InitialSequenceNumber> + 1). Both the test cases were failing while verifying the initial sequence number for network LSA. This is because currently OSPF does not reset its LSA sequence number when it is going down. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'lib/libospf.h')
-rw-r--r--lib/libospf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libospf.h b/lib/libospf.h
index c8ada9d3c..161c7635d 100644
--- a/lib/libospf.h
+++ b/lib/libospf.h
@@ -52,6 +52,7 @@ extern "C" {
#define OSPF_DEFAULT_DESTINATION 0x00000000 /* 0.0.0.0 */
#define OSPF_INITIAL_SEQUENCE_NUMBER 0x80000001U
#define OSPF_MAX_SEQUENCE_NUMBER 0x7fffffffU
+#define OSPF_INVALID_SEQUENCE_NUMBER 0x80000000U
/* OSPF Interface Types */
#define OSPF_IFTYPE_NONE 0