33 #include "contiki-net.h"
34 #include "ip64-dhcpc.h"
38 #include "ip64-addr.h"
42 PROCESS(ip64_ipv4_dhcp_process,
"IPv4 DHCP");
44 uip_ipaddr_t uip_hostaddr;
49 ip64_ipv4_dhcp_init(
void)
51 printf(
"Starting DHCPv4\n");
64 printf(
"Requested\n");
69 ev == PROCESS_EVENT_TIMER) {
70 ip64_dhcpc_appcall(ev, data);
78 ip64_dhcpc_configured(
const struct ip64_dhcpc_state *s)
80 uip_ip6addr_t ip6dnsaddr;
81 printf(
"DHCP Configured with %d.%d.%d.%d\n",
82 s->ipaddr.u8[0], s->ipaddr.u8[1],
83 s->ipaddr.u8[2], s->ipaddr.u8[3]);
93 ip64_dhcpc_unconfigured(
const struct ip64_dhcpc_state *s)
process_event_t tcpip_event
The uIP event.
#define PROCESS_END()
Define the end of a process.
#define PROCESS(name, strname)
Declare a process.
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
Representation of an IP address.
#define NULL
The null pointer.
void process_start(struct process *p, process_data_t data)
Start a process.
#define PROCESS_WAIT_EVENT()
Wait for an event to be posted to the process.
#define PROCESS_BEGIN()
Define the beginning of a process.