58 #include <avr/eeprom.h>
63 #include "net/uip-fw-drv.h"
71 #include "codeprop/codeprop.h"
75 {
UIP_FW_NETIF(172,16,0,1, 255,255,0,0, cc2420_send_uaodv)};
87 unsigned char ds2411_id[8] = { 0x00, 0x12, 0x4b, 0x00, 0x00, 0x00, 0x09, 0x04};
93 eeprom_read_block(ds2411_id, 0, 8);
94 for (i = 0; i < 4; i++) {
96 ds2411_id[i] = ds2411_id[7 - i];
102 main(
int argc,
char **argv)
110 leds_toggle(LEDS_ALL);
112 printf(
"Starting %s "
113 "($Id: gateway.c,v 1.4 2010/10/19 18:29:05 adamdunkels Exp $)\n", __FILE__);
118 leds_toggle(LEDS_ALL);
123 printf(
"MAC %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x CHANNEL %d\n",
124 ds2411_id[0], ds2411_id[1], ds2411_id[2], ds2411_id[3],
125 ds2411_id[4], ds2411_id[5], ds2411_id[6], ds2411_id[7],
130 printf(
"IP %d.%d.%d.%d netmask %d.%d.%d.%d\n",
133 cc2420_set_chan_pan_addr(RF_CHANNEL, panId, uip_hostaddr.u16[1], ds2411_id);
145 tcpip_set_forwarding(1);
160 printf(
"process_run()...\n");