lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] FIN ACK with data. Not collecting the data


From: Will Tucker
Subject: Re: [lwip-users] FIN ACK with data. Not collecting the data
Date: Thu, 8 Jul 2004 22:01:26 -0700 (PDT)

Never Mind!!!

I was closing the connection on the first callback via
tcp_recv(pcb, tcpClient_Receive);

Thanks

Will T.


--- Will Tucker <address@hidden> wrote:
> Hi,
> 
> I have a RAW TCP/IP connection Via PPP where I'm
> sending a Sensor reading to a HTTP server and
> getting
> a HTTP reply back (ACK). 
> 
> Well I can send the HTTP sensor reading and the HTTP
> server sends me back a reply but some how lwip is
> not
> picking up the data that is attached to the servers
> FIN ACK 
> 
> See below.
> Any Ideas Why?
> 
> Thanks 
> 
> Will
> 
> 
> ******************SENT: GLUCOSE
> READING***************
> 
> tcp_output_segment: 6512:6667
> ip_output_if:   0
> IP header:
> +-------------------------------+
> | 4 | 5 |  0x00 |       195     | (v, hl, tos, len)
> +-------------------------------+
> |        1      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  255  |    6  |    0x83fb     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (src)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (dest)
> +-------------------------------+
> netif->output()netif: send ptr 0012EFB8 q->payload
> 0042BB96 q->len 40 q->next 00
> 4318AC
> netif: send ptr 0012EFE0 q->payload 00434288 q->len
> 155 q->next 00000000
> tcp_output: nothing to send (00000000)
> netif: recv length 41 p->tot_len 41
> netif: recv start 0 length 41 q->payload 0042E3A0
> q->len 41 q->next 00000000
> ip_input: iphdr->dest 0xca460443 netif->ip_addr
> 0xca460443 (0x460443, 0x460443,
> 0xca000000)
> ip_input: packet accepted on interface
> ip_input:
> IP header:
> +-------------------------------+
> | 4 | 5 |  0x00 |        40     | (v, hl, tos, len)
> +-------------------------------+
> |    22335      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  122  |    6  |    0xb258     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (src)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (dest)
> +-------------------------------+
> ip_input: p->len 40 p->tot_len 40
> +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags
> -+-+-+-+-+-+-+-+-+-+-+-+-+-+
> tcp_receive: ACK for 6667, unacked->seqno 6512:6667
> tcp_receive: removing 6512:6667 from pcb->unacked
> tcp_output: nothing to send (00000000)
> tcp_output: nothing to send (00000000)
> netif: recv length 218 p->tot_len 218
> netif: recv start 0 length 218 q->payload 0042E3A0
> q->len 218 q->next 00000000
> ip_input: iphdr->dest 0xca460443 netif->ip_addr
> 0xca460443 (0x460443, 0x460443,
> 0xca000000)
> ip_input: packet accepted on interface
> ip_input:
> IP header:
> +-------------------------------+
> | 4 | 5 |  0x00 |       217     | (v, hl, tos, len)
> +-------------------------------+
> |    22502      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  122  |    6  |    0xb100     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (src)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (dest)
> +-------------------------------+
> ip_input: p->len 217 p->tot_len 217
> +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags
> -+-+-+-+-+-+-+-+-+-+-+-+-+-+
> tcp_enqueue(pcb=00431AFC, arg=00000000, len=0,
> flags=1, copy=1)
> tcp_enqueue: queueing 6667:6668 (0x1)
> tcp_output_segment: 6667:6667
> ip_output_if:   0
> IP header:
> +-------------------------------+
> | 4 | 5 |  0x00 |        40     | (v, hl, tos, len)
> +-------------------------------+
> |        2      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  255  |    6  |    0x8495     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (src)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (dest)
> +-------------------------------+
> netif->output()netif: send ptr 0012E70C q->payload
> 0042BB96 q->len 40 q->next 00
> 000000
> tcp_output: nothing to send (00000000)
> tcp_output: nothing to send (00000000)
> netif: recv length 56 p->tot_len 56
> netif: recv start 0 length 56 q->payload 0042E3A0
> q->len 56 q->next 00000000
> ip_input: iphdr->dest 0xca460443 netif->ip_addr
> 0xca460443 (0x460443, 0x460443,
> 0xca000000)
> ip_input: packet accepted on interface
> ip_input:
> IP header:
> 
> <****THIS IS THE PACKET WITH THE DATA****>
> 
> +-------------------------------+
> | 4 | 5 |  0x00 |        55     | (v, hl, tos, len)
> +-------------------------------+
> |    22503      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  122  |    6  |    0xb1a1     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (src)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (dest)
> +-------------------------------+
> ip_input: p->len 55 p->tot_len 55
> +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags
> -+-+-+-+-+-+-+-+-+-+-+-+-+-+
> tcp_receive: received FIN.
> tcp_output: sending ACK for 4102618528
> ip_output_if:   0
> IP header:
> +-------------------------------+
> | 4 | 5 |  0x00 |        40     | (v, hl, tos, len)
> +-------------------------------+
> |        3      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  255  |    6  |    0x8494     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (src)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (dest)
> +-------------------------------+
> netif->output()netif: send ptr 0012F0B0 q->payload
> 0042BBE4 q->len 40 q->next 00
> 000000
> tcp_output: nothing to send (00000000)
> netif: recv length 41 p->tot_len 41
> netif: recv start 0 length 41 q->payload 0042E3A0
> q->len 41 q->next 00000000
> ip_input: iphdr->dest 0xca460443 netif->ip_addr
> 0xca460443 (0x460443, 0x460443,
> 0xca000000)
> ip_input: packet accepted on interface
> ip_input:
> IP header:
> +-------------------------------+
> | 4 | 5 |  0x00 |        40     | (v, hl, tos, len)
> +-------------------------------+
> |    22505      |010|       0   | (id, flags,
> offset)
> +-------------------------------+
> |  122  |    6  |    0xb1ae     | (ttl, proto,
> chksum)
> +-------------------------------+
> |   67  |   45  |   42  |   66  | (src)
> +-------------------------------+
> |   67  |    4  |   70  |  202  | (dest)
> +-------------------------------+
> ip_input: p->len 40 p->tot_len 40
> +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags
> -+-+-+-+-+-+-+-+-+-+-+-+-+-+
> tcp_receive: ACK for 6668, unacked->seqno 6667:6668
> tcp_receive: removing 6667:6668 from pcb->unacked
> tcp_output: sending ACK for 4102618528
> 
=== message truncated ===





reply via email to

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