Improved log output in IPv6 modules
This commit is contained in:
parent
0f5332430b
commit
588e170eb1
3 changed files with 28 additions and 28 deletions
|
@ -165,7 +165,7 @@ ns_input(void)
|
|||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF(" to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF(" with target address");
|
||||
PRINTF(" with target address ");
|
||||
PRINT6ADDR((uip_ipaddr_t *) (&UIP_ND6_NS_BUF->tgtipaddr));
|
||||
PRINTF("\n");
|
||||
UIP_STAT(++uip_stat.nd6.recv);
|
||||
|
@ -392,11 +392,11 @@ uip_nd6_ns_output(uip_ipaddr_t * src, uip_ipaddr_t * dest, uip_ipaddr_t * tgt)
|
|||
UIP_ICMP_BUF->icmpchksum = ~uip_icmp6chksum();
|
||||
|
||||
UIP_STAT(++uip_stat.nd6.sent);
|
||||
PRINTF("Sending NS to");
|
||||
PRINTF("Sending NS to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("from");
|
||||
PRINTF(" from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("with target address");
|
||||
PRINTF(" with target address ");
|
||||
PRINT6ADDR(tgt);
|
||||
PRINTF("\n");
|
||||
return;
|
||||
|
@ -428,11 +428,11 @@ na_input(void)
|
|||
uint8_t is_solicited;
|
||||
uint8_t is_override;
|
||||
|
||||
PRINTF("Received NA from");
|
||||
PRINTF("Received NA from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("to");
|
||||
PRINTF(" to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("with target address");
|
||||
PRINTF(" with target address ");
|
||||
PRINT6ADDR((uip_ipaddr_t *) (&UIP_ND6_NA_BUF->tgtipaddr));
|
||||
PRINTF("\n");
|
||||
UIP_STAT(++uip_stat.nd6.recv);
|
||||
|
@ -580,9 +580,9 @@ static void
|
|||
rs_input(void)
|
||||
{
|
||||
|
||||
PRINTF("Received RS from");
|
||||
PRINTF("Received RS from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("to");
|
||||
PRINTF(" to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("\n");
|
||||
UIP_STAT(++uip_stat.nd6.recv);
|
||||
|
@ -761,9 +761,9 @@ uip_nd6_ra_output(uip_ipaddr_t * dest)
|
|||
UIP_ICMP_BUF->icmpchksum = ~uip_icmp6chksum();
|
||||
|
||||
UIP_STAT(++uip_stat.nd6.sent);
|
||||
PRINTF("Sending RA to");
|
||||
PRINTF("Sending RA to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("from");
|
||||
PRINTF(" from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("\n");
|
||||
return;
|
||||
|
@ -803,9 +803,9 @@ uip_nd6_rs_output(void)
|
|||
UIP_ICMP_BUF->icmpchksum = ~uip_icmp6chksum();
|
||||
|
||||
UIP_STAT(++uip_stat.nd6.sent);
|
||||
PRINTF("Sendin RS to");
|
||||
PRINTF("Sendin RS to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("from");
|
||||
PRINTF(" from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("\n");
|
||||
return;
|
||||
|
@ -823,9 +823,9 @@ uip_nd6_rs_output(void)
|
|||
void
|
||||
ra_input(void)
|
||||
{
|
||||
PRINTF("Received RA from");
|
||||
PRINTF("Received RA from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("to");
|
||||
PRINTF(" to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("\n");
|
||||
UIP_STAT(++uip_stat.nd6.recv);
|
||||
|
@ -922,9 +922,9 @@ ra_input(void)
|
|||
prefix->isinfinite = 1;
|
||||
break;
|
||||
default:
|
||||
PRINTF("Updating timer of prefix");
|
||||
PRINTF("Updating timer of prefix ");
|
||||
PRINT6ADDR(&prefix->ipaddr);
|
||||
PRINTF("new value %lu\n", uip_ntohl(nd6_opt_prefix_info->validlt));
|
||||
PRINTF(" new value %lu\n", uip_ntohl(nd6_opt_prefix_info->validlt));
|
||||
stimer_set(&prefix->vlifetime,
|
||||
uip_ntohl(nd6_opt_prefix_info->validlt));
|
||||
prefix->isinfinite = 0;
|
||||
|
@ -947,9 +947,9 @@ ra_input(void)
|
|||
if((uip_ntohl(nd6_opt_prefix_info->validlt) > 2 * 60 * 60) ||
|
||||
(uip_ntohl(nd6_opt_prefix_info->validlt) >
|
||||
stimer_remaining(&addr->vlifetime))) {
|
||||
PRINTF("Updating timer of address");
|
||||
PRINTF("Updating timer of address ");
|
||||
PRINT6ADDR(&addr->ipaddr);
|
||||
PRINTF("new value %lu\n",
|
||||
PRINTF(" new value %lu\n",
|
||||
uip_ntohl(nd6_opt_prefix_info->validlt));
|
||||
stimer_set(&addr->vlifetime,
|
||||
uip_ntohl(nd6_opt_prefix_info->validlt));
|
||||
|
@ -957,7 +957,7 @@ ra_input(void)
|
|||
stimer_set(&addr->vlifetime, 2 * 60 * 60);
|
||||
PRINTF("Updating timer of address ");
|
||||
PRINT6ADDR(&addr->ipaddr);
|
||||
PRINTF("new value %lu\n", (unsigned long)(2 * 60 * 60));
|
||||
PRINTF(" new value %lu\n", (unsigned long)(2 * 60 * 60));
|
||||
}
|
||||
addr->isinfinite = 0;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue