summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2018-07-10add ractl, the rad(8) control programFlorian Obser
2018-07-10pledge(2)friehm
Looks great! deraadt@ OK florian OK remi@
2018-07-10style (single-line ifs don't need braces)Reyk Floeter
2018-07-10Return the VM pid to the vmd parent. This pid field already existedReyk Floeter
in the result but wasn't filled in by the vmm process. No functional change.
2018-07-10Remove a debug messageReyk Floeter
2018-07-10vmd already had DEBUG/DPRINTF, there is no need for VMD_DEBUG/dprintfReyk Floeter
Replace all occurences of dprintf with DPRINTF (defined in proc.h).
2018-07-10"%%s: s" -> "%s: %s" in log_warn()Kenneth R Westerback
2018-07-10Import rad(8).Florian Obser
It's a Router Advertisement Daemon written using the standard 3 process privsep pattern and a parse.y based config file. Commit early to continue work in tree. OK jca "it's totally rad" phessler@ "usr.sbin never runs out of space" deraadt@
2018-07-10Tweak debug log messagesReyk Floeter
- Turn tracing messages into DPRINTF (only compiled with DEBUG). - Pass __func__ to vm_stop and vm_remove: this way we can track who called the function in the async context. It replaces the manual log_debug in front of each vm_stop/vm_remove. This debug logging trick can be removed in the future once we are more confident about it. OK ccardenas@ mlarkin@
2018-07-10rde_update_get_prefix() and friends should also verify the prefixlen.Claudio Jeker
This way the check can be removed from rde_update_dispatch() which is just a duplicate of the general failure case of rde_update_get_prefix(). OK benno@ phessler@
2018-07-10__func__ log statements and some whitespace knfSebastian Benoit
ok^H^HHmpf, whatever claudio@
2018-07-10Initialize the rtable in the requests send to bgpd to the currentSebastian Benoit
rtables process. With this you dont need to add "table N" to commands when talking to a bgpd not in rdomain 0. ok claudio@ phessler@
2018-07-10move the top level pledge, getrtable() works with pledge stdio.Sebastian Benoit
ok claudio@ phessler@
2018-07-10You can run multiple copies of bgpd in seperate rdomains.Sebastian Benoit
However, the processes will see each others route messages. Some structures are not initialized correctly for that, causing at least useless log messages. This is an attempt to use the default_tableid where its needed. A few hardcoded uses of rtable 0 remain. ok claudio@
2018-07-10the check "if (nc->rtableid)"Sebastian Benoit
is used as an indicator that we are dealing with network statements from within rdomain <n> { } blocks. That needs to check against the rdomain we are running in instead. ok claudio@
2018-07-10If intra area prefixes move from one router to another router, cloning routesfriehm
may become gateway routes and contrary. The kernel does not allow to change the flags RTF_GATEWAY / RTF_CLONING in RTM_CHANGE messages, but ospf6d tried this anyway. The result is a broken route. Instead of modifying such routes remove the old route and insert a new one. Thanks to Raimund Specht for reporting the problem and testing the fix. OK claudio@
2018-07-10Since we use multiple cloning routes (mpath) if more than one ip addressfriehm
exists in the same network, the routes are distinguished by their gateway address, which is the associated interface address. The ospfd has to track the gateway addresses so that kroute_matchgw() is able to find the correct routes. OK claudio@
2018-07-10Let kroute_matchgw() select the correct route before checking flags.friehm
OK claudio@
2018-07-10unify option parsing a bit moreMarc Espie
2018-07-10zap old comments that are unlikely to ever come backMarc Espie
2018-07-10zap really old stuffMarc Espie
2018-07-10remove remnants of very old code, to simplify unificationMarc Espie
2018-07-10dont let rtable number overflow,Sebastian Benoit
we only support up to RT_TABLEID_MAX rtables ok henning@, claudio@, phessler@
2018-07-10Print USB port status/changes in verbose++ mode.Martin Pieuchot
While here align the driver name with the new output.
2018-07-10Switch also the aspath in rde_update_dispatch() to one on the stack.Claudio Jeker
Simplifies the code a bit. OK denis@ phessler@
2018-07-10vmd(8): route ELCR handler to the right functionMike Larkin
2018-07-10compare the right things here: we want to know if the flag has changed.Sebastian Benoit
Found with claudios help and patience. ok phessler@ claudio@
2018-07-10Actually clear the right thing in rib_free()Sebastian Benoit
Found by and with claudio. ok phessler@ claudio@
2018-07-10build pcidump on armv7Jonathan Gray
2018-07-10move the verbose checksum info back after the colon.David Gwynne
requested by bluhm@ as it broke some regress tests for no good reason.
2018-07-09vmd(8): deassert interrupt pins in the PIC at the right times. Helps fixMike Larkin
situations where vmd gets stuck at 100% cpu usage because the guest VM is constantly trying to ack interrupts that already occurred. tested by phessler on a VM that used to exhibit the issue. ok phessler
2018-07-09vmd(8): better debug message in a failure caseMike Larkin
2018-07-09Wrong function name in error messageClaudio Jeker
2018-07-09do cleanup after tags, as noticed by aja@Marc Espie
2018-07-09Nack LDC protocol versions that we don't support. Avoids a hang on SPARC T3Mark Kettenis
systems (and possible newer systems as well).
2018-07-09Move the max prefix checker into rde_update_update() instead of doing itClaudio Jeker
3 times outside. OK sthen@
2018-07-09Introduce a struct filterstate and pass this to rde_filter instead ofClaudio Jeker
passing the asp. This is no longer using asp_get() and should be therefor be a bit lighter. Will also allow to put more stuff into the state. OK denis@ sthen@
2018-07-09Set log_setverbose(1) early to see debug logs during parsing the configremi
but only when -v is used. ok jca@ claudio@
2018-07-09No need to mention which memory allocation entry point failed (malloc,Kenneth R Westerback
calloc or strdup), we just need to log that we ran out of memory in a particular function. Recommended by florian@ and deraadt@ ok benno@ henning@ tb@
2018-07-09explain what @define-tag mktexlsr supersedes mktexlsr-localMarc Espie
will do
2018-07-09Simplify ber_read()Jeremie Courreges-Anglas
After the removal of fd-based read/writes I could have trimmed the code further. - no socket-based reads so ber_read() doesn't need to loop until it gets the desired amount of data - return either the requested amount of data or -1/ECANCELED, the caller shouldn't have to handle partial reads itself - inline ber_readbuf() into ber_read() ok rob@ claudio@ tb@
2018-04-27Import lpd, a re-implementation of the lpr daemon following the latestEric Faurot
OpenBSD coding practices (fork+exec/privsep/pledge/...). It is only intended to replace the lpd(8) daemon for the moment, not the lpr(1), lprm(1), lpq(1) and lpc(8) commands. This is a work in progress. The server part should be fairly functionnal, but the printer part is not complete: remote printers should work, for local printers it depends on the setup. Anyway, at this point it's better in the tree than rotting on my disk. ok deraadt@
2018-07-09vmd(8): stash device IRQ in the device structMike Larkin
ok kettenis
2018-07-08add missing .Fl macroIngo Schwarze
2018-07-08Be consistent in warn() and log_warn() usage whenKenneth R Westerback
running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@
2018-07-08document what happens when the @define-tag defining package gets removedMarc Espie
2018-07-08clarify account key (pair) vs certificate (domain) key pair, andSebastian Benoit
that the domain block really describes a certificate to manage. from Ross L Richardson <openbsd at rlr dot id dot au>, thanks with feedback and ok jmc and sthen
2018-07-08when rejecting a recipient due to any kind of error related to .forward andGilles Chehade
aliases/virtual expansion, provide a more explicit status in the session. ok millert@
2018-07-08remove 'event=' from logs it doesn't carry any informationGilles Chehade
suggested by eric@, ok millert@
2018-07-07make it more obvious that there was a problem with a .forward file:Gilles Chehade
424 4.2.4 Mailing list expansion problem 524 5.2.4 Mailing list expansion problem postmaster still has to look to logs to understand the real issue but at least it doesn't go unnoticed anymore. ok eric@