Skip to content

Commit

Permalink
[SQUASH ME] added proper return values to sc_fib and fixed rebase mis…
Browse files Browse the repository at this point in the history
…takes
  • Loading branch information
BytesGalore authored and BytesGalore committed Jul 15, 2015
1 parent 2eee29e commit 9057782
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions sys/net/network_layer/sixlowpan/ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ kernel_pid_t udp_packet_handler_pid = KERNEL_PID_UNDEF;
kernel_pid_t tcp_packet_handler_pid = KERNEL_PID_UNDEF;

static volatile kernel_pid_t _rpl_process_pid = KERNEL_PID_UNDEF;
<<<<<<< HEAD
#ifndef FIB_COMPAT
ipv6_addr_t *(*ip_get_next_hop)(ipv6_addr_t *);
#endif
=======
>>>>>>> routing/rpl: adjusted RPL to use the FIB
uint8_t (*ip_srh_indicator)(void);

static ipv6_net_if_ext_t ipv6_net_if_ext[NET_IF_MAX];
Expand Down Expand Up @@ -550,7 +547,7 @@ void *ipv6_process(void *arg)
continue;
}

nce = ndp_get_ll_address(&nxt);
nce = ndp_get_ll_address(dest);

/* copy received packet to send buffer */
memcpy(ipv6_get_buf_send(), ipv6_get_buf(), packet_length);
Expand All @@ -564,7 +561,7 @@ void *ipv6_process(void *arg)
else {
/* XXX: this is wrong, but until ND does work correctly,
* this is the only way (aka the old way)*/
uint16_t raddr = nxt.uint16[7];
uint16_t raddr = dest->uint16[7];
sixlowpan_lowpan_sendto(0, &raddr, 2,
(uint8_t *) ipv6_get_buf_send(), packet_length);
}
Expand Down
3 changes: 2 additions & 1 deletion sys/shell/commands/sc_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int _fib_route_handler(int argc, char **argv)
/* e.g. fibroute right now dont care about the adress/protocol family */
if (argc == 1) {
fib_print_routes();
return;
return 0;
}

/* e.g. firoute [add|del] */
Expand Down Expand Up @@ -209,4 +209,5 @@ int _fib_route_handler(int argc, char **argv)
}

puts("\nunrecognized parameters.\nPlease enter fibroute [add|del] for more information.");
return 1;
}

0 comments on commit 9057782

Please sign in to comment.