Merge pull request #137 from darconeous/pull-requests/platform-avr-ravenusb-httpd-isused-fix
Fix for avr-ravenusb target builds due to missing 'isused'.
This commit is contained in:
commit
9c8f1d5356
1 changed files with 14 additions and 15 deletions
|
@ -276,23 +276,22 @@ PT_THREAD(generate_routes(struct httpd_state *s))
|
||||||
ADD("<h2>Routes [%u max]</h2>",UIP_DS6_ROUTE_NB);
|
ADD("<h2>Routes [%u max]</h2>",UIP_DS6_ROUTE_NB);
|
||||||
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
||||||
blen = 0;
|
blen = 0;
|
||||||
for(i = 0; i < UIP_DS6_ROUTE_NB; i++) {
|
uip_ds6_route_t *route;
|
||||||
if(uip_ds6_routing_table[i].isused) {
|
for(route = uip_ds6_route_list_head(); route != NULL; route = list_item_next(route)) {
|
||||||
ipaddr_add(&uip_ds6_routing_table[i].ipaddr);
|
ipaddr_add(&route->ipaddr);
|
||||||
ADD("/%u (via ", uip_ds6_routing_table[i].length);
|
ADD("/%u (via ", route->length);
|
||||||
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
||||||
|
blen=0;
|
||||||
|
ipaddr_add(&route->nexthop);
|
||||||
|
if(route->state.lifetime < 600) {
|
||||||
|
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
||||||
blen=0;
|
blen=0;
|
||||||
ipaddr_add(&uip_ds6_routing_table[i].nexthop);
|
ADD(") %lus<br>", route->state.lifetime);
|
||||||
if(uip_ds6_routing_table[i].state.lifetime < 600) {
|
} else {
|
||||||
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
ADD(")<br>");
|
||||||
blen=0;
|
|
||||||
ADD(") %lus<br>", uip_ds6_routing_table[i].state.lifetime);
|
|
||||||
} else {
|
|
||||||
ADD(")<br>");
|
|
||||||
}
|
|
||||||
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
|
||||||
blen = 0;
|
|
||||||
}
|
}
|
||||||
|
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
||||||
|
blen = 0;
|
||||||
}
|
}
|
||||||
if(blen > 0) {
|
if(blen > 0) {
|
||||||
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
PSOCK_GENERATOR_SEND(&s->sout, generate_string, buf);
|
||||||
|
|
Loading…
Reference in a new issue