Added an API for getting a callback when a ping reply is received.

This commit is contained in:
Adam Dunkels 2013-11-16 16:23:43 +01:00
parent 75cbf4f48a
commit 9114cd3215
3 changed files with 150 additions and 4 deletions

View file

@ -1431,7 +1431,8 @@ uip_process(uint8_t flag)
uip_icmp6_echo_request_input();
break;
case ICMP6_ECHO_REPLY:
/** \note We don't implement any application callback for now */
/** Call echo reply input function. */
uip_icmp6_echo_reply_input();
PRINTF("Received an icmp6 echo reply\n");
UIP_STAT(++uip_stat.icmp.recv);
uip_len = 0;