From: Ondrej Zajicek Date: Fri, 2 May 2014 16:13:20 +0000 (+0200) Subject: Merge commit 'd40c26594c22ad934a13061e11b373bdf81af8f9' into integrated X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5896261185ee29212a7d6d719949ede152d3bf;p=thirdparty%2Fbird.git Merge commit 'd40c26594c22ad934a13061e11b373bdf81af8f9' into integrated Conflicts: proto/static/static.c --- 6c5896261185ee29212a7d6d719949ede152d3bf diff --cc proto/static/static.c index 7aa94f6c4,d3a595d35..c51b194ea --- a/proto/static/static.c +++ b/proto/static/static.c @@@ -58,7 -58,11 +58,7 @@@ p_igp_table(struct proto *p static void static_install(struct proto *p, struct static_route *r, struct iface *ifa) { - if (r->installed) - net *n; - rta a, *aa; - rte *e; - + if (r->installed > 0) return; DBG("Installing static route %I/%d, rtd=%d\n", r->net, r->masklen, r->dest); @@@ -122,10 -123,10 +122,10 @@@ static_remove(struct proto *p, struct s if (!r->installed) return; - DBG("Removing static route %I/%d\n", r->net, r->masklen); + DBG("Removing static route %I/%d via %I\n", r->net, r->masklen, r->via); - n = net_find(p->table, r->net, r->masklen); + + // int pxlen = r->masklen + (ipa_is_ip4(r->net) ? 96 : 0); // XXXX: Hack + net *n = net_find(p->table, r->net, r->masklen); rte_update(p, n, NULL); r->installed = 0; }