From 04446e8da523556e82bec06b8064fd4da3b0977f Mon Sep 17 00:00:00 2001 From: Michael LeMay Date: Sat, 24 Sep 2016 17:37:07 -0700 Subject: [PATCH] galileo: Omit DHCP code when IPv6 is enabled --- platform/galileo/net/eth-conf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/galileo/net/eth-conf.c b/platform/galileo/net/eth-conf.c index 3afb8f211..f36d6e8aa 100644 --- a/platform/galileo/net/eth-conf.c +++ b/platform/galileo/net/eth-conf.c @@ -44,9 +44,8 @@ const linkaddr_t linkaddr_null = { { 0, 0, 0, 0, 0, 0 } }; #define HOST_IP SUBNET_IP, 2 #define GATEWAY_IP SUBNET_IP, 1 #define NAMESERVER_IP GATEWAY_IP -#endif - PROCESS(dhcp_process, "DHCP"); +#endif /*---------------------------------------------------------------------------*/ void @@ -74,11 +73,14 @@ eth_init(void) #endif process_start(ð_process, NULL); +#if !NETSTACK_CONF_WITH_IPV6 /* Comment out the following line to disable DHCP and simply use the static * IP configuration setup above. */ process_start(&dhcp_process, NULL); +#endif } +#if !NETSTACK_CONF_WITH_IPV6 /*---------------------------------------------------------------------------*/ PROCESS_THREAD(dhcp_process, ev, data) { @@ -123,3 +125,4 @@ dhcpc_unconfigured(const struct dhcpc_state *s) printf("DHCP unconfigured.\n"); } /*---------------------------------------------------------------------------*/ +#endif