summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/ribconfig.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-16 19:22:50 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-17 10:53:43 +0100
commit645cf66af11ac36b81648f2e1eb3b1f5aeb7b544 (patch)
treec5e4af02e99a098dd123509cc67bfeb6efb6d69c /src/ipcpd/normal/ribconfig.h
parent8cb5218438feaf455a297915d037675e3c3eea21 (diff)
downloadouroboros-645cf66af11ac36b81648f2e1eb3b1f5aeb7b544.tar.gz
ouroboros-645cf66af11ac36b81648f2e1eb3b1f5aeb7b544.zip
ipcpd: Move RIB configuration to common header
Moves the definitions of paths in the RIB for the normal IPCP to a header ribconfig.h to avoid repetition.
Diffstat (limited to 'src/ipcpd/normal/ribconfig.h')
-rw-r--r--src/ipcpd/normal/ribconfig.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ipcpd/normal/ribconfig.h b/src/ipcpd/normal/ribconfig.h
new file mode 100644
index 00000000..15b65ce2
--- /dev/null
+++ b/src/ipcpd/normal/ribconfig.h
@@ -0,0 +1,39 @@
+/*
+ * Ouroboros - Copyright (C) 2016 - 2017
+ *
+ * Normal IPC Process - RIB configuration
+ *
+ * Dimitri Staessens <dimitri.staessens@ugent.be>
+ * Sander Vrijders <sander.vrijders@ugent.be>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef OUROBOROS_IPCPD_NORMAL_RIB_CONFIG_H
+#define OUROBOROS_IPCPD_NORMAL_RIB_CONFIG_H
+
+/* RIB configuration for normal */
+#define RIB_MAX_PATH_LEN 256
+
+#define DLR "/"
+#define BOOT_NAME "boot"
+#define MEMBERS_NAME "members"
+#define DIF_NAME "dif_name"
+#define DIR_NAME "directory"
+#define DIF_PATH DLR DIF_NAME
+#define DIR_PATH DLR DIR_NAME
+#define BOOT_PATH DLR BOOT_NAME
+#define MEMBERS_PATH DLR MEMBERS_NAME
+
+#endif /* OUROBOROS_IPCPD_NORMAL_RIB_CONFIG_H */