TCPSocket_HelloWorld with DM9161A PHY - DEBUG Enabled debug options in lwipopts.h IP_DEBUG, MEM_DEBUG and MEMP_DEBUG LED on p1.18 (= mbed LED_1) starts blinking when 'pbuf_free: p->ref > 0' is reached ----------------------------------------------------------------------------------- *************************** ** START OF DEBUG OUTPUT ** *************************** Ethernet INIT - Result : 0000 Ethernet CONNECT - ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 336 | (v, hl, tos, len) +-------------------------------+ | 0 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0xba9d | (ttl, proto, chksum) +-------------------------------+ | 0 | 0 | 0 | 0 | (src) +-------------------------------+ | 255 | 255 | 255 | 255 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 336 | (v, hl, tos, len) +-------------------------------+ | 1 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0xba9c | (ttl, proto, chksum) +-------------------------------+ | 0 | 0 | 0 | 0 | (src) +-------------------------------+ | 255 | 255 | 255 | 255 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 336 | (v, hl, tos, len) +-------------------------------+ | 2 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0xba9b | (ttl, proto, chksum) +-------------------------------+ | 0 | 0 | 0 | 0 | (src) +-------------------------------+ | 255 | 255 | 255 | 255 | (dest) +-------------------------------+ netif->output()ip_input: iphdr->dest 0x500a8c0 netif->ip_addr 0x0 (0x0, 0x0, 0x500a8c0) ip_input: UDP packet to DHCP client port 68 ip_input: DHCP packet accepted. ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x00 | 576 | (v, hl, tos, len) +-------------------------------+ | 0 |000| 0 | (id, flags, offset) +-------------------------------+ | 64 | 17 | 0xf756 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 5 | (dest) +-------------------------------+ ip_input: p->len 576 p->tot_len 576 ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 336 | (v, hl, tos, len) +-------------------------------+ | 3 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0xba9a | (ttl, proto, chksum) +-------------------------------+ | 0 | 0 | 0 | 0 | (src) +-------------------------------+ | 255 | 255 | 255 | 255 | (dest) +-------------------------------+ netif->output()ip_input: iphdr->dest 0x500a8c0 netif->ip_addr 0x0 (0x0, 0x0, 0x500a8c0) ip_input: UDP packet to DHCP client port 68 ip_input: DHCP packet accepted. ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x00 | 576 | (v, hl, tos, len) +-------------------------------+ | 0 |000| 0 | (id, flags, offset) +-------------------------------+ | 64 | 17 | 0xf756 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 5 | (dest) +-------------------------------+ ip_input: p->len 576 p->tot_len 576 Result : 0000 IP Address is 192.168.0.5 Socket Connect - ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 4 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x6979 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 193 | 74 | 208 | 65 | (dest) +-------------------------------+ pbuf_free: p->ref > 0:627 in file /workspaces/TCPSocket_HelloWorld/src/EthernetInterface/lwip/core/pbuf.c netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 5 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x6978 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 193 | 74 | 208 | 65 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 6 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x6977 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 193 | 74 | 208 | 65 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 7 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x6976 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 193 | 74 | 208 | 65 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 8 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x5446 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 194 | 119 | 228 | 67 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 9 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x5445 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 194 | 119 | 228 | 67 | (dest) +-------------------------------+ netif->output()ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 54 | (v, hl, tos, len) +-------------------------------+ | 10 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0x5444 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 194 | 119 | 228 | 67 | (dest) +-------------------------------+ netif->output()Result : FFFFFFFF ip_output_if: en0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 336 | (v, hl, tos, len) +-------------------------------+ | 11 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 17 | 0xf9e4 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 5 | (src) +-------------------------------+ | 0 | 0 | 0 | 0 | (dest) +-------------------------------+