diff options
Diffstat (limited to 'nuttx/net/icmp')
-rw-r--r-- | nuttx/net/icmp/icmp.h | 2 | ||||
-rw-r--r-- | nuttx/net/icmp/icmp_ping.c | 4 | ||||
-rw-r--r-- | nuttx/net/icmp/icmp_send.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/icmp/icmp.h b/nuttx/net/icmp/icmp.h index dd644d9ee..e0c2c756c 100644 --- a/nuttx/net/icmp/icmp.h +++ b/nuttx/net/icmp/icmp.h @@ -83,7 +83,7 @@ void icmp_poll(FAR struct net_driver_s *dev); /* Defined in icmp_send.c ***************************************************/ #ifdef CONFIG_NET_ICMP_PING -void icmp_send(FAR struct net_driver_s *dev, FAR uip_ipaddr_t *destaddr); +void icmp_send(FAR struct net_driver_s *dev, FAR net_ipaddr_t *destaddr); #endif /* CONFIG_NET_ICMP_PING */ #undef EXTERN diff --git a/nuttx/net/icmp/icmp_ping.c b/nuttx/net/icmp/icmp_ping.c index 7371f9d31..5e40d0a3a 100644 --- a/nuttx/net/icmp/icmp_ping.c +++ b/nuttx/net/icmp/icmp_ping.c @@ -82,7 +82,7 @@ struct icmp_ping_s uint32_t png_time; /* Start time for determining timeouts */ uint32_t png_ticks; /* System clock ticks to wait */ int png_result; /* 0: success; <0:negated errno on fail */ - uip_ipaddr_t png_addr; /* The peer to be ping'ed */ + net_ipaddr_t png_addr; /* The peer to be ping'ed */ uint16_t png_id; /* Used to match requests with replies */ uint16_t png_seqno; /* IN: seqno to send; OUT: seqno recieved */ uint16_t png_datlen; /* The length of data to send in the ECHO request */ @@ -323,7 +323,7 @@ end_wait: * ****************************************************************************/ -int uip_ping(uip_ipaddr_t addr, uint16_t id, uint16_t seqno, +int uip_ping(net_ipaddr_t addr, uint16_t id, uint16_t seqno, uint16_t datalen, int dsecs) { struct icmp_ping_s state; diff --git a/nuttx/net/icmp/icmp_send.c b/nuttx/net/icmp/icmp_send.c index 6ab73e777..9cbeb4ef6 100644 --- a/nuttx/net/icmp/icmp_send.c +++ b/nuttx/net/icmp/icmp_send.c @@ -90,7 +90,7 @@ * ****************************************************************************/ -void icmp_send(FAR struct net_driver_s *dev, FAR uip_ipaddr_t *destaddr) +void icmp_send(FAR struct net_driver_s *dev, FAR net_ipaddr_t *destaddr) { FAR struct icmp_iphdr_s *picmp = ICMPBUF; |