41 #define PING_SUPPORT ENABLED
42#elif (PING_SUPPORT != ENABLED && PING_SUPPORT != DISABLED)
43 #error PING_SUPPORT parameter is not valid
47#ifndef PING_DEFAULT_TIMEOUT
48 #define PING_DEFAULT_TIMEOUT 1000
49#elif (PING_DEFAULT_TIMEOUT < 0)
50 #error PING_DEFAULT_TIMEOUT parameter is not valid
54#ifndef PING_MAX_DATA_SIZE
55 #define PING_MAX_DATA_SIZE 32
56#elif (PING_MAX_DATA_SIZE < 0)
57 #error PING_MAX_DATA_SIZE parameter is not valid
61#define PING_BUFFER_SIZE (sizeof(IcmpEchoMessage) + PING_MAX_DATA_SIZE)
75 NetInterface *interface;
77 size_t dataPayloadSize;
79 uint16_t sequenceNumber;
83 uint8_t buffer[PING_BUFFER_SIZE];
88error_t ping(NetInterface *interface,
const IpAddr *targetIpAddr,
96 const IpAddr *targetIpAddr,
size_t size, uint8_t ttl);
error_t
Error codes.
Definition error.h:43
ICMP (Internet Control Message Protocol)
ICMPv6 (Internet Control Message Protocol Version 6)
uint32_t systime_t
System time.
Definition os_port_none.h:90
IP network address.
Definition ip.h:72
Ping context.
Definition ping.h:74