]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix static protocol w.r.t. some recent changes in protocol ahooks.
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 15 Apr 2012 13:13:12 +0000 (15:13 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 15 Apr 2012 13:13:12 +0000 (15:13 +0200)
proto/static/static.c

index aaa9bfad76539d443ce771022a3721773dcbfed5..6a027f503c87ef20b7f710bbe8241ece51c712f5 100644 (file)
@@ -224,6 +224,9 @@ static_start(struct proto *p)
   if (cf->igp_table)
     rt_lock_table(cf->igp_table->table);
 
+  /* We have to go UP before routes could be installed */
+  proto_notify_state(p, PS_UP);
+
   WALK_LIST(r, cf->other_routes)
     static_add(p, cf, r);
   return PS_UP;