summaryrefslogtreecommitdiffstats
path: root/ldpd/ldpd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-02-01 12:51:54 +0100
committerRenato Westphal <renato@opensourcerouting.org>2017-02-02 00:55:47 +0100
commit28e8294caa010c246bccbff308cb2118b7d52bdb (patch)
tree420b6245cc9d0d869b94d8b183d267e9b6241819 /ldpd/ldpd.h
parentldpd: fix a bug in the explicit-null command (diff)
downloadfrr-28e8294caa010c246bccbff308cb2118b7d52bdb.tar.xz
frr-28e8294caa010c246bccbff308cb2118b7d52bdb.zip
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>
Diffstat (limited to 'ldpd/ldpd.h')
-rw-r--r--ldpd/ldpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldpd/ldpd.h b/ldpd/ldpd.h
index 3f6d7ac56..2c9706cf4 100644
--- a/ldpd/ldpd.h
+++ b/ldpd/ldpd.h
@@ -33,6 +33,9 @@
#define CONF_FILE "/etc/ldpd.conf"
#define LDPD_USER "_ldpd"
+#define LDPD_FD_ASYNC 3
+#define LDPD_FD_SYNC 4
+
#define LDPD_OPT_VERBOSE 0x00000001
#define LDPD_OPT_VERBOSE2 0x00000002
#define LDPD_OPT_NOACTION 0x00000004