diff options
author | dimitri staessens <[email protected]> | 2017-02-16 19:22:50 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-02-17 10:53:43 +0100 |
commit | 645cf66af11ac36b81648f2e1eb3b1f5aeb7b544 (patch) | |
tree | c5e4af02e99a098dd123509cc67bfeb6efb6d69c /src/ipcpd/normal/ribconfig.h | |
parent | 8cb5218438feaf455a297915d037675e3c3eea21 (diff) | |
download | ouroboros-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.h | 39 |
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 <[email protected]> + * Sander Vrijders <[email protected]> + * + * 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 */ |