[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] ping my own device's ip always timeout
From: |
Axel Lin |
Subject: |
Re: [lwip-users] ping my own device's ip always timeout |
Date: |
Thu, 13 Apr 2017 17:24:52 +0800 |
2017-04-13 17:19 GMT+08:00 Sylvain Rochet <address@hidden>:
> Hi,
>
> On Thu, Apr 13, 2017 at 04:40:53PM +0800, Axel Lin wrote:
>> Hi,
>> After my device join an AP and get the ip (e.g. 192.168.0.102).
>> My device can ping the gateway ip and other devices in the same network.
>> Other devices can ping my test device running lwip.
>> But if I try to ping my own ip (192.168.0.102), it always timeout.
>> This seems strange. is this a normal behavior in lwip?
>
> Short answer:
>
> /**
> * LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP
> * address equal to the netif IP address, looping them back up the stack.
> */
> #define LWIP_NETIF_LOOPBACK 1
Hi Sylvain,
Thanks, it works with above setting.
Axel