zero local port for socket open means choosing by the kernel

git-svn-id: svn://kolibrios.org@1154 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse
2009-09-09 11:31:04 +00:00
parent d867ba0459
commit 257b31bb6d
4 changed files with 138 additions and 27 deletions

View File

@@ -554,6 +554,13 @@ high_code:
mov [SLOT_BASE + 256 + APPDATA.dir_table], sys_pgdir - OS_BASE
stdcall kernel_alloc, 0x10000/8
mov edi, eax
mov [network_free_ports], eax
or eax, -1
mov ecx, 0x10000/32
rep stosd
; REDIRECT ALL IRQ'S TO INT'S 0x20-0x2f
call rerouteirqs