mirror of
https://github.com/A2osX/A2osX.git
synced 2024-12-26 11:30:07 +00:00
Kernel version 0.9 : TCP, bugfix in SEQ & ACK (#2)
This commit is contained in:
parent
eafa4da73f
commit
c86aeab0c0
BIN
A2OSX.BOOT.po
BIN
A2OSX.BOOT.po
Binary file not shown.
BIN
A2OSX.SRC.po
BIN
A2OSX.SRC.po
Binary file not shown.
@ -729,7 +729,7 @@ SKT.AddDataToSktIn
|
||||
bcc .80
|
||||
inc SKT.TCBCache+S.TCB.LASTSEQ+1
|
||||
bne .80
|
||||
inc SKT.TCBCache+S.TCB.NEXTSEQ
|
||||
inc SKT.TCBCache+S.TCB.LASTSEQ
|
||||
|
||||
.80 jmp SKT.StoreTCB
|
||||
*--------------------------------------
|
||||
@ -896,7 +896,6 @@ SKT.GetDataFromSktIn
|
||||
*--------------------------------------
|
||||
SKT.AddDataToSktOut
|
||||
jsr SKT.GetTCB
|
||||
|
||||
ldx SKT.TCBCache+S.TCB.OUTFREE
|
||||
cpx ZPDataInLen
|
||||
lda SKT.TCBCache+S.TCB.OUTFREE+1
|
||||
@ -1056,13 +1055,13 @@ SKT.AckDataToSktOut
|
||||
ldx #3 Substract old ACK from socket
|
||||
|
||||
sec
|
||||
|
||||
|
||||
.1 lda (ZPFrameInPtr),y
|
||||
pha
|
||||
sbc SKT.TCBCache+S.TCB.ACKNUM,x
|
||||
sbc SKT.TCBCache+S.TCB.SEQNUM,x
|
||||
sta TmpDWord,x
|
||||
pla ....and Set ACK = new ACK
|
||||
sta SKT.TCBCache+S.TCB.ACKNUM,x
|
||||
sta SKT.TCBCache+S.TCB.SEQNUM,x
|
||||
dey
|
||||
dex
|
||||
bpl .1
|
||||
|
@ -431,7 +431,7 @@ TCP.OUT.Send ldy #S.TCP.OPTIONS
|
||||
ldx #7
|
||||
ldy #S.TCP.SEQ.NUMBER+7
|
||||
|
||||
.2 lda SKT.TCBCache+S.TCB.SEQNUM,x
|
||||
.2 lda SKT.TCBCache+S.TCB.NEXTSEQ,x
|
||||
sta (ZPFrameOutPtr),y
|
||||
dey
|
||||
dex
|
||||
|
Loading…
Reference in New Issue
Block a user