Some changes in TCP for net branch:

* listening sockets have now a queue of incoming connections
* a mechanism which allows an application to know when sent packet is ACKed
* some fixes


git-svn-id: svn://kolibrios.org@1256 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse
2009-11-09 11:34:51 +00:00
parent 30373c2ee1
commit 1f42f20b6f
3 changed files with 113 additions and 51 deletions

View File

@@ -77,23 +77,23 @@ TH_URG equ 1 shl 5
macro inc_INET reg {
inc byte [reg + 3]
add byte [reg + 3], 1
adc byte [reg + 2], 0
adc byte [reg + 1], 0
adc byte [reg + 0], 0
adc byte [reg], 0
}
macro add_INET reg {
add byte [reg + 3], cl
adc byte [reg + 2], ch
adc byte [reg + 1], 0
adc byte [reg], 0
rol ecx, 16
adc byte [reg + 3], ch
adc byte [reg + 2], cl
add byte [reg + 1], cl
adc byte [reg], ch
rol ecx, 16
adc byte [reg + 1], ch
adc byte [reg + 0], cl
}
include "queue.inc"
@@ -389,4 +389,4 @@ sys_protocols:
.return:
mov [esp+28+4], eax
ret
ret