summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2003-12-25make 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-25small 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-25we need nonblocking connectHenning Brauer
2003-12-25Fix multi-line stringAlexander Yurchenko
ok otto@
2003-12-25kill an inappropriate XXXHenning Brauer
2003-12-25remove a useless check & commentHenning Brauer
2003-12-25(more or less) handle ESRCH for RTM_ADDHenning Brauer
2003-12-25kill IMSG_KROUTE_ADD as well. just send KROUTE_CHANGE requests.Henning Brauer
2003-12-25it actually makes more sense to call the merged function kroute_changeHenning Brauer
2003-12-25kroute_change is obsolete, long live kroute_addHenning Brauer
2003-12-25check with our local view wether there is already an entry for the to beHenning 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-25oups, remove debugging cruftHenning Brauer
2003-12-25skip over routing table entires with flag LLINFO (that's arp cache)Henning Brauer
2003-12-25dump a copy of the kernel routing table into our own view on startupHenning Brauer
2003-12-24syscalls return -1 on err so test for == -1 instead of the < 0 found in veryHenning Brauer
few places, requested by theo
2003-12-24following up on a discussion with theo, read(2) as much as possible at onceHenning 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-24EAGAIN can't happen here anymoreHenning Brauer
2003-12-24no O_NONBLOCK for routing and tcp sockets, theoHenning Brauer
2003-12-24connect 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-24Fix bound checks for gecos field, taking into account it may containOtto Moerbeek
multiple '&'s. Resolves PR 3616. ok deraadt@
2003-12-24now that the main process can cleanup without RDE's help, we do not need theHenning Brauer
somewhat fragile IMSG_SHUTDOWN_* stuff any more. speeds shutdown up enourmously. ok claudio@
2003-12-24now that we keep track of the routes we added to the kernel we can removeHenning Brauer
them easily on shutdown without the RDE's help
2003-12-24keep track of the routes we inserted to the kernelHenning Brauer
do only ever delete those, and no others
2003-12-24slightly more helpfull error msgsHenning Brauer
2003-12-24add log_kroute()Henning Brauer
2003-12-24local-addr, not local-address.Henning Brauer
it's better when documentation and code agree on the keyword...
2003-12-24add option to not touch the kernel routing tableHenning Brauer
2003-12-24handle write() returning 0 correctly, adjust the msgbuf API appropriately,Henning Brauer
and make all callers cope.
2003-12-24typos in comments, from jaredHenning Brauer
2003-12-24typos from jaredHenning Brauer
apparently these were already fixed in the diff jmc@ sent me and I somehow screwed up when getting it in - sorry.
2003-12-24Handle mount entries without options.Marc Espie
Found and tested by our ubiquitous afs user, Bob Beck.
2003-12-23spacingTheo de Raadt
2003-12-23kill a chunk of debug code that is not usefull any moreHenning Brauer
ok claudio@
2003-12-23In case of exit the RDE need to tell the parent to remove all still activeClaudio Jeker
prefixes from the kernel routing table. This is done with a simple table walk. OK henning@
2003-12-23play nice on exit (when he listening coket is closed)Henning Brauer
2003-12-23send shutdown requests to the child processes and wait for a ackmessage fromHenning 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-23use RTF_PROTO1 for nowHenning Brauer
2003-12-23.Xr the more or less shiny new bgpd.conf manpageHenning Brauer
2003-12-23bloody attempt at the other manpage.Henning Brauer
this time with (non-bloody) help from jmc@
2003-12-23no RTF_MASKHenning Brauer
2003-12-23do send session_down imsgs to RDE even if we are quittingHenning Brauer
2003-12-23don't panic on EEXIST. that's normal for a full-table router to get a routeHenning Brauer
for its own connected network(s)
2003-12-23Send updates to the main process so they can be added to the kernelClaudio Jeker
routing table. OK henning@
2003-12-23bzero, set sin_len, and fix an error messageHenning Brauer
from debugging session with claudio
2003-12-23Remove unnecessary casts (char *).Mike Pechkin
millert@ ok.
2003-12-23better syntax for minimum accepted holdtimeHenning Brauer
2003-12-23jmc says -D before -dHenning Brauer
2003-12-23allow the listening address to be specified, default to INADDR_ANYHenning Brauer
should make jose@ happy
2003-12-22Fix unbounded recursion and an unsigned/signed mixup. Resolves PR 3610.Otto Moerbeek
ok deraadt@ millert@
2003-12-22delay setting up the signal handlers in the main process until after fork(),Henning Brauer
pointed out by theo