I am working on STM32F207, with Ethernet chip ENC28J60, FreeRTOS, LwIP.
Ping is working fine, but TCP Echo server doesn't work, netconn_accept never return. When request from my Desktop I got No route to [host IP ], please see following;
I captured some debug info,
+-------------------------------+
| 4 | 5 | 0x00 | 52 | (v, hl, tos, len)
+-------------------------------+
| 21548 |010| 0 | (id, flags, offset)
+-------------------------------+
| 128 | 6 | 0xd4b7 | (ttl, proto, chksum)
+-------------------------------+
| 192 | 168 | 168 | 109 | (src)
+-------------------------------+
| 192 | 168 | 168 | 33 | (dest)
+-------------------------------+
ip4_input: p->len 52 p->tot_len 52
TCP connection request 57352 -> 7.
ip4_route: No route to 192.168.168.109
ip4_route: No route to 192.168.168.109
ip_input: iphdr->dest 0x21a8a8c0 netif->ip_addr 0x21a8a8c0 (0xa8a8c0, 0xa8a8c0, 0x21000000)
ip4_input: packet accepted on interface st
ip4_input:
IP header:
+-------------------------------+
| 4 | 5 | 0x00 | 52 | (v, hl, tos, len)
+-------------------------------+
| 21556 |010| 0 | (id, flags, offset)
+-------------------------------+
| 128 | 6 | 0xd4af | (ttl, proto, chksum)
+-------------------------------+
| 192 | 168 | 168 | 109 | (src)
+-------------------------------+
| 192 | 168 | 168 | 33 | (dest)
+-------------------------------+
ip4_input: p->len 52 p->tot_len 52
ip4_route: No route to 192.168.168.109