Change typedef of uip_ipaddr_t from a vector type to a union.
typedef union uip_ip4addr_t { u16_t u16[2]; u8_t u8[4]; } uip_ip4addr_t; typedef uip_ip4addr_t uip_ipaddr_t; This implies that one must consistently pass pointers to uip_ipaddr_t:s and not mix and match pointers with uip_ipaddr_t:s as was done earlier.
This commit is contained in:
parent
2fe1ccf8c5
commit
fb94d50410
30 changed files with 253 additions and 270 deletions
|
@ -29,7 +29,7 @@
|
|||
*
|
||||
* This file is part of the Contiki OS
|
||||
*
|
||||
* $Id: contiki-main.c,v 1.1 2006/06/17 22:41:31 adamdunkels Exp $
|
||||
* $Id: contiki-main.c,v 1.2 2006/08/09 16:13:40 bg- Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -57,14 +57,14 @@ main(void)
|
|||
|
||||
autostart_start(autostart_processes);
|
||||
|
||||
uip_ipaddr(addr, 192,168,2,2);
|
||||
uip_sethostaddr(addr);
|
||||
uip_ipaddr(&addr, 192,168,2,2);
|
||||
uip_sethostaddr(&addr);
|
||||
|
||||
uip_ipaddr(addr, 192,168,2,1);
|
||||
uip_setdraddr(addr);
|
||||
uip_ipaddr(&addr, 192,168,2,1);
|
||||
uip_setdraddr(&addr);
|
||||
|
||||
uip_ipaddr(addr, 255,255,255,0);
|
||||
uip_setnetmask(addr);
|
||||
uip_ipaddr(&addr, 255,255,255,0);
|
||||
uip_setnetmask(&addr);
|
||||
|
||||
printf("Contiki initiated, now starting process scheduling\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue