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/fmgr.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/normal/fmgr.h') diff --git a/src/ipcpd/normal/fmgr.h b/src/ipcpd/normal/fmgr.h index dc88bbdf..342410ca 100644 --- a/src/ipcpd/normal/fmgr.h +++ b/src/ipcpd/normal/fmgr.h @@ -29,6 +29,8 @@ #include #include +#include "frct.h" + #define MGMT_AE "Management" #define DT_AE "Data transfer" @@ -37,9 +39,10 @@ int fmgr_fini(); /* N-flow ops */ int fmgr_mgmt_flow(char * dst_name); -int fmgr_dt_flow(char * dst_name); +int fmgr_dt_flow(char * dst_name, + enum qos_cube qos); -/* N+1-flow ops */ +/* N+1-flow ops, local */ int fmgr_flow_alloc(pid_t n_api, int port_id, char * dst_ap_name, @@ -52,4 +55,9 @@ int fmgr_flow_alloc_resp(pid_t n_api, int fmgr_flow_dealloc(int port_id); +/* N+1-flow ops, remote */ +int fmgr_flow_alloc_msg(struct frct_i * frct_i, + buffer_t * buf); + + #endif -- cgit v1.2.3