Make uip-ds6-route use neighbor table. Instead of storing a global list of routing entries that contain both the next hop and the destination, we have a separate list of reachable destination for each neighbor in the global table.

This commit is contained in:
Simon Duquennoy 2013-07-03 19:45:56 +02:00
parent ec609b49eb
commit 09d26f8060
5 changed files with 167 additions and 89 deletions

View file

@ -587,7 +587,7 @@ tcpip_ipv6_output(void)
return;
}
} else {
nexthop = &locrt->nexthop;
nexthop = uip_ds6_route_nexthop(locrt);
}
if(nexthop != NULL) {
PRINTF("tcpip_ipv6_output: next hop ");