mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
Add NSH ping command
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@870 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -366,5 +366,7 @@ extern uint16 uip_ipchksum(struct uip_driver_s *dev);
|
||||
extern uint16 uip_tcpchksum(struct uip_driver_s *dev);
|
||||
|
||||
extern uint16 uip_udpchksum(struct uip_driver_s *dev);
|
||||
extern uint16 uip_icmpchksum(struct uip_driver_s *dev);
|
||||
|
||||
#endif /* __UIP_ARCH_H */
|
||||
|
||||
|
||||
@@ -194,4 +194,17 @@ struct uip_icmp_stats_s
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
EXTERN int uip_ping(uip_ipaddr_t addr, uint16 id, uint16 seqno, uint16 datalen, int dsecs);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __NET_UIP_UIP_ICMP_H */
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <sys/types.h>
|
||||
#include <pthread.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
@@ -85,7 +86,7 @@
|
||||
* Return: Non-zero If the IP address was parsed.
|
||||
*/
|
||||
|
||||
extern unsigned char uiplib_ipaddrconv(char *addrstr, unsigned char *addr);
|
||||
extern boolean uiplib_ipaddrconv(const char *addrstr, ubyte *addr);
|
||||
|
||||
/* Get and set IP/MAC addresses */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user