Re: [PATCH v2 06/14] net-lwip: add ping command

2024-06-06 Thread Jerome Forissier
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

Re: [PATCH v2 06/14] net-lwip: add ping command

2024-06-06 Thread Ilias Apalodimas
> +#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

[PATCH v2 06/14] net-lwip: add ping command

2024-05-24 Thread Jerome Forissier
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