summaryrefslogtreecommitdiff
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-25Remove duplicate ident strings.Miod Vallat
2003-12-25Disable vx* for now.Miod Vallat
2003-12-25Floating-point status register exception bits are supposed to be maintainedMiod Vallat
by software, so be sure to set them both the precise _and imprecise_ floating point exception handlers, whatever the state of the HANDLER define is (which is anyway, soon to be hitting the dust in a cvs tree near you...) This allows userland software to really trust fpgetsticky() results.
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-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
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-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Murphy's law applied to BSD:Miod Vallat
Every non-KNF file in the source tree contains at least one severe bug. KNF and a timid start at cleaning, but not very far, so there is no functional change at the moment. This code is still pathetic for now, but it sorta works and the price was right.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24EAGAIN can't happen here anymoreHenning Brauer
2003-12-24no O_NONBLOCK for routing and tcp sockets, theoHenning Brauer
2003-12-24+bgpd.confHenning 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-24Update protocol number and multicast group to match reality.Ryan Thomas McBride
Pointed out by Jorge Severino (jorge at netsecure dot cl)
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-24In the never-ending story of *setjmp bugs, fix a typo preventingMiod Vallat
sigsetjmp(foo, !0) to work. Sigh.
2003-12-24sync & pre-syncTheo de Raadt
2003-12-24Since we have real bus error faults, and handle them as such, always treatMiod Vallat
uvm_fault() returning EACCES as a segmentation fault rather than a bus error, whatever address the fault is at. As a result, this correctly delivers SIGSEGV, rather than SIGBUS, when attempting to write to a page with only PROT_READ permissions.
2003-12-24syncTodd T. Fries
2003-12-24additional camera device; ok deraadt@Todd T. Fries
2003-12-24add sample bgpd.conf, not yet connectedHenning Brauer
requested by theo
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-24Make error message more informative by showing bad value that causedKenneth R Westerback
the error to be emitted. ok miod@.
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.