summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_bootstrap_ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-05-28 19:30:53 +0200
committerSander Vrijders <[email protected]>2016-05-28 19:30:53 +0200
commitc2e21a6a8cdbc72dc7d6af5ecfe0ed42f4b18cf7 (patch)
treeffbd7a508a45b4961f4caf86b1d447792f531a48 /src/tools/irm/irm_bootstrap_ipcp.c
parentc510fb625427a9329668f83ca115645fa1a36091 (diff)
parent558aea43793940befe1aca6ba366374a420e19de (diff)
downloadouroboros-c2e21a6a8cdbc72dc7d6af5ecfe0ed42f4b18cf7.tar.gz
ouroboros-c2e21a6a8cdbc72dc7d6af5ecfe0ed42f4b18cf7.zip
Merged in dstaesse/ouroboros/be-local (pull request #118)
ipcpd: IPCP over local memory
Diffstat (limited to 'src/tools/irm/irm_bootstrap_ipcp.c')
-rw-r--r--src/tools/irm/irm_bootstrap_ipcp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/irm/irm_bootstrap_ipcp.c b/src/tools/irm/irm_bootstrap_ipcp.c
index 64498384..5cf5f017 100644
--- a/src/tools/irm/irm_bootstrap_ipcp.c
+++ b/src/tools/irm/irm_bootstrap_ipcp.c
@@ -33,6 +33,7 @@
#define NORMAL "normal"
#define SHIM_UDP "shim-udp"
+#define LOCAL "local"
#define DEFAULT_ADDR_SIZE 4
#define DEFAULT_CEP_ID_SIZE 2
@@ -53,7 +54,7 @@ static void usage()
" [api <application process instance>]\n"
" dif <DIF name>\n"
" type [TYPE]\n\n"
- "where TYPE = {" NORMAL " " SHIM_UDP "}\n\n"
+ "where TYPE = {" NORMAL " " LOCAL " " SHIM_UDP "}\n\n"
"if TYPE == " NORMAL "\n"
" [addr <address size> (default: %d)]\n"
" [cep_id <CEP-id size> (default: %d)]\n"
@@ -166,6 +167,8 @@ int do_bootstrap_ipcp(int argc, char ** argv)
}
conf.ip_addr = ip_addr;
conf.dns_addr = dns_addr;
+ } else if (strcmp(ipcp_type, LOCAL) == 0) {
+ conf.type = IPCP_LOCAL;
} else {
usage();
return -1;