Yeah I don’t understan why I’ve got this address IP (168.97.10.174 and 96.24.149.22). That comes from emac_process_ip_packet(...) which is call by emac_process_eth_packet(...) due to these lines :
printf("-- IP %d.%d.%d.%d\n\r", p_eth->et_dest[0], p_eth->et_dest[1],
p_eth->et_dest[2], p_eth->et_dest[3]);
printf("-- IP %d.%d.%d.%d\n\r",
p_eth->et_src[0], p_eth->et_src[1], p_eth->et_src[2],
p_eth->et_src[3]);
but after with the function emac_display_ip_packet(...) which is call just after emac_process_ip_packet(...) by emac_process_eth_packet(...) I’ve got the good Ip source and dest.
The protocol number is weird too because he changes all the time when I try to connect my PC to my card (one time it will be 0x1CE, after 0x1C8, …) but still print TCP just underneath.
But the Header Length never change it’s always 5
As far as I know, FreeRTOS+TCP has no official support for the SAM3x yet. Can you show me where to find the NetworkInterface that you are using? Or can you post it?
PS. which driver does it use? Does it have a NetworkInterface.c?
Like for instance, we have a driver for SAM4E/SAM70, but that won’t work for SAM3x, I assume.
But… this is not like a driver, these are just stubs.
ICMP requests are normally handled by the FreeRTOS+TCP stack. As for the SAM3x you will really need a complete new network driver.
I will try to develop the driver. It shouldn’t be so complicate because I still have the function to handled ICMP request. I will keep you informed on this post !