From 645cf66af11ac36b81648f2e1eb3b1f5aeb7b544 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 16 Feb 2017 19:22:50 +0100 Subject: 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. --- src/ipcpd/normal/ribconfig.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/ipcpd/normal/ribconfig.h (limited to 'src/ipcpd/normal/ribconfig.h') 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 + * Sander Vrijders + * + * 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 */ -- cgit v1.2.3