Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3143 → Rev 3144

/kernel/branches/net/applications/ftpd/commands.inc
720,8 → 720,9
 
.next_port: ; TODO: break the endless loop
call nextpasvport
pushw [pasv_port]
popw [ebp + thread_data.datasock.sin_port]
mov ax, [pasv_port]
xchg al, ah
mov [ebp + thread_data.datasock.sin_port], ax
 
mcall bind
cmp eax, -1
/kernel/branches/net/applications/ftpd/ftpd.asm
51,6 → 51,9
format binary as ""
 
use32
 
org 0x0
 
db 'MENUET01' ; signature
dd 1 ; header version
dd start ; entry point
119,6 → 122,7
invoke con_start, 1
invoke con_init, -1, -1, -1, -1, title
 
; get settings from ini
invoke ini.get_str, path, str_ftpd, str_ip, ini_buf, 16, 0
mov esi, ini_buf
mov cl, '.'
133,6 → 137,7
invoke con_printf, str1, eax
add esp, 8
 
; open listening socket
mcall socket, AF_INET4, SOCK_STREAM, 0
cmp eax, -1
je sock_err
/kernel/branches/net/network/tcp_input.inc
243,7 → 243,7
lodsw
rol ax, 8
DEBUGF 1,"TCP_input: Maxseg=%u\n", ax
mov [ebx + TCP_SOCKET.t_maxseg], eax
call TCP_mss
@@:
jmp .opt_loop
 
/kernel/branches/net/network/tcp_subr.inc
594,3 → 594,20
pop ecx
 
ret
 
 
 
 
; eax = max segment size
; ebx = socket ptr
align 4
TCP_mss:
 
cmp eax, 1420 ; FIXME
jbe @f
mov eax, 1420
@@:
mov [ebx + TCP_SOCKET.t_maxseg], eax
 
 
ret