Subversion Repositories Kolibri OS

Rev

Rev 6240 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6240 Rev 6246
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2016. 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
;;  IPv4.INC                                                       ;;
6
;;  IPv4.INC                                                       ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
8
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
Line 937... Line 937...
937
ipv4_route:
937
ipv4_route:
Line 938... Line 938...
938
 
938
 
939
        test    ebx, ebx
939
        test    ebx, ebx
Line -... Line 940...
-
 
940
        jnz     .got_device
940
        jnz     .got_device
941
 
941
 
942
; Broadcast does not need gateway
Line 942... Line 943...
942
        cmp     eax, 0xffffffff
943
        cmp     eax, 0xffffffff
943
        je      .broadcast
944
        je      .broadcast
Line 974... Line 975...
974
        cmp     edi, -1
975
        cmp     edi, -1
975
        je      .fail
976
        je      .fail
Line 976... Line 977...
976
 
977
 
Line -... Line 978...
-
 
978
        mov     edx, [IP_LIST + edi]            ; Source IP
-
 
979
 
-
 
980
; Broadcast does not need gateway
-
 
981
        cmp     eax, 0xffffffff
977
        mov     edx, [IP_LIST + edi]            ; Source IP
982
        je      @f
978
 
983
 
979
; Check if we should route to gateway or not
984
; Check if we should route to gateway or not
980
        mov     ebx, [IP_LIST + edi]
985
        mov     ebx, [IP_LIST + edi]
981
        and     ebx, [SUBNET_LIST + edi]
986
        and     ebx, [SUBNET_LIST + edi]