On Wed, 2009-02-18 at 12:01 +0000, Bandu wrote:
> 
> So suggested fix will be like,
>  
> tcphdr->ackno = htonl(pcb->rcv_nxt);
>  TCPH_FLAGS_SET(tcphdr, TCP_ACK);
>  tcphdr->wnd = htons(pcb->rcv_ann_wnd) ;
>  tcphdr->urgp = 0;
>  
> right?

Nearly:

 tcphdr->ackno = htonl(pcb->rcv_nxt);
 TCPH_FLAGS_SET(tcphdr, TCP_ACK);
 tcphdr->wnd = htons(pcb->rcv_ann_wnd + 1);
 tcphdr->urgp = 0

and the same in tcp_zero_window_probe()

Kieran



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to