Changeset 558
- Timestamp:
- 04/29/08 16:36:05 (2 weeks ago)
- Files:
-
- nano-RK/projects/SAMPL/client/main.c (modified) (1 diff)
- nano-RK/projects/SAMPL/client/p2p_handler.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nano-RK/projects/SAMPL/client/main.c
r555 r558 463 463 mobile_reserve=nrk_reserve_create(); 464 464 if(mobile_reserve==NRK_ERROR) nrk_kprintf( PSTR( "Error creating mobile node reserve\r\n" )); 465 val=nrk_reserve_set(mobile_reserve, &timeout, 10, NULL);465 val=nrk_reserve_set(mobile_reserve, &timeout,30, NULL); 466 466 if(val==NRK_ERROR) nrk_kprintf( PSTR( "Error setting mobile node reserve\r\n" )); 467 467 nano-RK/projects/SAMPL/client/p2p_handler.c
r554 r558 107 107 #endif 108 108 // No clue what this packet is, so just forward it 109 p2p_pkt_out->subnet_mac[0] = p2p_pkt_in->subnet_mac[0]; 110 p2p_pkt_out->subnet_mac[1] = p2p_pkt_in->subnet_mac[1]; 111 p2p_pkt_out->subnet_mac[2] = p2p_pkt_in->subnet_mac[2]; 109 112 for(i=0; i<p2p_pkt_in->payload_len; i++ ) 110 113 p2p_pkt_out->payload[i]=p2p_pkt_in->payload[i]; … … 118 121 // If the packet isn't for my handler, just copy it for forwarding 119 122 // Routing should have been correctly set above 123 p2p_pkt_out->subnet_mac[0] = p2p_pkt_in->subnet_mac[0]; 124 p2p_pkt_out->subnet_mac[1] = p2p_pkt_in->subnet_mac[1]; 125 p2p_pkt_out->subnet_mac[2] = p2p_pkt_in->subnet_mac[2]; 120 126 for(i=0; i<p2p_pkt_in->payload_len; i++ ) 121 127 p2p_pkt_out->payload[i]=p2p_pkt_in->payload[i];
