summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/fmgr.h
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-08-22 11:13:31 +0200
committerSander Vrijders <[email protected]>2016-08-23 22:40:01 +0200
commitbb0a01dbb52cb0a02ce684b6fef3ec85e6c1918a (patch)
treee378c45c9f834ae8155096387c90b905714abc81 /src/ipcpd/normal/fmgr.h
parente2fd96f11b6a90d92f2d33627cb57ebf266e62ef (diff)
downloadouroboros-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/fmgr.h')
-rw-r--r--src/ipcpd/normal/fmgr.h12
1 files changed, 10 insertions, 2 deletions
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 <stdint.h>
#include <sys/types.h>
+#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