]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Fix OSPFv3 in IPv4 mode with multiple areas
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 26 May 2021 16:57:32 +0000 (18:57 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 26 May 2021 16:57:32 +0000 (18:57 +0200)
Some area handling code got confused by IPv4 setup in OSPFv3 mode.

proto/ospf/rt.c

index 17f8be7feae21d67412b83191d64ec5672952d43..faee49dc0ba3ffda3a1bcf5c37eaaa04fc3314fc 100644 (file)
@@ -1251,7 +1251,7 @@ ospf_rt_abr1(struct ospf_proto *p)
   FIB_WALK_END;
 
 
-  if (ospf_is_v2(p))
+  if (ospf_is_ip4(p))
     net_fill_ip4(&default_net, IP4_NONE, 0);
   else
     net_fill_ip6(&default_net, IP6_NONE, 0);