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/lib/ipcp.c | 4 ++-- src/lib/irm.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index 8a4f9629..ec681f9e 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -121,12 +121,12 @@ pid_t ipcp_create(char * ipcp_name, return pid; } - /* clear fd table */ - if (ipcp_type == IPCP_NORMAL) exec_name = IPCP_NORMAL_EXEC; else if (ipcp_type == IPCP_SHIM_UDP) exec_name = IPCP_SHIM_UDP_EXEC; + else if (ipcp_type == IPCP_LOCAL) + exec_name = IPCP_LOCAL_EXEC; else exit(EXIT_FAILURE); diff --git a/src/lib/irm.c b/src/lib/irm.c index cc1c0d01..61d0b4a6 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -137,6 +137,9 @@ int irm_bootstrap_ipcp(instance_name_t * api, config.has_dns_addr = true; config.dns_addr = conf->dns_addr; break; + + case IPCP_LOCAL: + break; default: return -1; } -- cgit v1.2.3 From 558aea43793940befe1aca6ba366374a420e19de Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 28 May 2016 19:23:25 +0200 Subject: lib: fixed empty line in irm.c --- src/lib/irm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/irm.c b/src/lib/irm.c index 61d0b4a6..cff5a76a 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -137,7 +137,6 @@ int irm_bootstrap_ipcp(instance_name_t * api, config.has_dns_addr = true; config.dns_addr = conf->dns_addr; break; - case IPCP_LOCAL: break; default: -- cgit v1.2.3