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/frct.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/ipcpd/normal/frct.c (limited to 'src/ipcpd/normal/frct.c') diff --git a/src/ipcpd/normal/frct.c b/src/ipcpd/normal/frct.c new file mode 100644 index 00000000..9ea2fd48 --- /dev/null +++ b/src/ipcpd/normal/frct.c @@ -0,0 +1,67 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * The Flow and Retransmission control component + * + * Sander Vrijders + * + * 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 "flow-rtx-control" + +#include + +#include "frct.h" + +struct frct_i { + +}; + +int frct_init(struct dt_const * dt_const) +{ + LOG_MISSING; + + return -1; +} + +int frct_fini() +{ + LOG_MISSING; + + return -1; +} + +struct frct_i * frct_i_create(int port_id, + enum qos_cube cube) +{ + LOG_MISSING; + + return NULL; +} + +int frct_i_destroy(struct frct_i * instance) +{ + LOG_MISSING; + + return -1; +} + +int frct_dt_flow(int fd) +{ + LOG_MISSING; + + return -1; +} -- cgit v1.2.3