Set IP addess to match the setting in the ifconfig in net/tapdev.c
This commit is contained in:
parent
9917b2fba4
commit
1dea784225
@ -30,7 +30,7 @@
|
||||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: node.c,v 1.5 2007/03/22 18:59:34 adamdunkels Exp $
|
||||
* $Id: node.c,v 1.6 2007/03/28 20:15:39 adamdunkels Exp $
|
||||
*/
|
||||
#include "node.h"
|
||||
#include "contiki.h"
|
||||
@ -59,7 +59,7 @@ node_init(int id, int posx, int posy, int b)
|
||||
/* node.type = NODE_TYPE_NORMAL;*/
|
||||
|
||||
if(b) {
|
||||
uip_ipaddr(&addr, 192,168,1,2);
|
||||
uip_ipaddr(&addr, 192,168,2,2);
|
||||
} else {
|
||||
uip_ipaddr(&addr, 172,16,posx,posy);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user