Use fixed font for neighbors and routes
This commit is contained in:
parent
659d30c6c2
commit
899123a634
|
@ -130,11 +130,11 @@ PT_THREAD(generate_routes(struct httpd_state *s))
|
||||||
SEND_STRING(&s->sout, TOP);
|
SEND_STRING(&s->sout, TOP);
|
||||||
|
|
||||||
blen = 0;
|
blen = 0;
|
||||||
ADD("<h2>Neighbors</h2>");
|
ADD("Neighbors<pre>");
|
||||||
for(i = 0; i < UIP_DS6_NBR_NB; i++) {
|
for(i = 0; i < UIP_DS6_NBR_NB; i++) {
|
||||||
if(uip_ds6_nbr_cache[i].isused) {
|
if(uip_ds6_nbr_cache[i].isused) {
|
||||||
ipaddr_add(&uip_ds6_nbr_cache[i].ipaddr);
|
ipaddr_add(&uip_ds6_nbr_cache[i].ipaddr);
|
||||||
ADD("<br>\n");
|
ADD("\n");
|
||||||
if(blen > sizeof(buf) - 45) {
|
if(blen > sizeof(buf) - 45) {
|
||||||
SEND_STRING(&s->sout, buf);
|
SEND_STRING(&s->sout, buf);
|
||||||
blen = 0;
|
blen = 0;
|
||||||
|
@ -142,7 +142,7 @@ PT_THREAD(generate_routes(struct httpd_state *s))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ADD("<h2>Routes</h2>");
|
ADD("</pre>Routes<pre>");
|
||||||
SEND_STRING(&s->sout, buf);
|
SEND_STRING(&s->sout, buf);
|
||||||
blen = 0;
|
blen = 0;
|
||||||
for(i = 0; i < UIP_DS6_ROUTE_NB; i++) {
|
for(i = 0; i < UIP_DS6_ROUTE_NB; i++) {
|
||||||
|
@ -151,18 +151,19 @@ PT_THREAD(generate_routes(struct httpd_state *s))
|
||||||
ADD("/%u (via ", uip_ds6_routing_table[i].length);
|
ADD("/%u (via ", uip_ds6_routing_table[i].length);
|
||||||
ipaddr_add(&uip_ds6_routing_table[i].nexthop);
|
ipaddr_add(&uip_ds6_routing_table[i].nexthop);
|
||||||
if(uip_ds6_routing_table[i].state.lifetime < 600) {
|
if(uip_ds6_routing_table[i].state.lifetime < 600) {
|
||||||
ADD(") %lus<br>\n", uip_ds6_routing_table[i].state.lifetime);
|
ADD(") %lus\n", uip_ds6_routing_table[i].state.lifetime);
|
||||||
} else {
|
} else {
|
||||||
ADD(")<br>\n");
|
ADD(")\n");
|
||||||
}
|
}
|
||||||
SEND_STRING(&s->sout, buf);
|
SEND_STRING(&s->sout, buf);
|
||||||
blen = 0;
|
blen = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(blen > 0) {
|
ADD("</pre>");
|
||||||
|
//if(blen > 0) {
|
||||||
SEND_STRING(&s->sout, buf);
|
SEND_STRING(&s->sout, buf);
|
||||||
blen = 0;
|
// blen = 0;
|
||||||
}
|
//}
|
||||||
|
|
||||||
SEND_STRING(&s->sout, BOTTOM);
|
SEND_STRING(&s->sout, BOTTOM);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue