summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-10 18:25:36 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-10 18:25:36 +0200
commit1aec7112f7314c3e9a4d8b9440dd85a782295310 (patch)
tree0a48e1eeb5a43c8905fbb1b779e2f487fc2b5aad /proto/ospf/ospf.c
parent422a9334294dd9a5b13abd8563a3dc7233e64b13 (diff)
OSPF: Fix handling of NSSA option flags
Per RFC 3101, N-bit signalling NSSA support should be used only in Hello packets, not in DBDES packets. BIRD since 2.0.4 verifies N-bit in neighbor structure, which is learned from DBDES packets, therefore NSSA-LSAs are not propagated to proper implementations of RFC 3101. This patch fixes that. Both removing the check and removing N-bit from DBDES packet. This will fix compatibility issues with proper implementations, but causes compatibility issues with BIRD 2.0.4.
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index abd4cd84..57e578da 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -146,7 +146,7 @@ static inline uint
ospf_opts(struct ospf_proto *p)
{
if (ospf_is_v2(p))
- return 0;
+ return OPT_O;
return ((ospf_is_ip6(p) && !p->af_mc) ? OPT_V6 : 0) |
(!p->stub_router ? OPT_R : 0) | (p->af_ext ? OPT_AF : 0);