summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2006-01-28simplify statics, remove stupid goto, plug a leak. ok moritzTed Unangst
2006-01-26Separate route table calculations from the SPF calculation.Esben Norby
ok claudio@
2006-01-26fix some format strings and add a missingMoritz Jodeit
argument to a log_err() call. ok ho@
2006-01-25Fix an off-by-one in pppd(8)'s option handling. ok tedu@Moritz Jodeit
2006-01-25Remove gratuitous fetch_state() calls in state_change().Marco Pfatschbacher
It could race with a second incoming routing message, which would not trigger any action, because of the already updated status cache. Found by markus@. OK markus@ mcbride@
2006-01-24Correct debug textEsben Norby
2006-01-24protect against weird situations where dependencies don't matchMarc Espie
(admittedly, we should recompute them, but that's already better than nothing).
2006-01-24Fix bad indent.Esben Norby
2006-01-24Split SPF calc and AS Ext calc.Esben Norby
Initial diff by claudio@ reworked by me. test and ok claudio@
2006-01-24add -r to synopsis, and tweak its description a little;Jason McIntyre
2006-01-24introduce "bgpctl show summary terse", shows summary in an easy to parseHenning Brauer
format, intended for monitoring puposes. claudio ok
2006-01-24bgpd does not and will never support route flap damping as defined in theClaudio Jeker
mentioned RFC. Even RIPE (RIPE-229) realized that route flap damping should be considered evil.
2006-01-24Last bits for softreconfig in support. Now bgpd will automaticaly rei-filterClaudio Jeker
the RIB after a reload so you no longer need to clear sessions because you modified filters. Looks good henning@.
2006-01-24Functions in the poll() loop should only be moved around if there are noClaudio Jeker
side-effects. Revert last changes and make bgpctl reload work again.
2006-01-24Check if filter changed on a per peer basis. This should speed up theClaudio Jeker
table run done later as many filter evaluations can be skipped. From the softreconfig in tree. Looks good henning@
2006-01-24Finally start using the Adj-RIB-In. The most complex part is the modificationClaudio Jeker
of path_update(). There are about 10 different ways how to update a path and some of them are tricky. Looks good henning@
2006-01-24It is possible that a prefix is part of two RIBs in that case prefix_remove()Claudio Jeker
needs to be extra careful and only remove the prefix from the specified RIB. Looks good henning@
2006-01-24Update comment to match reality.Claudio Jeker
2006-01-24document -rHenning Brauer
2006-01-24missing space in error message, and make it slightly betterer while thereHenning Brauer
2006-01-24KNFHenning Brauer
2006-01-24zap now unused varHenning Brauer
2006-01-24introduce a second control socket, which is restricted to certain messages,Henning Brauer
nameley the show ones. needed for looking glass style applications, monitoring etc. claudio ok
2006-01-24make bgpctl deal with IMSG_CTL_RESULT no matter what request was sentHenning Brauer
claudio ok
2006-01-23Kill stupid comment. "not reached" after a continue is superfluous.Claudio Jeker
2006-01-23Open the routing socket before load_config() calls fetch_state().Marco Pfatschbacher
Otherwise we could loose routing messages that arrive in between. OK markus@, mcbride@
2006-01-23Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENTodd C. Miller
2006-01-20Proactively fix prefix counters. Currently only F_LOCAL prefixes exist butClaudio Jeker
as soon as F_ORIGINAL come the counters would no longer be correct and in the end max-prefix would no longer work. Add additinal counters for F_ORIGINAL prefixes and bump the correct conter depending on the prefix flags. OK henning@
2006-01-20Pass flags to prefix_move() so that a prefix that has both F_ORIGINAL andClaudio Jeker
F_LOCAL set can be moved correctly. This is more like a add as we have one prefix more afterwards. Looks good henning@
2006-01-20No need to calloc() others if others_len is 0. The 0 malloc() does not hurtClaudio Jeker
(we do not access it) but does not help either. Finally it reduces head scratching when debugging the RIB. OK henning@
2006-01-20Doh. > not < and attr_compare() starts to work correctly. OK henning@Claudio Jeker
2006-01-20Don't leak a aspath in network_add(). path_update() copies the aspath soClaudio Jeker
the passed aspath needs to be freed in network_add(). OK henning@
2006-01-20fix a cross-site scripting vulnerability in mod_imap;Robert Nagy
CVE-2005-3352 ok niallo@; henning@ no objections
2006-01-20Don't depend on implicit include of signal.hTodd C. Miller
2006-01-20Explicitly include limits.h if we are going to use its contents.Todd C. Miller
2006-01-19prompted by deraadt:Nikolay Sturm
manual performance mode -> low/high performance mode show cpuspeed in apm output ok beck, weingart man page bits ok jmc
2006-01-19Do not attempt to listen on interfaces with a wildcard address; ok henning@Darren Tucker
2006-01-19Check SA_LEN(sa) after sa is checked for NULL. Pointed out by solar atDarren Tucker
openwall.com, ok henning@
2006-01-17special-case packages that use old-libs: always update them, even if theMarc Espie
signature didn't change.
2006-01-17kill trailing whitespace;Jason McIntyre
2006-01-17Use the @openbsd.org email address for the copyright and add an AUTHORSMarc Balmer
section. ok jmc@
2006-01-14Small step in supporting the Adj-RIB-In additionaly to the Local-RIB.Claudio Jeker
First step is to define two flags F_LOCAL and F_ORIGINAL. These flags are used to distinguish prefix in the Local-RIB and those in the Adj- RIB-In. Adapt prefix API and add additional checks so that no Adj-RIB- In prefixes get mistakenly selected. Currently no F_ORIGINAL prefixes are created but this may change soon. Looks good Henning.
2006-01-13correction from tamas tevesz; ok ianJason McIntyre
2006-01-13Simplify evaluation process. Instead of checking the reachability of a prefixClaudio Jeker
at many different places do it once. This simplifies the logic and makes it easier to extend it for upcomming Adj-RIB-In addition. OK Henning.
2006-01-13nitMarc Espie
2006-01-12Rewrite the redistribute code. The previous implementation was stupid andClaudio Jeker
resulted in a major bottleneck if bgpd was used on the same box -- not clever to do linear searches over 175k entries :(. This now moves the redistribute code back into kroute duty and kills the linear list. Also default routes are now redistributed without the need for a kernel default route. OK norby@
2006-01-12Change inet_addr("127.0.0.1") into htonl(INADDR_LOOPBACK) and similar.Claudio Jeker
OK norby@
2006-01-12Copy AS path in rde_filter() on demand instead of doing it before callingClaudio Jeker
rde_filter(). Adapt path_update() to this change too. path_update() does a path_copy before linking the rde_aspath into the RIB. Looks good Henning.
2006-01-12be way more explicit in pointing people to packages-specs(7)Marc Espie
2006-01-11hotplug(4) and hotplugd(8) hereMartin Reindl