Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-12-25 | nothing uses the special return value kroute_msg used to set for EEXIST any | Henning Brauer | |
more, so zap the special treatment for EEXIST | |||
2003-12-25 | bring us closer to a complete nexthop verification that does NOT need | Henning Brauer | |
periodic scans: -keep a tree of nexthops with valid/invalid flags -provide kroute_match, which takes an IP address and gives the kernel route for that -find the kernel route for a given nexthop with that -keep a marker on the kernel route that a nexthop depends on it -on removal of the kernel route, re-evaluate the affected nexthops for validity. ok claudio@ | |||
2003-12-25 | detect connected routes and flag them as such | Henning Brauer | |
2003-12-25 | bootparams is right name | Theo de Raadt | |
2003-12-25 | must not remove macros vis cmdline after parsinf is done, we will need them | Henning Brauer | |
again on reload | |||
2003-12-25 | don't leak in yyerror() | Henning Brauer | |
2003-12-25 | o can't TAILQ_FOREACH when we TAILQ_REMOVE in the loop | Henning Brauer | |
o free(sym) | |||
2003-12-25 | free where it was allocated; much easier to verify | Henning Brauer | |
2003-12-25 | don't leak memory THAT obvious on reconfigure | Henning Brauer | |
2003-12-25 | track routing table changes that are _not_ caused by bgpd itself | Henning Brauer | |
ok claudio@ | |||
2003-12-25 | factor out prefixlen_classful() and mask2prefixlen() | Henning Brauer | |
2003-12-25 | implement "passive": do not attempt to open a tcp connection to the | Henning Brauer | |
neighbor system | |||
2003-12-25 | make the listening socket nonblocking as well. | Henning Brauer | |
there's a small probability that poll() announces us a new connection on the listening socket that vanishes before we can call accept(), and thus accept() would block. | |||
2003-12-25 | small gotcha in the FSM: | Henning Brauer | |
if we're in state ACTIVE and get an TIMER_CONNRETRY event, we need to change the state to CONNECT _before_ we call session_connect() to attempt a connect, as session_connect can generate events that caus further state changes. as far as i saw that it only causes a bit confusion for sessions dangling between CONNECT and ACTIVE all the time without causing real trouble, but bugs are bugs, right. | |||
2003-12-25 | we need nonblocking connect | Henning Brauer | |
2003-12-25 | Fix multi-line string | Alexander Yurchenko | |
ok otto@ | |||
2003-12-25 | kill an inappropriate XXX | Henning Brauer | |
2003-12-25 | remove a useless check & comment | Henning Brauer | |
2003-12-25 | (more or less) handle ESRCH for RTM_ADD | Henning Brauer | |
2003-12-25 | kill IMSG_KROUTE_ADD as well. just send KROUTE_CHANGE requests. | Henning Brauer | |
2003-12-25 | it actually makes more sense to call the merged function kroute_change | Henning Brauer | |
2003-12-25 | kroute_change is obsolete, long live kroute_add | Henning Brauer | |
2003-12-25 | check with our local view wether there is already an entry for the to be | Henning Brauer | |
added prefix in the kernel routing table. if yes and inserted by us change action from ADD to CHANGE, if not added by us do not add or change that prefix. | |||
2003-12-25 | oups, remove debugging cruft | Henning Brauer | |
2003-12-25 | skip over routing table entires with flag LLINFO (that's arp cache) | Henning Brauer | |
2003-12-25 | dump a copy of the kernel routing table into our own view on startup | Henning Brauer | |
2003-12-24 | syscalls return -1 on err so test for == -1 instead of the < 0 found in very | Henning Brauer | |
few places, requested by theo | |||
2003-12-24 | following up on a discussion with theo, read(2) as much as possible at once | Henning Brauer | |
and process the bgp messages after each other out of that big buffer. gives a nice speedup, easier code and earlier connection close detection. | |||
2003-12-24 | EAGAIN can't happen here anymore | Henning Brauer | |
2003-12-24 | no O_NONBLOCK for routing and tcp sockets, theo | Henning Brauer | |
2003-12-24 | connect bgpd to the build, ok deraadt@ | Henning Brauer | |
at this point in development, bgpd establishes connections to neighbors fine and does all the session handling as desired, processes the announcements it gets from its neighbors, runs the decision process and enters the routes to the kernel routing table. they are also updated as needed and cleaned up on exit. bgpd does not yet have the ability to announce anything, or send outgoing UPDATE messages in general, nor does it have a filter language yet. | |||
2003-12-24 | Fix bound checks for gecos field, taking into account it may contain | Otto Moerbeek | |
multiple '&'s. Resolves PR 3616. ok deraadt@ | |||
2003-12-24 | now that the main process can cleanup without RDE's help, we do not need the | Henning Brauer | |
somewhat fragile IMSG_SHUTDOWN_* stuff any more. speeds shutdown up enourmously. ok claudio@ | |||
2003-12-24 | now that we keep track of the routes we added to the kernel we can remove | Henning Brauer | |
them easily on shutdown without the RDE's help | |||
2003-12-24 | keep track of the routes we inserted to the kernel | Henning Brauer | |
do only ever delete those, and no others | |||
2003-12-24 | slightly more helpfull error msgs | Henning Brauer | |
2003-12-24 | add log_kroute() | Henning Brauer | |
2003-12-24 | local-addr, not local-address. | Henning Brauer | |
it's better when documentation and code agree on the keyword... | |||
2003-12-24 | add option to not touch the kernel routing table | Henning Brauer | |
2003-12-24 | handle write() returning 0 correctly, adjust the msgbuf API appropriately, | Henning Brauer | |
and make all callers cope. | |||
2003-12-24 | typos in comments, from jared | Henning Brauer | |
2003-12-24 | typos from jared | Henning Brauer | |
apparently these were already fixed in the diff jmc@ sent me and I somehow screwed up when getting it in - sorry. | |||
2003-12-24 | Handle mount entries without options. | Marc Espie | |
Found and tested by our ubiquitous afs user, Bob Beck. | |||
2003-12-23 | spacing | Theo de Raadt | |
2003-12-23 | kill a chunk of debug code that is not usefull any more | Henning Brauer | |
ok claudio@ | |||
2003-12-23 | In case of exit the RDE need to tell the parent to remove all still active | Claudio Jeker | |
prefixes from the kernel routing table. This is done with a simple table walk. OK henning@ | |||
2003-12-23 | play nice on exit (when he listening coket is closed) | Henning Brauer | |
2003-12-23 | send shutdown requests to the child processes and wait for a ackmessage from | Henning Brauer | |
them when shutting down. the rde needs the main process to clean up the routing table on exit so the parent process needs to be in service until the RDE is done. ok claudio@ | |||
2003-12-23 | use RTF_PROTO1 for now | Henning Brauer | |
2003-12-23 | .Xr the more or less shiny new bgpd.conf manpage | Henning Brauer | |