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