From 97c1341690d998ef8d24abec5b83d6b03e312e0d Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 28 May 2016 19:00:30 +0200 Subject: 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 --- src/tools/irm/irm_bootstrap_ipcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tools/irm/irm_bootstrap_ipcp.c') 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 ]\n" " dif \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
(default: %d)]\n" " [cep_id (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; -- cgit v1.2.3