From 04bc735c890d07efa55bc491d248f30f6cad438d Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Fri, 5 Aug 2011 15:32:23 +0000 Subject: [PATCH] [packages] olsrd: Remove 'destination == gateway' routes workaround - should be fixed with new Quagga patch SVN-Revision: 27914 --- .../910-quagga_workaround_remove.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 net/olsrd/patches/910-quagga_workaround_remove.patch diff --git a/net/olsrd/patches/910-quagga_workaround_remove.patch b/net/olsrd/patches/910-quagga_workaround_remove.patch new file mode 100644 index 0000000000..f519f64f5d --- /dev/null +++ b/net/olsrd/patches/910-quagga_workaround_remove.patch @@ -0,0 +1,29 @@ +--- a/lib/quagga/src/quagga.c ++++ b/lib/quagga/src/quagga.c +@@ -2,7 +2,7 @@ + * OLSRd Quagga plugin + * + * Copyright (C) 2006-2008 Immo 'FaUl' Wehrenberg +- * Copyright (C) 2007-2010 Vasilis Tsiligiannis ++ * Copyright (C) 2007-2011 Vasilis Tsiligiannis + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as +@@ -78,8 +78,6 @@ zebra_addroute(const struct rt_entry *r) + (olsr_cnf->ip_version == AF_INET6 && + !memcmp(r->rt_best->rtp_nexthop.gateway.v6.s6_addr, r->rt_dst.prefix.v6.s6_addr, sizeof r->rt_best->rtp_nexthop.gateway.v6.s6_addr) && + route.prefixlen == 128)) { +- return 0; /* Quagga BUG workaround: don't add routes with destination = gateway +- see http://lists.olsr.org/pipermail/olsr-users/2006-June/001726.html */ + route.ifindex_num++; + route.ifindex = olsr_malloc(sizeof *route.ifindex, "QUAGGA: New zebra route ifindex"); + *route.ifindex = r->rt_best->rtp_nexthop.iif_index; +@@ -129,8 +127,6 @@ zebra_delroute(const struct rt_entry *r) + (olsr_cnf->ip_version == AF_INET6 && + !memcmp(r->rt_nexthop.gateway.v6.s6_addr, r->rt_dst.prefix.v6.s6_addr, sizeof r->rt_nexthop.gateway.v6.s6_addr) && + route.prefixlen == 128)) { +- return 0; /* Quagga BUG workaround: don't delete routes with destination = gateway +- see http://lists.olsr.org/pipermail/olsr-users/2006-June/001726.html */ + route.ifindex_num++; + route.ifindex = olsr_malloc(sizeof *route.ifindex, "QUAGGA: New zebra route ifindex"); + *route.ifindex = r->rt_nexthop.iif_index; -- 2.30.2