From: acinonyx Date: Fri, 29 Jun 2012 15:31:27 +0000 (+0000) Subject: [packages] quagga: Fix OLSR recursive nexthop selection X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=ab5e6e08835e4665b4858823799227e8d2d928c3;p=packages.git [packages] quagga: Fix OLSR recursive nexthop selection git-svn-id: svn://svn.openwrt.org/openwrt/packages@32526 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/quagga/patches/120-quagga_manet.patch b/net/quagga/patches/120-quagga_manet.patch index 7543f1eb4..bf6d05677 100644 --- a/net/quagga/patches/120-quagga_manet.patch +++ b/net/quagga/patches/120-quagga_manet.patch @@ -129,9 +129,9 @@ [ZEBRA_ROUTE_BABEL] = {ZEBRA_ROUTE_BABEL, 95}, /* no entry/default: 150 */ }; -@@ -381,6 +384,18 @@ nexthop_active_ipv4 (struct rib *rib, st - - return 1; +@@ -403,6 +406,18 @@ nexthop_active_ipv4 (struct rib *rib, st + } + return 0; } + else if (match->type == ZEBRA_ROUTE_OLSR) + { @@ -145,12 +145,12 @@ + } + return 0; + } - else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL)) + else { - for (newhop = match->nexthop; newhop; newhop = newhop->next) -@@ -483,6 +498,18 @@ nexthop_active_ipv6 (struct rib *rib, st - - return 1; + return 0; +@@ -507,6 +522,18 @@ nexthop_active_ipv6 (struct rib *rib, st + } + return 0; } + else if (match->type == ZEBRA_ROUTE_OLSR) + { @@ -164,9 +164,9 @@ + } + return 0; + } - else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL)) + else { - for (newhop = match->nexthop; newhop; newhop = newhop->next) + return 0; @@ -1236,6 +1263,8 @@ static const u_char meta_queue_map[ZEBRA [ZEBRA_ROUTE_ISIS] = 2, [ZEBRA_ROUTE_BGP] = 3,