]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Fix condition allowas-in in rsclient code
authorMilan Kocian <milon@wq.cz>
Fri, 18 Oct 2013 07:59:38 +0000 (07:59 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 19 May 2014 21:51:19 +0000 (23:51 +0200)
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>
bgpd/bgp_route.c

index 29533c43e8f6764a78b0a71ae47602b727cd63b4..46c0c85f66ae12463af6ca2050d2af08bddbce8b 100644 (file)
@@ -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;