summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-12-26let imsg_get and imsg_compose not fatal() but return errors upstream.Henning Brauer
make the callers cope.
2003-12-26when this project started and i added the fatal() function, I made it takeHenning Brauer
the error number as parameter instead of accessing errno, because in one place the error number was not in errno but fetched from a socket. now, of course it makes much more sense to just set errno to the error number just fecthed in this one place instead of having hundreds of fatal() calls all transfer the errno round and round and round... fix this, and also provide a fatalx, which does not care for errno and doesn't invoke strerror. oh, btw, in the place where we fetch the err # from the socket, we don't call fatal anymore anyway...
2003-12-26by making kroute_dispatch_msg() and kroute_nexthop_add() return int insteadHenning Brauer
of void they can now report errors upstream and do not need to panic any more. so do that and handle the errors in bgpd.c in the vein that we at least can clean up before exit. there are no direct fatal() call in kroute.c now any more, nor any in bgpd.c after forking.
2003-12-26report as many errors upstream as possible instead of fatal() so theyHenning Brauer
can be handled better
2003-12-26overhaul error handlingHenning Brauer
try to handle as much as possbile in a graceful way so taht we don't leave the kernel routing table full of our routes, for example.
2003-12-26need to clean errno before returning error in the custom caseHenning Brauer
2003-12-26handle kroute_init failures nicerHenning Brauer
2003-12-26provide a real log_errHenning Brauer
2003-12-26Allow storing of `arch' annotations inside packages.Marc Espie
Factor common method code in write, keep variations in stringize.
2003-12-26log_err -> log_peer_errHenning Brauer
log_errx -> log_peer_errx because that is what they really are, peer specific.
2003-12-26pkg_add reports size taken on each fs.Marc Espie
Reorg and clean Vstat a bit. okay naddy@
2003-12-26127/8 is special, and thus needs special protection.Henning Brauer
on startup, insert a fake route for it to our private view of the kernel routing table, and flag it as kernel and connected route. we never allow a bgp route to overwrite a kernel route. prodded by theo
2003-12-26o improve logging dramaticallyHenning Brauer
o handle more errors gracefullt instead of panic o don't leak mem on RB_INSERT failues (not a common case anyway, but...) o zap a few unneeded variables
2003-12-26improve log messageHenning Brauer
2003-12-26log nexthop status changesHenning Brauer
2003-12-26+ log_ntoa, a simple helper funtion that doesn't require a struct in_addr...Henning Brauer
2003-12-26remove he pathetic log_kroute()Henning Brauer
not used anywhere anyway
2003-12-26Do not run the ld.so regression test on static arches.Miod Vallat
2003-12-26Merge the attachment part and the real work part of the SCSI drivers inMiod Vallat
one file per driver.
2003-12-26- use 1/2 space for rijndael context in ipsecMarkus Friedl
- rijndael_set_key_enc_only() sets up context for encryption only - rijndael_set_key() always sets up full context - rijndaelKeySetupDec() gets back original protoype - uvm: use _enc_only() interface with hshoexer@, ok deraadt@
2003-12-26add libiberty.info to CLEANFILESBrad Smith
ok espie@
2003-12-26handle IMSG_NEXTHOP_DELETE as wellHenning Brauer
2003-12-26In the mrt state machine one state was forgotten. This caused the parentClaudio Jeker
process to quit it a fatal buf_close error message. Noticed and reported by jakob@ OK henning@
2003-12-26Put this again, but this time make sure the compiler really does not frob theMiod Vallat
stack frame before we get a chance to tinker with it.
2003-12-26kroute_nexthop_check -> kroute_nexthop_addHenning Brauer
kroute_validate_nexthop -> kroute_nexthop_insert
2003-12-26kroute_validate_nexthop is a private functionHenning Brauer
2003-12-26finally marry rde and kroute parts of the nexthop verification:Henning Brauer
handle IMSG_NEXTHOP_ADD and send IMSG_NEXTHOP_UPDATE when appropriate
2003-12-26o in struct nexthop_node, we don't need the full kroute_nexthop struct,Henning Brauer
| the nexthop address itself is enough o RB_INIT the nexthop table o don't forget to set the key field before RB_INSERT...
2003-12-26Revert - this was a bit premature.Miod Vallat
2003-12-25Turn the nexthop verification on. At least in the RDE.Claudio Jeker
ok henning@
2003-12-25A much simpler and more readable start() routine...Miod Vallat
2003-12-25styleHenning Brauer
2003-12-25RDE part of the nexthop verification puzzle.Claudio Jeker
The RDE just tracks the nexthop IPs and reacts on nexthop messages from the parent. ok henning@
2003-12-25nothing uses the special return value kroute_msg used to set for EEXIST anyHenning Brauer
more, so zap the special treatment for EEXIST
2003-12-25bring us closer to a complete nexthop verification that does NOT needHenning 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-25syncTheo de Raadt
2003-12-25Enable vx(4) again - while it still awaits more tests, it can attach withoutMiod Vallat
affecting a multiuser boot.
2003-12-25Provide common D16 vmespace block access functions, instead of vs and vx eachMiod Vallat
rolling their own. Use them more cleverly in vx, in order to get the driver to at least attach and frob chips. Not tested besides multiuser boot (hence ttyflags -a), and checking cu(1) connects. More testing to come once I remember where I have hidden the 332XT transition module...
2003-12-25detect connected routes and flag them as suchHenning Brauer
2003-12-25bootparams is right nameTheo de Raadt
2003-12-25Test a large negative malloc value as well.Miod Vallat
2003-12-25Use an unsigned comparison against minbrk.Miod Vallat
ok deraadt@
2003-12-25must not remove macros vis cmdline after parsinf is done, we will need themHenning Brauer
again on reload
2003-12-25Boy, this has grown. 600MB in 2.7 to almost 3GB today.Marc Espie
2003-12-25Manual merge of ChangeLog entries.Marc Espie
A bit icky, but binutils includes contain both libiberty stuff and its own stuff...
2003-12-25bye-bye. Merge should basically be finishedMarc Espie
2003-12-25typo in demanglerMarc Espie
2003-12-25restore #ifdef __cplusplus around demangler prototypes.Marc Espie
Restore comment that was lost.
2003-12-25Compile the right files, bump minor number.Marc Espie
2003-12-25revert to versions in gcc 3.3.2, those are more recentMarc Espie