ARP request gets a response but no ICMP reply

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ARP request gets a response but no ICMP reply

nikhparla

Hi,

 

I ported the lwip 1.4.1 to Aurix Tricore processor and wanted to test by pinging from a linux machine. I can confirm with both a debugger and the ARP response that the driver works fine. However, I cannot get the ICMP response. I also cannot get the Aurix to initiate a ping to the Linux machine.

 

Here is the output of ping  -

 

08:49:51.100516 ARP, Request who-has 192.168.141.217 tell 192.168.141.25, length 28

08:49:51.100739 ARP, Reply 192.168.141.217 is-at 00:11:22:33:44:55 (oui Unknown), length 46

08:49:51.100767 IP 192.168.141.25 > 192.168.141.217: ICMP echo request, id 27144, seq 0, length 64

08:49:52.100679 IP 192.168.141.25 > 192.168.141.217: ICMP echo request, id 27144, seq 1, length 64

08:49:53.100754 IP 192.168.141.25 > 192.168.141.217: ICMP echo request, id 27144, seq 2, length 64

08:49:54.100807 IP 192.168.141.25 > 192.168.141.217: ICMP echo request, id 27144, seq 3, length 64

08:49:55.100858 IP 192.168.141.25 > 192.168.141.217: ICMP echo request, id 27144, seq 4, length 64

 

As can be inferred, linux machine is on 25 and Aurix on 217. I have these relevant options set in the lwipopts.h file apart from others –

 

#define LWIP_ARP            1

#define LWIP_ICMP          1

#define LWIP_STATS        1                 /**< \brief default is 1 */

#define LWIP_NETCONN      0                 /**< \brief default is 1 */

#define LWIP_SOCKET       0                 /**< \brief default is 1 */

#define ETH_PAD_SIZE      2                 /**< \brief default is 0 */   

 

Are there any other options I am missing? I eventually want to write a socket application for this processor.

I already have raw ethernet packets without any TCP/IP stack going back and forth between the mentioned cpus. Let me know if I need to provide more information.

 

Nikhil

 


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: ARP request gets a response but no ICMP reply

goldsimon@gmx.de
Am 27.02.2020 um 23:28 schrieb Parlapalli, Nikhil:
> Hi,
>
>  
>
> I ported the lwip 1.4.1 to Aurix Tricore processor and wanted to test by
> pinging from a linux machine. I can confirm with both a debugger and the
> ARP response that the driver works fine. However, I cannot get the ICMP
> response. I also cannot get the Aurix to initiate a ping to the Linux
> machine.

When porting the stack, why did you chose such an old version?

One difference between ARP and ICMP is that ICMP contains a checksum
that is often checked in hardware. Maybe there's something wrong in that
direction?

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users