summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_create_ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-28 19:00:30 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-28 19:11:39 +0200
commit97c1341690d998ef8d24abec5b83d6b03e312e0d (patch)
tree9416848007e9d554cd120871dda1c91cdc4958f2 /src/tools/irm/irm_create_ipcp.c
parentc510fb625427a9329668f83ca115645fa1a36091 (diff)
downloadouroboros-97c1341690d998ef8d24abec5b83d6b03e312e0d.tar.gz
ouroboros-97c1341690d998ef8d24abec5b83d6b03e312e0d.zip
ipcpd: IPCP over local memory
This introduces an IPC process that relays data between two local AP's over the shm_du_map. Only configuration it has is a DIF name. It required small modification elsewhere: lib: added support for the IPCP_LOCAL type irm: added support for the IPCP_LOCAL type dif_config: added the IPCP_LOCAL type tools: added support for the IPCP_LOCAL type
Diffstat (limited to 'src/tools/irm/irm_create_ipcp.c')
-rw-r--r--src/tools/irm/irm_create_ipcp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/irm/irm_create_ipcp.c b/src/tools/irm/irm_create_ipcp.c
index e82bd980..21438bd4 100644
--- a/src/tools/irm/irm_create_ipcp.c
+++ b/src/tools/irm/irm_create_ipcp.c
@@ -34,13 +34,14 @@
#define NORMAL "normal"
#define SHIM_UDP "shim-udp"
+#define LOCAL "local"
static void usage()
{
printf("Usage: irm create_ipcp\n"
" ap <application process name>\n"
" type [TYPE]\n\n"
- "where TYPE = {" NORMAL " " SHIM_UDP "}\n");
+ "where TYPE = {" NORMAL " " LOCAL " " SHIM_UDP "}\n");
}
int do_create_ipcp(int argc, char ** argv)
@@ -73,6 +74,8 @@ int do_create_ipcp(int argc, char ** argv)
type = IPCP_NORMAL;
else if (strcmp(ipcp_type, SHIM_UDP) == 0)
type = IPCP_SHIM_UDP;
+ else if (strcmp(ipcp_type, LOCAL) == 0)
+ type = IPCP_LOCAL;
else {
usage();
return -1;