updated for new uip APIs
This commit is contained in:
parent
e8916fe01f
commit
da36724ac8
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: shell-ping.c,v 1.2 2009/03/07 09:32:41 adamdunkels Exp $
|
||||
* $Id: shell-ping.c,v 1.3 2010/03/17 12:27:52 joxe Exp $
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
@ -70,9 +70,9 @@ send_ping(uip_ipaddr_t *dest_addr)
|
|||
UIP_IP_BUF->tcflow = 1;
|
||||
UIP_IP_BUF->flow = 0;
|
||||
UIP_IP_BUF->proto = UIP_PROTO_ICMP6;
|
||||
UIP_IP_BUF->ttl = uip_netif_physical_if.cur_hop_limit;
|
||||
UIP_IP_BUF->ttl = uip_ds6_if.cur_hop_limit;
|
||||
uip_ipaddr_copy(&UIP_IP_BUF->destipaddr, dest_addr);
|
||||
uip_netif_select_src(&UIP_IP_BUF->srcipaddr, &UIP_IP_BUF->destipaddr);
|
||||
uip_ds6_select_src(&UIP_IP_BUF->srcipaddr, &UIP_IP_BUF->destipaddr);
|
||||
|
||||
UIP_ICMP_BUF->type = ICMP6_ECHO_REQUEST;
|
||||
UIP_ICMP_BUF->icode = 0;
|
||||
|
|
Loading…
Reference in a new issue