SIOCSIFADDR: Permission denied SIOCSIFFLAGS: Permission denied Host at 192.168.0.2 mask 255.255.255.0 gateway 192.168.0.1 System initialized. TCP/IP initialized. netif_set_ipaddr: netif address being changed netif: IP address of interface set to 192.168.0.2 netif: netmask of interface set to 255.255.255.0 netif: GW address of interface set to 192.168.0.1 tapif_init: fd 3 tapif_init: system("/sbin/ifconfig tap0 inet 192.168.0.1"); netif: added interface tp IP addr 192.168.0.2 netmask 255.255.255.0 gw 192.168.0.1 netif: setting default interface tp tcpip_thread: API message 0x439ab030 tcpip_thread: API message 0x439ab030 tcp_bind: bind to port 7 tcpip_thread: API message 0x439ab040 tcpip_thread: API message 0x40d28050 tcpip_thread: API message 0x40d28050 tcp_bind: bind to port 23 tcpip_thread: API message 0x40d28060 tcp_bind: bind to port 80 tcpip_thread: API message 0x443ab060 tcpip_thread: API message 0x443ab060 udp_bind(ipaddr = 0.0.0.0, port = 7) udp_bind: bound to 0.0.0.0, port 7 Applications started. tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x10 | 60 | (v, hl, tos, len) +-------------------------------+ | 11040 |010| 0 | (id, flags, offset) +-------------------------------+ | 64 | 6 | 0x8e38 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 60 p->tot_len 60 TCP header: +-------------------------------+ | 38614 | 23 | (src port, dest port) +-------------------------------+ | 0869167205 | (seq no) +-------------------------------+ | 0000000000 | (ack no) +-------------------------------+ | 10 | |000010| 5840 | (hdrlen, flags (SYN ), win) +-------------------------------+ | 0x1610 | 0 | (chksum, urgp) +-------------------------------+ tcp_input: packed for LISTENing connection. TCP connection request 38614 -> 23. tcp_enqueue(pcb=0x6298f0, arg=(nil), len=0, flags=12, apiflags=0) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 6510:6511 (0x12) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 5840, cwnd 1, wnd 1, effwnd 0, seq 6510, ack 6510 tcp_output: snd_wnd 5840, cwnd 1, wnd 1, effwnd 0, seq 6510, ack 6510, i 0 tcp_output_segment: rtseq 6510 tcp_output_segment: 6510:6510 ip_output_if: tp0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 44 | (v, hl, tos, len) +-------------------------------+ | 0 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 6 | 0x3a78 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 2 | (src) +-------------------------------+ | 192 | 168 | 0 | 1 | (dest) +-------------------------------+ netif->output()tapif_input: ARP packet tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x10 | 40 | (v, hl, tos, len) +-------------------------------+ | 11041 |010| 0 | (id, flags, offset) +-------------------------------+ | 64 | 6 | 0x8e4b | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 40 p->tot_len 40 TCP header: +-------------------------------+ | 38614 | 23 | (src port, dest port) +-------------------------------+ | 0869167206 | (seq no) +-------------------------------+ | 0000006511 | (ack no) +-------------------------------+ | 5 | |010000| 5840 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0xc31f | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: SYN_RCVD TCP connection established 38614 -> 23. State: ESTABLISHED tcp_receive: window update 5840 tcp_receive: slow start cwnd 1025 tcp_receive: ACK for 6511, unacked->seqno 6510:6511 tcp_receive: removing 6510:6511 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 0 rtseq 6510 ackno 6511 tcp_output: nothing to send ((nil)) tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, seg == NULL, ack 6511 State: ESTABLISHED tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x10 | 67 | (v, hl, tos, len) +-------------------------------+ | 11042 |010| 0 | (id, flags, offset) +-------------------------------+ | 64 | 6 | 0x8e2f | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 67 p->tot_len 67 TCP header: +-------------------------------+ | 38614 | 23 | (src port, dest port) +-------------------------------+ | 0869167206 | (seq no) +-------------------------------+ | 0000006511 | (ack no) +-------------------------------+ | 5 | |011000| 5840 | (hdrlen, flags (PSH ACK ), win) +-------------------------------+ | 0x43af | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags PSH ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: pcb->rttest 0 rtseq 6510 ackno 6511 tcp_output: nothing to send ((nil)) tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, seg == NULL, ack 6511 State: ESTABLISHED tcpip_thread: API message 0x40d27fa0 tcp_output: sending ACK for 869167233 ip_output_if: tp0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 40 | (v, hl, tos, len) +-------------------------------+ | 1 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 6 | 0x3a7b | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 2 | (src) +-------------------------------+ | 192 | 168 | 0 | 1 | (dest) +-------------------------------+ netif->output()tcp_recved: recveived 27 bytes, wnd 8096 (0). netconn_recv: received 0x629fc0 (err 0) tcpip_thread: API message 0x40d27f90 tcp_write(pcb=0x6298f0, data=0x41dab8, len=151, apiflags=0) tcp_enqueue(pcb=0x6298f0, arg=0x41dab8, len=151, flags=0, apiflags=0) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 6511:6662 (0x0) tcp_enqueue: 2 (after enqueued) tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, effwnd 151, seq 6511, ack 6511 tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, effwnd 151, seq 6511, ack 6511, i 0 tcp_output_segment: rtseq 6511 tcp_output_segment: 6511:6662 ip_output_if: tp0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 191 | (v, hl, tos, len) +-------------------------------+ | 2 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 6 | 0x39e3 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 2 | (src) +-------------------------------+ | 192 | 168 | 0 | 1 | (dest) +-------------------------------+ netif->output()tcpip_thread: API message 0x40d27f70 tcp_write(pcb=0x6298f0, data=0x41daa8, len=2, apiflags=0) tcp_enqueue(pcb=0x6298f0, arg=0x41daa8, len=2, flags=0, apiflags=0) tcp_enqueue: queuelen: 2 tcp_enqueue: queueing 6662:6664 (0x0) tcp_enqueue: 4 (after enqueued) tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x10 | 40 | (v, hl, tos, len) +-------------------------------+ | 11043 |010| 0 | (id, flags, offset) +-------------------------------+ | 64 | 6 | 0x8e49 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 40 p->tot_len 40 TCP header: +-------------------------------+ | 38614 | 23 | (src port, dest port) +-------------------------------+ | 0869167233 | (seq no) +-------------------------------+ | 0000006662 | (ack no) +-------------------------------+ | 5 | |010000| 6432 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0xc01d | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 6432 tcp_receive: slow start cwnd 3072 tcp_receive: ACK for 6662, unacked->seqno 6511:6662 tcp_receive: removing 6511:6662 from pcb->unacked tcp_receive: queuelen 4 ... 2 (after freeing unacked) tcp_receive: pcb->rttest 0 rtseq 6511 ackno 6662 tcp_output: snd_wnd 6432, cwnd 3072, wnd 3072, effwnd 2, seq 6662, ack 6662 tcp_output: snd_wnd 6432, cwnd 3072, wnd 3072, effwnd 2, seq 6662, ack 6662, i 0 tcp_output_segment: rtseq 6662 tcp_output_segment: 6662:6664 ip_output_if: tp0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 42 | (v, hl, tos, len) +-------------------------------+ | 3 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 6 | 0x3a77 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 2 | (src) +-------------------------------+ | 192 | 168 | 0 | 1 | (dest) +-------------------------------+ netif->output()State: ESTABLISHED tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x10 | 40 | (v, hl, tos, len) +-------------------------------+ | 11044 |010| 0 | (id, flags, offset) +-------------------------------+ | 64 | 6 | 0x8e48 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 40 p->tot_len 40 TCP header: +-------------------------------+ | 38614 | 23 | (src port, dest port) +-------------------------------+ | 0869167233 | (seq no) +-------------------------------+ | 0000006664 | (ack no) +-------------------------------+ | 5 | |010000| 6432 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0xc01b | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 6432 tcp_receive: slow start cwnd 4096 tcp_receive: ACK for 6664, unacked->seqno 6662:6664 tcp_receive: removing 6662:6664 from pcb->unacked tcp_receive: queuelen 2 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 0 rtseq 6662 ackno 6664 tcp_output: nothing to send ((nil)) tcp_output: snd_wnd 6432, cwnd 4096, wnd 4096, seg == NULL, ack 6664 State: ESTABLISHED tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0x10 | 46 | (v, hl, tos, len) +-------------------------------+ | 11045 |010| 0 | (id, flags, offset) +-------------------------------+ | 64 | 6 | 0x8e41 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 46 p->tot_len 46 TCP header: +-------------------------------+ | 38614 | 23 | (src port, dest port) +-------------------------------+ | 0869167233 | (seq no) +-------------------------------+ | 0000006664 | (ack no) +-------------------------------+ | 5 | |011000| 6432 | (hdrlen, flags (PSH ACK ), win) +-------------------------------+ | 0xd819 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags PSH ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: pcb->rttest 0 rtseq 6662 ackno 6664 tcp_output: nothing to send ((nil)) tcp_output: snd_wnd 6432, cwnd 4096, wnd 4096, seg == NULL, ack 6664 State: ESTABLISHED tcpip_thread: API message 0x40d27fa0 tcp_output: sending ACK for 869167239 ip_output_if: tp0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 40 | (v, hl, tos, len) +-------------------------------+ | 4 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 6 | 0x3a78 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 2 | (src) +-------------------------------+ | 192 | 168 | 0 | 1 | (dest) +-------------------------------+ netif->output()tcp_recved: recveived 6 bytes, wnd 8096 (0). netconn_recv: received 0x629fc0 (err 0) quit Closed tcpip_thread: API message 0x40d27fc0 tcp_close: closing in State: ESTABLISHED tcp_enqueue(pcb=0x6298f0, arg=(nil), len=0, flags=1, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 6664:6665 (0x1) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 6432, cwnd 4096, wnd 4096, effwnd 0, seq 6664, ack 6664 tcp_output: snd_wnd 6432, cwnd 4096, wnd 4096, effwnd 0, seq 6664, ack 6664, i 0 tcp_output_segment: rtseq 6664 tcp_output_segment: 6664:6664 ip_output_if: tp0 IP header: +-------------------------------+ | 4 | 5 | 0x00 | 40 | (v, hl, tos, len) +-------------------------------+ | 5 |000| 0 | (id, flags, offset) +-------------------------------+ | 255 | 6 | 0x3a77 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 2 | (src) +-------------------------------+ | 192 | 168 | 0 | 1 | (dest) +-------------------------------+ netif->output()tapif_input: IP packet tcpip_thread: PACKET 0x62a7d8 ip_input: iphdr->dest 0x200a8c0 netif->ip_addr 0x200a8c0 (0xa8c0, 0xa8c0, 0x2000000) ip_input: packet accepted on interface tp ip_input: IP header: +-------------------------------+ | 4 | 5 | 0xc0 | 68 | (v, hl, tos, len) +-------------------------------+ | 17935 |000| 0 | (id, flags, offset) +-------------------------------+ | 64 | 1 | 0xb296 | (ttl, proto, chksum) +-------------------------------+ | 192 | 168 | 0 | 1 | (src) +-------------------------------+ | 192 | 168 | 0 | 2 | (dest) +-------------------------------+ ip_input: p->len 68 p->tot_len 68 icmp_input: ICMP type 3 code 10 not supported. tcpip_thread: API message 0x40d28060 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: polling application tcp_output: nothing to send ((nil)) tcp_output: snd_wnd 6432, cwnd 4096, wnd 4096, seg == NULL, ack 6664 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: rtime 6 pcb->rto 6 tcp_slowtmr: cwnd 1024 ssthresh 2048 tcp_output: snd_wnd 6432, cwnd 1024, wnd 1024, effwnd 0, seq 6664, ack 6664 tcp_output: snd_wnd 6432, cwnd 102