RTL8720DN Ping to some host

Hi, I’m trying to ping my default gateway to get response time from a BW16 board.

I’ve tried to compile ping_test.c from > C:\Users\user>\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.7-build20230509\system\component\common\api\network but I end up with this error:

C:\Users\Chano\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.7-build20230509\system/component/common/network/lwip/lwip_v2.0.2/src/include/lwip/inet.h:59:3: error: ‘in_addr_t’ does not name a type
in_addr_t s_addr;

can anyone help on solving this error? or, is there another way to make a ping with this board (I’ve seen that there is ATPP ping command, but I don’t know how to send this AT command.

Any clue.
Thx

Just try adding this:
typedef unsigned int in_addr_t;
before any includes, so it should be first line in your source file.

Thank you so easy trick I didn’t realized that was a simple unsiged int, I thougth it was some complex estructure.

Thx for pointing it out!!