net: contiki: Fix debug prints for ICMPv6 echo request and reply
Change-Id: Ibf0c153f07af19868d89937dd1674da9d6348f95 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
e9d0bbb984
commit
b1f2593a58
1 changed files with 4 additions and 4 deletions
|
@ -127,9 +127,9 @@ echo_request_input(struct net_buf *buf)
|
||||||
* headers in the request otherwise we need to remove the extension
|
* headers in the request otherwise we need to remove the extension
|
||||||
* headers and change a few fields
|
* headers and change a few fields
|
||||||
*/
|
*/
|
||||||
PRINTF("Received Echo Request from");
|
PRINTF("Received Echo Request from ");
|
||||||
PRINT6ADDR(&UIP_IP_BUF(buf)->srcipaddr);
|
PRINT6ADDR(&UIP_IP_BUF(buf)->srcipaddr);
|
||||||
PRINTF("to");
|
PRINTF(" to ");
|
||||||
PRINT6ADDR(&UIP_IP_BUF(buf)->destipaddr);
|
PRINT6ADDR(&UIP_IP_BUF(buf)->destipaddr);
|
||||||
PRINTF("\n");
|
PRINTF("\n");
|
||||||
|
|
||||||
|
@ -196,9 +196,9 @@ echo_request_input(struct net_buf *buf)
|
||||||
UIP_ICMP_BUF(buf)->icmpchksum = 0;
|
UIP_ICMP_BUF(buf)->icmpchksum = 0;
|
||||||
UIP_ICMP_BUF(buf)->icmpchksum = ~uip_icmp6chksum(buf);
|
UIP_ICMP_BUF(buf)->icmpchksum = ~uip_icmp6chksum(buf);
|
||||||
|
|
||||||
PRINTF("Sending Echo Reply to");
|
PRINTF("Sending Echo Reply to ");
|
||||||
PRINT6ADDR(&UIP_IP_BUF(buf)->destipaddr);
|
PRINT6ADDR(&UIP_IP_BUF(buf)->destipaddr);
|
||||||
PRINTF("from");
|
PRINTF(" from ");
|
||||||
PRINT6ADDR(&UIP_IP_BUF(buf)->srcipaddr);
|
PRINT6ADDR(&UIP_IP_BUF(buf)->srcipaddr);
|
||||||
PRINTF("\n");
|
PRINTF("\n");
|
||||||
UIP_STAT(++uip_stat.icmp.sent);
|
UIP_STAT(++uip_stat.icmp.sent);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue