Subversion Repositories Kolibri OS

Rev

Rev 6916 | Rev 7679 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6916 Rev 7678
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2019. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
5
;;                                                                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;   Written by hidnplayr@kolibrios.org,                           ;;
8
;;   Written by hidnplayr@kolibrios.org,                           ;;
Line 13... Line 13...
13
;;         GNU GENERAL PUBLIC LICENSE                              ;;
13
;;         GNU GENERAL PUBLIC LICENSE                              ;;
14
;;          Version 2, June 1991                                   ;;
14
;;          Version 2, June 1991                                   ;;
15
;;                                                                 ;;
15
;;                                                                 ;;
16
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 17... Line 17...
17
 
17
 
Line 18... Line 18...
18
$Revision: 6916 $
18
$Revision: 7678 $
Line 19... Line 19...
19
 
19
 
20
struct  SOCKET
20
struct  SOCKET
Line 598... Line 598...
598
        cmp     [eax + TCP_SOCKET.LocalPort], 0
598
        cmp     [eax + TCP_SOCKET.LocalPort], 0
599
        je      .already
599
        je      .already
Line 600... Line 600...
600
 
600
 
601
        cmp     [eax + IP_SOCKET.LocalIP], 0
601
        cmp     [eax + IP_SOCKET.LocalIP], 0
602
        jne     @f
602
        jne     @f
603
        push    [IP_LIST + 4]           ;;; fixme!!!!
603
        push    [IPv4_address + 4]           ;;; fixme!!!!
604
        pop     [eax + IP_SOCKET.LocalIP]
604
        pop     [eax + IP_SOCKET.LocalIP]
Line 605... Line 605...
605
       @@:
605
       @@:
606
 
606
 
Line 1226... Line 1226...
1226
 
1226
 
1227
        movzx   edx, byte[edx + socket_options.optval]
1227
        movzx   edx, byte[edx + socket_options.optval]
1228
        cmp     edx, NET_DEVICES_MAX
1228
        cmp     edx, NET_DEVICES_MAX
Line 1229... Line 1229...
1229
        ja      .invalid
1229
        ja      .invalid
1230
 
1230
 
1231
        mov     edx, [NET_DRV_LIST + 4*edx]
1231
        mov     edx, [net_drv_list + 4*edx]
1232
        test    edx, edx
1232
        test    edx, edx
Line 1233... Line 1233...
1233
        jz      .already
1233
        jz      .already