]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes broken vlinks in OSPF.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 16 Mar 2012 12:01:12 +0000 (13:01 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 16 Mar 2012 12:01:12 +0000 (13:01 +0100)
proto/ospf/config.Y
proto/ospf/iface.c

index 9c48a9b8b9c928a6f9293b4a2d148209c07fc0b4..75c132da0f874bb53d3d616e5c300c2387d1307d 100644 (file)
@@ -219,7 +219,7 @@ ospf_stubnet_item:
 
 ospf_vlink:
    ospf_vlink_start '{' ospf_vlink_opts '}' { ospf_iface_finish(); }
- | ospf_vlink_start
+ | ospf_vlink_start { ospf_iface_finish(); }
  ;
 
 ospf_vlink_opts:
index 13d5efb648fc65e8fb699b4cbe5d34a60bd7b39a..405e49dfd879d508a4183da5377abef8681728c6 100644 (file)
@@ -570,6 +570,9 @@ ospf_iface_new(struct ospf_area *oa, struct ifa *addr, struct ospf_iface_patt *i
   {
     ifa->voa = ospf_find_area(oa->po, ip->voa);
     ifa->vid = ip->vid;
+
+    ifa->hello_timer = tm_new_set(ifa->pool, hello_timer_hook, ifa, 0, ifa->helloint);
+
     return;                    /* Don't lock, don't add sockets */
   }