a little faster autoconfiguration

This commit is contained in:
zhitao 2009-10-16 15:13:25 +00:00
parent 2c1b7013d5
commit 30875da288
2 changed files with 2 additions and 4 deletions

View File

@ -100,8 +100,7 @@ set_global_address(void)
uip_ipaddr_t ipaddr;
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_netif_addr_autoconf_set(&ipaddr, &uip_lladdr);
uip_netif_addr_add(&ipaddr, 16, 0, TENTATIVE);
uip_netif_addr_add(&ipaddr, 64, 0, AUTOCONF);
}
/*---------------------------------------------------------------------------*/
static void

View File

@ -102,8 +102,7 @@ PROCESS_THREAD(udp_server_process, ev, data)
#if UIP_CONF_ROUTER
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_netif_addr_autoconf_set(&ipaddr, &uip_lladdr);
uip_netif_addr_add(&ipaddr, 16, 0, TENTATIVE);
uip_netif_addr_add(&ipaddr, 64, 0, AUTOCONF);
#endif /* UIP_CONF_ROUTER */
print_local_addresses();