Change ip4 addresses to agree with wiki

This commit is contained in:
dak664 2009-08-08 11:42:05 +00:00
parent e64b3d8465
commit d5047f43c1

View file

@ -29,7 +29,7 @@
* *
* This file is part of the Contiki OS * 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 #if !UIP_CONF_IPV6
uip_ipaddr_t addr; 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)); printf("IP Address: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
uip_sethostaddr(&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)); printf("Subnet Mask: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
uip_setnetmask(&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)); printf("Def. Router: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
uip_setdraddr(&addr); uip_setdraddr(&addr);
#else #else