From d1415daa69fefdbbe18fcaeb00edd330af8511eb Mon Sep 17 00:00:00 2001 From: jonnosan Date: Sun, 15 Nov 2009 10:04:24 +0000 Subject: [PATCH] fixed bug with sending wrong seq number when ACKing inbound data just after sending data out git-svn-id: http://svn.code.sf.net/p/netboot65/code@221 93682198-c243-4bdb-bd91-e943c89aac3b --- client/ip65/tcp.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ip65/tcp.s b/client/ip65/tcp.s index ec2103d..49d8b71 100644 --- a/client/ip65/tcp.s +++ b/client/ip65/tcp.s @@ -1026,7 +1026,9 @@ tcp_process: sta tcp_remote_ip,x lda tcp_connect_ack_number,x sta tcp_ack_number,x - lda tcp_connect_sequence_number,x +;if we have just sent a packet out, we may not yet have updated tcp_connect_sequence_number yet +;so use current value of tcp_connect_expected_ack_number as outbound sequence number instead + lda tcp_connect_expected_ack_number,x sta tcp_sequence_number,x dex bpl :-