mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-09-08 21:54:28 +00:00
tcp_listen was very busted (was sending a bogus sequence number in the initial SYN/ACK packet, so subsequent data transmissions never properly acknowledged by remote host)
git-svn-id: http://svn.code.sf.net/p/netboot65/code@250 93682198-c243-4bdb-bd91-e943c89aac3b
This commit is contained in:
parent
d2ce1b1765
commit
8c0e0b0f0e
@ -178,6 +178,7 @@ tcp_listen:
|
|||||||
sta tcp_connect_sequence_number+1
|
sta tcp_connect_sequence_number+1
|
||||||
jsr ip65_random_word
|
jsr ip65_random_word
|
||||||
stax tcp_connect_sequence_number+2
|
stax tcp_connect_sequence_number+2
|
||||||
|
jsr set_expected_ack; ;due to various ugly hacks, the 'expected ack' value is now what is put into the 'SEQ' field in outbound packets
|
||||||
@listen_loop:
|
@listen_loop:
|
||||||
jsr ip65_process
|
jsr ip65_process
|
||||||
jsr check_for_abort_key
|
jsr check_for_abort_key
|
||||||
@ -287,6 +288,7 @@ tcp_connection_established:
|
|||||||
ldax #$01
|
ldax #$01
|
||||||
jsr add_16_32
|
jsr add_16_32
|
||||||
|
|
||||||
|
set_expected_ack:
|
||||||
;set the expected ack number with current seq number
|
;set the expected ack number with current seq number
|
||||||
ldx #3 ;
|
ldx #3 ;
|
||||||
: lda tcp_connect_sequence_number,x
|
: lda tcp_connect_sequence_number,x
|
||||||
|
Loading…
Reference in New Issue
Block a user