/kernel/trunk/network/IPv4.inc |
---|
922,10 → 922,10 |
align 4 |
IPv4_connect: |
pusha |
push eax edx |
lea ecx, [eax + SOCKET.mutex] |
call mutex_lock |
popa |
pop edx eax |
; Fill in local IP |
cmp [eax + IP_SOCKET.LocalIP], 0 |
937,8 → 937,9 |
pushd [edx + 4] |
pop [eax + IP_SOCKET.RemoteIP] |
; Set up data receiving queue |
push eax |
init_queue (eax + SOCKET_QUEUE_LOCATION) ; Set up data receiving queue |
init_queue (eax + SOCKET_QUEUE_LOCATION) |
pop eax |
lea ecx, [eax + SOCKET.mutex] |
/kernel/trunk/network/tcp_usreq.inc |
---|
89,10 → 89,10 |
test [eax + SOCKET.state], SS_ISCONNECTED |
jnz .eisconn |
push eax |
push eax edx |
lea ecx, [eax + SOCKET.mutex] |
call mutex_lock |
pop eax |
pop edx eax |
; Fill in local IP |
cmp [eax + IP_SOCKET.LocalIP], 0 |
/kernel/trunk/network/udp.inc |
---|
327,10 → 327,10 |
call UDP_disconnect |
@@: |
push eax |
push eax edx |
lea ecx, [eax + SOCKET.mutex] |
call mutex_lock |
pop eax |
pop edx eax |
; Fill in local IP |
cmp [eax + IP_SOCKET.LocalIP], 0 |