More uip_ipaddr_t fixes.

This commit is contained in:
oliverschmidt 2006-08-26 23:08:32 +00:00
parent 157ee59ff5
commit a6d9a8d5dd

View file

@ -77,13 +77,13 @@ makestrings(void)
{ {
u16_t addr[2], *addrptr; u16_t addr[2], *addrptr;
uip_gethostaddr(addr); uip_gethostaddr((uip_ipaddr_t *)addr);
makeaddr(addr, ipaddr); makeaddr(addr, ipaddr);
uip_getnetmask(addr); uip_getnetmask((uip_ipaddr_t *)addr);
makeaddr(addr, netmask); makeaddr(addr, netmask);
uip_getdraddr(addr); uip_getdraddr((uip_ipaddr_t *)addr);
makeaddr(addr, gateway); makeaddr(addr, gateway);
addrptr = resolv_getserver(); addrptr = resolv_getserver();
@ -143,10 +143,10 @@ PROCESS_THREAD(dhcp_process, ev, data)
void void
dhcpc_configured(const struct dhcpc_state *s) dhcpc_configured(const struct dhcpc_state *s)
{ {
uip_sethostaddr(s->ipaddr); uip_sethostaddr(&s->ipaddr);
uip_setnetmask(s->netmask); uip_setnetmask(&s->netmask);
uip_setdraddr(s->default_router); uip_setdraddr(&s->default_router);
resolv_conf(s->dnsaddr); resolv_conf((u16_t *)&s->dnsaddr);
set_statustext("Configured."); set_statustext("Configured.");
process_post(PROCESS_CURRENT(), SHOWCONFIG, NULL); process_post(PROCESS_CURRENT(), SHOWCONFIG, NULL);
} }