summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
2004-07-29Initalize local varible in rde_update_get_prefix or we may end up with funnyClaudio Jeker
prefixes.
2004-07-28Prefer the path with the lowest multi-exit discriminator (MED) not the biggest.Claudio Jeker
2004-07-28allow "set metric" as synonym for "set med", from discussion with & ok claudioHenning Brauer
2004-07-28The default localpreference is 100 and not 0. Found and ok henning@Claudio Jeker
2004-07-28The hole dance to close a mrt file after fd passing in the parent is notClaudio Jeker
needed as the fd is closed while beeing passed. looks good henning@
2004-07-28allow prefix lists inside prefix listsHenning Brauer
2004-07-28allow AS lists inside AS listsHenning Brauer
2004-07-28prevent the filter elements from beeing given more than onceHenning Brauer
2004-07-28add list expansion for AS in filter rulesHenning Brauer
actually, it's list expansion on steroids, this works: deny from any { source-AS { 3320 852 } AS { 4589 174 } }
2004-07-28rework the filter_match production and everything below - fixesHenning Brauer
a couple of bugs
2004-07-27add support for {} expansion for prefix in the filter rules, claudio okHenning Brauer
2004-07-27do not define the prefix, prefixlen and community structs used forHenning Brauer
the filters from within struct filter_match but explicit; no functional change
2004-07-27suport macro expansion for peer spec in filter rulesHenning Brauer
things like deny from { $peer1 $peer2 } prefix 192.168.0.0/16 are now possible.
2004-07-13slightly reword myself;Jason McIntyre
2004-07-13tweaks; ok henning@Jason McIntyre
2004-07-13lots of cleanup and revising:Jared Yanovich
- typo fixes, rewording, punctuation - better use of and more format macros - section reorganization in some places - list directives with their arguments - add some cross-refs ok jmc, henning, otto
2004-07-13fix some typosJared Yanovich
ok henning otto
2004-07-11Fix a cross reference to bgpd in the FILES sectionJean-Francois Brousseau
ok jmc@, should make brad stop whining
2004-07-10Fix reverse logic bug in the prefix filter.Claudio Jeker
2004-07-09various tweaks from the Frankfurt->Hamburg flightHenning Brauer
2004-07-09let log_debug only log at all when we're in debug mode, from Montreal AirportHenning Brauer
2004-07-07Stupid typo that may cause a lot of pain. Found by Patrick Latifi. Thanks.Claudio Jeker
2004-07-07Bad interpretation of the oh so well documented mrt spec. Found byClaudio Jeker
Stefan Wahl.
2004-07-05The rde no longer needs to check if the nexthop is the loopback address.Claudio Jeker
This is now down in the parent. OK henning@
2004-07-05new blackhole/reject nexthopsHenning Brauer
2004-07-05implement "set nexthop blackhole" and "set nexthop reject"Henning Brauer
blackhole/reject routes will be entered to the kernel for matching ones. this is intended to be used with the Cymru Bogon Route Server Project (http://www.cymru.com/BGP/bogon-rs.html) and similar services, claudio ok
2004-07-05fix a few KNF falloutsHenning Brauer
2004-07-042 more file descriptors for each RDE and SE inherited from the parentHenning Brauer
we should close
2004-07-04when getting rid of the listen_addr TAILQ after forking actually closeHenning Brauer
the file descriptors in RDE and parent process, not needed or used there
2004-07-03Switch mrt dumping to fd passing. This gives some speed up when extensiveClaudio Jeker
dumping is done. Acctually mrt dumps were broken because of the fd passing. The nice side effect is a much cleaner code, especially in the parent process. OK henning@
2004-06-29little extra paranoia, ignore attempts to enter routes with a nexthopHenning Brauer
within 127/8. inspired by a very bad example for bogon filters at the cymru site, claudio ok
2004-06-25provide mask2prefixlen6() and prefixlen2mask6()Henning Brauer
2004-06-25after writing and deleting the kroute6 tree related functions for at least 5Henning Brauer
times I am getting this in now sow I don't do it a 7th time...
2004-06-24First step at multiprotocol support, only partially done.Claudio Jeker
OK henning@
2004-06-24Make community set strict aligenment save, remove unneeded ENSUREsClaudio Jeker
OK henning@ djm@
2004-06-23kill that stupid AS path loop whining, that is normalHenning Brauer
2004-06-23Support rfc 3765 which adds a new well known community NOPEER. OK henning@Claudio Jeker
2004-06-22Cleanup. jajaja henning@Claudio Jeker
2004-06-22Make the RDE IPv6 ready missing is the message handling. The internalClaudio Jeker
prefix tree changed form a hash table to a per AF RB tree. OK henning@ some ideas are from Brent Graveland.
2004-06-22Precedence fix; ok henning@Alexander Guy
2004-06-22missing bzero in a function for this strange other address familyHenning Brauer
2004-06-22introduce kroute6, which will be used to build a seperate v6 tableHenning Brauer
(smashing them into the v4 table would raise the memory requirements far too much), and make kroute_nexthop (where we are not under such memory pressure, you don't have a hundred thousand nexthops) v4/v6. change existing callers to use the v4 part, claudio ok
2004-06-22Templates with unknown AS where always configured as ebgp peers even ifClaudio Jeker
they were ibgp ones. OK henning@
2004-06-22so we call realloc() on our pollfd array and the peer_l one when they shrunkHenning Brauer
to save memory... yet, that realloc call can fail with ENOMEM ;) don't shrink when (needed + reserve < allocated), but (needed + 2 * reserve < allocated) the longer term goal is of course to not fail at all when a shrink-realloc fails... but that's for later
2004-06-20skip over multipath routesHenning Brauer
maybe one day we come up with a good reason for bgpd to use multipath routes, but for now it doesn't make any sense - bgpd inserts the "best" path fr a prefix, there's no point in inserting more than one. one is always the "best" one by bgp metrics. with claudio
2004-06-20at least somewhat consistently name the TAILQ_ENTRYs... this confused meHenning Brauer
more than once
2004-06-20allow for receival of up to 16 fds at once; after discussion with theoHenning Brauer
2004-06-20argh, don't want to shutdown the socket in the parent after sending,Henning Brauer
just plain close
2004-06-20implement file descriptor passing in the imsg/msgbuf framework, and useHenning Brauer
it to let the main process to prepare new listening sockets (socket() and bind()) on behalf of the session engine, which of course cannot bind() to ports < 1024 any more once it dropped privileges. with some help from theo, claudio ok
2004-06-09move to a dynamically allocated struct pollfd array.Henning Brauer
we used a ststic one with OPEN_MAX entries, which is a rather arbitary limit as OPEN_MAX is _not_ the max # of open fds we can have, but just a default for that setting. in the same move we have to allocate the peer_l array, basically there for pfd-index to peer pointers to prevent peer list scans all time, dynamiccaly to. we overallocate a little and use that reserve until we have to realloc again later to prevent reallocs for every single control connection or a single flapping peer. help & ok claudio