summaryrefslogtreecommitdiffstats
path: root/ldpd/control.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib: standardize use of queue.hJorge Boncompte2017-08-171-1/+1
| | | | | | | | The simple queue implementation in OpenBSD and FreeBSD are called diferently, standardize in the use of the FreeBSD version and map the missing names only if we compile on OpenBSD. Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
* ldpd: simplify initialization of the child processesRenato Westphal2017-04-261-2/+2
| | | | | | | | | | | | | | | | | | | | In order to have separate ASLR/cookies per process, ldpd calls exec() in the child processes after fork() (this is also known as the fork+exec model). This is an important security feature but it makes the initialization of the child processes a bit more complicated as they're not a copy of the parent anymore, so all parameters given via command line are lost. To solve this problem, we were creating an argv array by hand with all necessary parameters and providing it to the exec() syscall. This works but it's a very ugly solution. This patch introduces a different approach to solve the problem: send an IMSG_INIT message to the child processes with all parameters they need in order to initialize properly. This makes adding additional initialization parameters much more convenient and less error prone. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: adapt the code for QuaggaRenato Westphal2016-09-231-2/+1
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* ldpd: copy original sources from OpenBSD (14/09/2016)Renato Westphal2016-09-231-0/+38
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>