summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Kocian <milon@wq.cz>2013-10-18 07:59:38 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2014-05-19 23:51:19 +0200
commit000e157c852653288c5a1e6d0dee821c1765d315 (patch)
tree28a654105d50b5f55c9e865a223ba93366fe3839
parent5d804b439a4138c77f81de30c64f923e2b5c1340 (diff)
downloadquagga-000e157c852653288c5a1e6d0dee821c1765d315.tar.bz2
quagga-000e157c852653288c5a1e6d0dee821c1765d315.tar.xz
bgpd: Fix condition allowas-in in rsclient code
Currently when you set neighbour's 'allowas-in' option on route server side you get redistribution of the prefixes from this neighbour's table into all neighbour's tables which have the same AS number. I think that wanted behaviour is to allow import prefixes from neighbour's tables with the same AS num into neighbour which has 'allowas-in' option set. Signed-off-by: Milan Kocian <milon@wq.cz> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 29533c43..46c0c85f 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -1881,7 +1881,7 @@ bgp_update_rsclient (struct peer *rsclient, afi_t afi, safi_t safi,
break;
/* AS path loop check. */
- if (aspath_loop_check (attr->aspath, rsclient->as) > peer->allowas_in[afi][safi])
+ if (aspath_loop_check (attr->aspath, rsclient->as) > rsclient->allowas_in[afi][safi])
{
reason = "as-path contains our own AS;";
goto filtered;