Use uip-debug in ip64-ipv4-dhcp.c
This commit is contained in:
parent
0da6e128eb
commit
37fe6a2fa6
|
@ -39,6 +39,9 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define DEBUG DEBUG_NONE
|
||||||
|
#include "net/ip/uip-debug.h"
|
||||||
|
|
||||||
PROCESS(ip64_ipv4_dhcp_process, "IPv4 DHCP");
|
PROCESS(ip64_ipv4_dhcp_process, "IPv4 DHCP");
|
||||||
|
|
||||||
uip_ipaddr_t uip_hostaddr; /* Needed because it is referenced by dhcpc.c */
|
uip_ipaddr_t uip_hostaddr; /* Needed because it is referenced by dhcpc.c */
|
||||||
|
@ -48,7 +51,7 @@ uip_ipaddr_t uip_hostaddr; /* Needed because it is referenced by dhcpc.c */
|
||||||
void
|
void
|
||||||
ip64_ipv4_dhcp_init(void)
|
ip64_ipv4_dhcp_init(void)
|
||||||
{
|
{
|
||||||
printf("Starting DHCPv4\n");
|
printf("IP64: Starting DHCPv4\n");
|
||||||
process_start(&ip64_ipv4_dhcp_process, NULL);
|
process_start(&ip64_ipv4_dhcp_process, NULL);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
@ -58,10 +61,10 @@ PROCESS_THREAD(ip64_ipv4_dhcp_process, ev, data)
|
||||||
|
|
||||||
ip64_dhcpc_init(&ip64_eth_addr, sizeof(ip64_eth_addr));
|
ip64_dhcpc_init(&ip64_eth_addr, sizeof(ip64_eth_addr));
|
||||||
|
|
||||||
printf("Inited\n");
|
PRINTF("IP64: Inited\n");
|
||||||
|
|
||||||
ip64_dhcpc_request();
|
ip64_dhcpc_request();
|
||||||
printf("Requested\n");
|
PRINTF("IP64: Requested\n");
|
||||||
while(1) {
|
while(1) {
|
||||||
PROCESS_WAIT_EVENT();
|
PROCESS_WAIT_EVENT();
|
||||||
|
|
||||||
|
@ -78,7 +81,7 @@ void
|
||||||
ip64_dhcpc_configured(const struct ip64_dhcpc_state *s)
|
ip64_dhcpc_configured(const struct ip64_dhcpc_state *s)
|
||||||
{
|
{
|
||||||
uip_ip6addr_t ip6dnsaddr;
|
uip_ip6addr_t ip6dnsaddr;
|
||||||
printf("DHCP Configured with %d.%d.%d.%d\n",
|
PRINTF("IP64: DHCP Configured with %d.%d.%d.%d\n",
|
||||||
s->ipaddr.u8[0], s->ipaddr.u8[1],
|
s->ipaddr.u8[0], s->ipaddr.u8[1],
|
||||||
s->ipaddr.u8[2], s->ipaddr.u8[3]);
|
s->ipaddr.u8[2], s->ipaddr.u8[3]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue