summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/rde.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the struct imsgev structs static and with that ripd -fno-common clean.claudio2021-01-191-3/+3
|
* Remove the PROC_* enums and ripd_process, they are no longer needed.claudio2021-01-191-3/+2
| | | | | Instead assign the process name directly to log_procname which was the last user of ripd_process.
* Pledge ripe and rde.remi2018-11-041-1/+4
| | | | | | | | | | Use unveil to remove file system access for the parent proc. Also remove control_cleanup as discussed on tech@. It allows to fully remove fs access (ripd does not support reload). It's not an issue for ripd and ripctrl if an unused socket file is lying around. reads OK for claudio@ and mestre@
* Simplify shutdown process.renato2016-09-031-6/+9
| | | | | | | | | | | | | On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
* work on making log.c similar in all daemons:benno2016-09-021-1/+2
| | | | | | | move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
* EAGAIN handling for imsg_read. OK henning@ benno@claudio2015-12-051-5/+5
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+4
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Close connections when msgbuf_write() returns 0.krw2014-07-121-3/+7
| | | | ok claudio@
* handle msgbuf_write() returning EAGAINbenno2013-11-191-3/+3
| | | | "looks right" deraadt and sthen.
* Change <sys/types.h> to <sys/param.h> instead of assuming that someguenther2010-12-311-2/+2
| | | | | | system header pulls the latter in ok millert@
* Another routing daemon that gets IMSG_CTL_LOG_VERBOSE to allow toggeling ofclaudio2009-11-021-2/+7
| | | | log_debug(). ok michele, henning, sthen
* Make kroute code routing priority aware.michele2009-09-181-17/+1
| | | | ok claudio@
* make ripctl/ripd imsg-in-a-lib ready too.eric2009-06-061-33/+40
| | | | ok pyr@
* Remove redundant imsg_event_add calls; ok claudio@jacekm2009-05-311-3/+1
|
* Better EV_READ and EV_WRITE handling in the libevent callbacks. Again mostlyclaudio2009-05-311-15/+7
| | | | the same ospfd diff applied with some fuzz.
* The metric is a 8bit value ranging from 1 to INFINITY (defined as a whoppingclaudio2007-10-241-2/+2
| | | | 16). So use u_int8_t everywhere.
* Sync a bit more with ospfd. Do not fatal if one of the pipes is closed,claudio2007-10-241-12/+22
| | | | | | instead do a "nice" shutdown. Ignore SIGHUP in the childs even though we have no reload support (yet). Remove some redundant code and clean up some types.
* spacingderaadt2007-10-181-6/+7
|
* Improve the handling of "counting to infinity" mechanism and add an heuristicmichele2007-04-091-11/+27
| | | | | | higly recommended in the rfc. tested by me and OK claudio@
* Some code cleanups. Added one lint command, removed one unused function andmichele2007-03-311-8/+1
| | | | some other cosmetics.
* Ingore SIGPIPE in the parent and rde as well. This is needed to correctlyclaudio2007-01-241-1/+2
| | | | report crashes. Discussed with norby@
* New redistribute code adapted from ospfd. It is now possible to do the sameclaudio2007-01-081-3/+10
| | | | | redistribute setups as in ospfd (rtlables, per prefix, negation). Tested, input and OK michele@
* spelling and typo fixesdavid2006-10-241-2/+2
|
* Welcome ripdnorby2006-10-181-0/+455
started by Michele Marchetto some time ago by using the imsg/three process framework of ospfd. He implemented most of the daemon with a little help and guidance from Claudio and I. Currently the daemon is more or less complete, with the exception of key lifetime and rollover. Not yet connected to the builds. OK claudio@