Permalink
Browse files

Reverse order of bytes on originator address. collect-view app sends …

…the parent node up big endian, so the example should send up the originator big endian also.
  • Loading branch information...
1 parent 347db44 commit 0ffffa20df79401f2000d26e326432fe5cc54340 @maniacbug committed Aug 11, 2011
Showing with 5 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +1 −1 examples/ipv6/rpl-collect/collect-common.c
  3. +2 −0 tools/.gitignore
View
@@ -15,3 +15,5 @@ tools/tunslip6
*.swp
*.orig
*.avr-atmega128rfa1
+*.avr-zigduino
+*.bak
@@ -96,7 +96,7 @@ collect_common_recv(const rimeaddr_t *originator, uint8_t seqno, uint8_t hops,
printf(" %lu %lu 0", ((time >> 16) & 0xffff), time & 0xffff);
/* Ignore latency for now */
printf(" %u %u %u %u",
- originator->u8[0] + (originator->u8[1] << 8), seqno, hops, 0);
+ originator->u8[1] + (originator->u8[0] << 8), seqno, hops, 0);
for(i = 0; i < payload_len / 2; i++) {
memcpy(&data, payload, sizeof(data));
payload += sizeof(data);
View
@@ -0,0 +1,2 @@
+tunslip
+tapslip6

0 comments on commit 0ffffa2

Please sign in to comment.