32 #include "net/eth-proc.h"
33 #include "contiki-net.h"
36 #if NETSTACK_CONF_WITH_IPV6
40 #define SUBNET_IP 192, 0, 2
41 #define NETMASK_IP 255, 255, 255, 0
42 #define HOST_IP SUBNET_IP, 2
43 #define GATEWAY_IP SUBNET_IP, 1
44 #define NAMESERVER_IP GATEWAY_IP
51 #if !NETSTACK_CONF_WITH_IPV6
54 #define SET_IP_ADDR(x) \
55 uip_ipaddr(&ip_addr, x)
60 SET_IP_ADDR(NETMASK_IP);
63 SET_IP_ADDR(GATEWAY_IP);
67 SET_IP_ADDR(NAMESERVER_IP);
#define uip_sethostaddr(addr)
Set the IP address of this host.
#define uip_setdraddr(addr)
Set the default router's IP address.
const linkaddr_t linkaddr_null
The null Rime address.
void uip_nameserver_update(const uip_ipaddr_t *nameserver, uint32_t lifetime)
Initialize the module variables.
Header file for the Rime address representation
#define uip_setnetmask(addr)
Set the netmask.
#define NULL
The null pointer.
void process_start(struct process *p, process_data_t data)
Start a process.
#define UIP_NAMESERVER_INFINITE_LIFETIME
Infinite Lifetime indicator.