mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Change ip4 addresses to agree with wiki
This commit is contained in:
parent
e64b3d8465
commit
d5047f43c1
@ -29,7 +29,7 @@
|
||||
*
|
||||
* This file is part of the Contiki OS
|
||||
*
|
||||
* $Id: contiki-main.c,v 1.20 2009/04/29 11:49:27 adamdunkels Exp $
|
||||
* $Id: contiki-main.c,v 1.21 2009/08/08 11:42:05 dak664 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -71,15 +71,15 @@ main(void)
|
||||
|
||||
#if !UIP_CONF_IPV6
|
||||
uip_ipaddr_t addr;
|
||||
uip_ipaddr(&addr, 192,168,1,2);
|
||||
uip_ipaddr(&addr, 10,1,1,1);
|
||||
printf("IP Address: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
|
||||
uip_sethostaddr(&addr);
|
||||
|
||||
uip_ipaddr(&addr, 255,255,255,0);
|
||||
uip_ipaddr(&addr, 255,0,0,0);
|
||||
printf("Subnet Mask: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
|
||||
uip_setnetmask(&addr);
|
||||
|
||||
uip_ipaddr(&addr, 192,168,1,1);
|
||||
uip_ipaddr(&addr, 10,1,1,100);
|
||||
printf("Def. Router: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
|
||||
uip_setdraddr(&addr);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user