]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: N-bit should not be set for DBDES packets
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Jul 2019 13:31:15 +0000 (15:31 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Jul 2019 13:44:05 +0000 (15:44 +0200)
proto/ospf/dbdes.c

index d6904343c7b61e387783eab0653f29143012d159..d7d2a0570a87d7a1414ce52355fe5934eba1b70f 100644 (file)
@@ -121,7 +121,7 @@ ospf_prepare_dbdes(struct ospf_proto *p, struct ospf_neighbor *n)
   {
     struct ospf_dbdes2_packet *ps = (void *) pkt;
     ps->iface_mtu = htons(iface_mtu);
-    ps->options = ifa->oa->options;
+    ps->options = ifa->oa->options & ~OPT_N;
     ps->imms = 0;      /* Will be set later */
     ps->ddseq = htonl(n->dds);
     length = sizeof(struct ospf_dbdes2_packet);
@@ -129,7 +129,7 @@ ospf_prepare_dbdes(struct ospf_proto *p, struct ospf_neighbor *n)
   else /* OSPFv3 */
   {
     struct ospf_dbdes3_packet *ps = (void *) pkt;
-    ps->options = htonl(ifa->oa->options);
+    ps->options = htonl(ifa->oa->options & ~OPT_N);
     ps->iface_mtu = htons(iface_mtu);
     ps->padding = 0;
     ps->imms = 0;      /* Will be set later */