Rev 6220 | Rev 6907 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6220 | Rev 6475 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | ;; GNU GENERAL PUBLIC LICENSE ;; |
14 | ;; GNU GENERAL PUBLIC LICENSE ;; |
15 | ;; Version 2, June 1991 ;; |
15 | ;; Version 2, June 1991 ;; |
16 | ;; ;; |
16 | ;; ;; |
17 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
17 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 19... | Line 19... | ||
19 | $Revision: 6220 $ |
19 | $Revision: 6475 $ |
20 | 20 | ||
Line 21... | Line 21... | ||
21 | IPv4_MAX_FRAGMENTS = 64 |
21 | IPv4_MAX_FRAGMENTS = 64 |
Line 624... | Line 624... | ||
624 | ; ; |
624 | ; ; |
625 | ;------------------------------------------------------------------; |
625 | ;------------------------------------------------------------------; |
626 | align 4 |
626 | align 4 |
627 | ipv4_output: |
627 | ipv4_output: |
Line 628... | Line 628... | ||
628 | 628 | ||
Line 629... | Line 629... | ||
629 | DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_output: size=%u ip=0x%x\n", ecx, eax |
629 | DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_output: size=%u ip=0x%x\n", ecx, edi |
630 | 630 | ||
Line 631... | Line 631... | ||
631 | cmp ecx, 65500 ; Max IPv4 packet size |
631 | cmp ecx, 65500 ; Max IPv4 packet size |
Line 984... | Line 984... | ||
984 | ; Check if we should route to gateway or not |
984 | ; Check if we should route to gateway or not |
985 | mov ebx, [IP_LIST + edi] |
985 | mov ebx, [IP_LIST + edi] |
986 | and ebx, [SUBNET_LIST + edi] |
986 | and ebx, [SUBNET_LIST + edi] |
987 | mov ecx, eax |
987 | mov ecx, eax |
988 | and ecx, [SUBNET_LIST + edi] |
988 | and ecx, [SUBNET_LIST + edi] |
- | 989 | cmp ecx, ebx |
|
989 | je @f |
990 | je @f |
990 | mov eax, [GATEWAY_LIST + edi] |
991 | mov eax, [GATEWAY_LIST + edi] |
991 | @@: |
992 | @@: |
- | 993 | DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_route: %u\n", edi |
|
992 | ret |
994 | ret |
Line 993... | Line 995... | ||
993 | 995 | ||
- | 996 | .fail: |
|
994 | .fail: |
997 | DEBUGF DEBUG_NETWORK_ERROR, "IPv4_route failed\n" |
995 | xor eax, eax |
998 | xor eax, eax |