mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
galileo: Omit DHCP code when IPv6 is enabled
This commit is contained in:
parent
ef78b44a86
commit
04446e8da5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user