From 8d1951e463193c1aa213c4680f645ec7b9247e15 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 14 Jul 2016 16:52:54 +0200 Subject: 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. --- src/ipcpd/normal/main.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/normal/main.c') diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c index 7ffd1c48..3433b116 100644 --- a/src/ipcpd/normal/main.c +++ b/src/ipcpd/normal/main.c @@ -1,11 +1,21 @@ -#define OUROBOROS_PREFIX "ipcp" +#define OUROBOROS_PREFIX "normal-ipcp" #include #include +#include "fmgr.h" +#include "ribmgr.h" + int main() { - LOG_DBG("Test of the IPCP"); + if (fmgr_init()) { + return -1; + } + + if (ribmgr_init()) { + fmgr_fini(); + return -1; + } while (true) { -- cgit v1.2.3