]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: add synchronous IPC channels
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 1 Feb 2017 11:51:54 +0000 (09:51 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 1 Feb 2017 23:55:47 +0000 (21:55 -0200)
commit28e8294caa010c246bccbff308cb2118b7d52bdb
tree420b6245cc9d0d869b94d8b183d267e9b6241819
parentbe54d7449aebd657e378016a1228ec1b006936cc
ldpd: add synchronous IPC channels

By default all ldpd interprocess communication is asynchronous
(non-blocking socketpairs). Under some circumstances, however, we'll
need synchronous IPC as well. Examples:
* the lde child process requesting labels to zebra (through the parent
  process);
* apply an access-list on a given IP prefix (ACLs are only available in
  the parent process).

This patch only adds the necessary infrastructure to allow the child
processes to make synchronous requests to the parent process. Later
patches will make use of this new infrastructure.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde.c
ldpd/ldpd.c
ldpd/ldpd.h
ldpd/ldpe.c