From bb0a01dbb52cb0a02ce684b6fef3ec85e6c1918a Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Mon, 22 Aug 2016 11:13:31 +0200 Subject: ipcpd: normal: Add initial steps for N+1 flow allocation This adds the initial framework for flow allocation between two N+1 endpoints. The FMGR will receive flow allocation requests and will create a connection as a result, addressed to the right address, it will also pass a flow allocation message to this address. Upon receipt on the other side, the FMGR will be receive a flow allocation message and a pointer to a new connection. The FMGR can then accept or destroy the connection. This commit also introduces the RMT function, which is needed by the FRCT to forward its SDUs on the right file descriptor. --- src/ipcpd/normal/rmt.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/ipcpd/normal/rmt.c (limited to 'src/ipcpd/normal/rmt.c') diff --git a/src/ipcpd/normal/rmt.c b/src/ipcpd/normal/rmt.c new file mode 100644 index 00000000..ee92c3e3 --- /dev/null +++ b/src/ipcpd/normal/rmt.c @@ -0,0 +1,52 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * The Relaying and Multiplexing task + * + * 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-manager" + +#include +#include + +#include "rmt.h" + +struct rmt { +}; + +int rmt_init(struct dt_const * dtc) +{ + LOG_MISSING; + + return -1; +} + +int rmt_fini() +{ + LOG_MISSING; + + return -1; +} + +int rmt_frct_post() +{ + LOG_MISSING; + + return -1; +} -- cgit v1.2.3