summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/ribmgr.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-07-14 16:52:54 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-07-14 16:52:54 +0200
commit8d1951e463193c1aa213c4680f645ec7b9247e15 (patch)
tree9f75f0987f7acfd5c26fc90ecbb3cf81b585ec47 /src/ipcpd/normal/ribmgr.c
parentd96bac100c5fe181383e947c1e62241cbabce6ac (diff)
downloadouroboros-8d1951e463193c1aa213c4680f645ec7b9247e15.tar.gz
ouroboros-8d1951e463193c1aa213c4680f645ec7b9247e15.zip
ipcpd: normal: Establish N-1 management flows
This adds the intial implementation of establishing management N-1 flows between normal IPCPs. On calling fmgr_mgmt_flow, a management flow will be setup to a certain destination IPCP. After flow allocation, the fd is handed to the RIB manager. The flow manager also listens for incoming flow requests. In case they are management flows, they are handed to the RIB manager, otherwise to the FRCT.
Diffstat (limited to 'src/ipcpd/normal/ribmgr.c')
-rw-r--r--src/ipcpd/normal/ribmgr.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/ipcpd/normal/ribmgr.c b/src/ipcpd/normal/ribmgr.c
new file mode 100644
index 00000000..39723e5a
--- /dev/null
+++ b/src/ipcpd/normal/ribmgr.c
@@ -0,0 +1,62 @@
+/*
+ * Ouroboros - Copyright (C) 2016
+ *
+ * RIB manager of the IPC Process
+ *
+ * Sander Vrijders <sander.vrijders@intec.ugent.be>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ */
+
+#define OUROBOROS_PREFIX "rib-manager"
+
+#include <ouroboros/logs.h>
+
+#include "ribmgr.h"
+
+int ribmgr_init()
+{
+ LOG_MISSING;
+
+ return -1;
+}
+
+int ribmgr_fini()
+{
+ LOG_MISSING;
+
+ return -1;
+}
+
+int ribmgr_mgmt_flow(int fd)
+{
+ LOG_MISSING;
+
+ return -1;
+}
+
+int ribmgr_bootstrap(struct dif_config * conf)
+{
+ LOG_MISSING;
+
+ return -1;
+}
+
+int ribmgr_fmgr_msg()
+{
+ LOG_MISSING;
+
+ return -1;
+}