On 6/6/24 11:10, Ilias Apalodimas wrote:
>> +#include
>> +#include
>> +
>> +#define PING_DELAY_MS 1000
>> +#define PING_TIMEOUT_MS 1
>> +/* Additional data size to include in the packet */
>> +#define PING_DATA_SIZE 32
>> +/* Ping identifier - must fit on a u16_t */
>> +#define PING_ID 0xA
> +#include
> +#include
> +
> +#define PING_DELAY_MS 1000
> +#define PING_TIMEOUT_MS 1
> +/* Additional data size to include in the packet */
> +#define PING_DATA_SIZE 32
> +/* Ping identifier - must fit on a u16_t */
> +#define PING_ID 0xAFAF
> +
> +static const ip_addr_t *ping_target;
> +st
Add support for the the ping command with NET_LWIP. The implementation
is derived from lwIP's contrib/apps/ping/ping.c.
Signed-off-by: Jerome Forissier
---
boot/Kconfig | 2 +-
cmd/Kconfig| 6 ++
cmd/net-lwip.c | 8 +++
include/net-lwip.h | 3 +
net-lwip/Makefile | 1
3 matches
Mail list logo