summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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
2006-01-10The attributes cache broke the set community filterset because community_set()Claudio Jeker
modified the attribute data directly and corrupted the cache by doing it. It is no longer allowed to modify attributes via attr_optget() -> change attr->data. Instead remove the old attribute from the aspath and then add a new modifed one again. Included in this change is the removal of a "feature" that allowed only one community per AS. If you had problems to add multiple communities via filters then this was the problem. Looks good Henning.
2006-01-10In attr_diff() compare the attributes flags too. They may be different andClaudio Jeker
especially they are accounted in the hash. While there change a 0 to NULL.
2006-01-09Ups. Inverse logic.Claudio Jeker
2006-01-09avoid anything that isn't a library in warning for SHARED_LIBS.Marc Espie
Turn warning into a fatal error.
2006-01-07expand the section on ssh tunnelling machanisms;Jason McIntyre
from michael knudsen
2006-01-07Add COMMUNITY_NO_PEER to the list of known wellknown communities else itClaudio Jeker
is not possible to use NO_PEER as community in the config.
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06tweak the descriptions of -r and -u: make the distinctionJason McIntyre
between them a little clearer; ok espie
2006-01-05Kill ENSURE(), remove ensure.h, say bye bye to fatal_ensure() andClaudio Jeker
one hip hip hooray from Henning.
2006-01-05Show attribute cache total reference count.Claudio Jeker
2006-01-05Cache optional BGP attributes (mostly communities) and use a simpleClaudio Jeker
pointer plus a ref counter to link the attributes to the path object. Saves +/- 10M on 11 full feeds. Looks good Henning
2006-01-05Make ospfd respect carp(4) interfaces and their weird behaviour. They willClaudio Jeker
not be used to connect to a OSPF cloud and forced to be passive. With this ospfd will only announce the carp interface route if the interface is master. So you can connect a LAN in a redundant way to your ospf backbone. OK norby@
2006-01-05Improve how ospfd copes with time changes.Esben Norby
ok claudio@
2006-01-04Import NetBSD's direct adb code on mac68k, switching to real keyboard and mouseMiod Vallat
drivers, and to wscons as the console; a few parts borrowed from OpenBSD/macppc as well. Currently only working with displays configured in 1bpp or 8bpp modes; this limitation will be worked on ASAP. Tested by claudio@ kettenis@ martin@ nick@ and I on various models. X11 changes coming soon.
2006-01-04Fix a mem leak of the unusual kind. In some cases a new aspath was addedClaudio Jeker
to the RIB without checking if there was a equal path already available. Modify path_update() so that we do not link a new aspath without calling path_lookup() before to check if the aspath is not already in the RIB. Found via bgpctl show rib mem. OK henning
2006-01-04Simplify shutdown function and sprinkle some rde_quit checks into functionsClaudio Jeker
that don't need to run if the RDE is quitting e.g. the decision process.
2006-01-04If the decision process is turned of but a prefix is still active decrease theClaudio Jeker
active prefix counter.
2006-01-04Use new BGP attribute counter.Claudio Jeker
2006-01-04Correctly count the number of allocated BGP attributes. Needs a own counter.Claudio Jeker
2006-01-04Document "show rib mem" with jmc@'s helpClaudio Jeker
2006-01-03Show RIB statistics via "bgpctl show rib mem".Claudio Jeker
2006-01-03Track some (memory) statistics in the RDE. Accessible via bgpctl.Claudio Jeker
2006-01-03Cope with new util.cClaudio Jeker
2006-01-03Move functions shared with bgpctl into new file util.c. Simplifies theClaudio Jeker
link between bgpctl and bgpd mostly because of rde_attr.c.
2006-01-03Don't use fatal() and friend in bgpctl. The log system does not work here.Claudio Jeker
2006-01-03include signal.h not sys/signal.h and remove a useless cast; OK deraadt@Todd C. Miller
2006-01-03Plug some mem leaks.Claudio Jeker
2006-01-03Kill WFLAG macro. Should have been included in the rde_attr_parse() merge.Claudio Jeker
Makes the code more obvious.
2006-01-03in EXAMPLES:Jason McIntyre
- regular grep will do - root not needed for fstat from ray lai;
2006-01-03Move the signal handler flags check between the poll() call and the pollClaudio Jeker
fd handling. Do not access poll fd in case of an error or timeout. With and OK dlg@
2006-01-03No need to check the poll fds in case of EINTR. OK dlg@Claudio Jeker
2006-01-03check getnameinfo() return for 0 and use errx() vs. err(); old ok markus@Kevin Steves
2006-01-02#include <signal.h>, not <sys/signal.h>Todd C. Miller
2005-12-31Make useradd -p slightly less dangerous by overwriting the encryptedTodd C. Miller
password in argv. This doesn't solve the problem; it just reduces the amount of time that encrypted password is available via ps. OK deraadt@ and krw@
2005-12-30Fix parse_prefix() for IPv4 addresses. Looks like fallout after IPv6 addition.Claudio Jeker
Now bgpctl show rib 129.128.5.191 works again.
2005-12-30There is no attr_mp_nexthop() function, remove the prototype.Claudio Jeker
2005-12-30Remove unused attr_optlen()Claudio Jeker
2005-12-30Use sys/hash.h instead of own built functions that work similar.Claudio Jeker
While there reorder some structs to help with alignment.
2005-12-30Merge rde_attr_error() into rde_attr_parse() it is no longer necessary toClaudio Jeker
have a separate error function. It is no porblem to call rde_update_err() directly.
2005-12-29More correct cleanup on exit. OK norby@Claudio Jeker