Re: [Bgpd-users] patch for multiple peers
Status: Alpha
Brought to you by:
stevenh
|
From: Steven H. <st...@xs...> - 2002-09-27 18:46:53
|
Hey Andrew, This is excellent! As you may have guessed I haven't been able to obtain multiple peers that send me updates. Can you tell me anything about CPU and memory usage with the two feeds coming in? I'll patch in the code and make a new release on sourceforge this Sunday. - Steven At 07:03 PM 9/27/2002 +0100, Andrew - Supernews wrote: >the following patch fixes some simple errors in LocalRib.pm, which >otherwise kill the daemon any time that route selection is performed >(only happens with multiple peers). > >With these, I'm now running iBGP to both my cores (Ciscos) without any >problems that I've found so far. > >-- >Andrew, Supernews >http://www.supernews.com > > > >*** BGP/LocalRib.pm 18 Jun 2002 13:46:55 -0000 1.2 >--- BGP/LocalRib.pm 25 Jul 2002 17:35:50 -0000 1.4 >*************** >*** 148,154 **** > } > > sub is_better_route { >! my ($prefix, $len, $adjRIBin, $bgprouter, $curpeer, $trypeer); > > my $attr1 = $adjRIBin->get_pathattribute ($prefix, $len, $curpeer); > my $attr2 = $adjRIBin->get_pathattribute ($prefix, $len, $trypeer); >--- 148,154 ---- > } > > sub is_better_route { >! my ($prefix, $len, $adjRIBin, $bgprouter, $curpeer, $trypeer) = @_; > > my $attr1 = $adjRIBin->get_pathattribute ($prefix, $len, $curpeer); > my $attr2 = $adjRIBin->get_pathattribute ($prefix, $len, $trypeer); >*************** >*** 200,206 **** > $med2 = $temp; > } > $bgprouter->log (256, 256, "MED $med1 vs MED $med2"); >! return 1 if ($$med1 > $med2); > > # Rule 8: Prefer closest IGP neighbor. > # We don't do IGP >--- 200,206 ---- > $med2 = $temp; > } > $bgprouter->log (256, 256, "MED $med1 vs MED $med2"); >! return 1 if ($med1 > $med2); > > # Rule 8: Prefer closest IGP neighbor. > # We don't do IGP > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Bgpd-users mailing list >Bgp...@li... >https://lists.sourceforge.net/lists/listinfo/bgpd-users |