diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-08-22 11:13:31 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-08-23 22:40:01 +0200 |
commit | bb0a01dbb52cb0a02ce684b6fef3ec85e6c1918a (patch) | |
tree | e378c45c9f834ae8155096387c90b905714abc81 /src/ipcpd/normal/rmt.c | |
parent | e2fd96f11b6a90d92f2d33627cb57ebf266e62ef (diff) | |
download | ouroboros-bb0a01dbb52cb0a02ce684b6fef3ec85e6c1918a.tar.gz ouroboros-bb0a01dbb52cb0a02ce684b6fef3ec85e6c1918a.zip |
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.
Diffstat (limited to 'src/ipcpd/normal/rmt.c')
-rw-r--r-- | src/ipcpd/normal/rmt.c | 52 |
1 files changed, 52 insertions, 0 deletions
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 <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 "flow-manager" + +#include <ouroboros/config.h> +#include <ouroboros/logs.h> + +#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; +} |