lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] ARP request gets a response but no ICMP reply


From: Parlapalli, Nikhil
Subject: [lwip-users] ARP request gets a response but no ICMP reply
Date: Thu, 27 Feb 2020 22:28:35 +0000

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

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]