Rev 9045 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9045 | Rev 9049 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | ;; GNU GENERAL PUBLIC LICENSE ;; |
19 | ;; GNU GENERAL PUBLIC LICENSE ;; |
20 | ;; Version 2, June 1991 ;; |
20 | ;; Version 2, June 1991 ;; |
21 | ;; ;; |
21 | ;; ;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 23... | Line 23... | ||
23 | 23 | ||
Line 24... | Line 24... | ||
24 | $Revision: 9045 $ |
24 | $Revision: 9049 $ |
25 | 25 | ||
26 | uglobal |
26 | uglobal |
27 | net_10ms dd ? |
27 | net_10ms dd ? |
Line 241... | Line 241... | ||
241 | include "queue.inc" |
241 | include "queue.inc" |
Line 242... | Line 242... | ||
242 | 242 | ||
243 | include "loopback.inc" |
243 | include "loopback.inc" |
Line 244... | Line 244... | ||
244 | include "ethernet.inc" |
244 | include "ethernet.inc" |
Line 245... | Line 245... | ||
245 | 245 | ||
246 | include "PPPoE.inc" |
246 | ;include "PPPoE.inc" |
247 | 247 | ||
Line 248... | Line 248... | ||
248 | include "ARP.inc" |
248 | include "ARP.inc" |
249 | include "IPv4.inc" |
249 | include "IPv4.inc" |
250 | include "IPv6.inc" |
250 | ;include "IPv6.inc" |
Line 317... | Line 317... | ||
317 | mov ecx, (NET_DEVICES_MAX + 1) |
317 | mov ecx, (NET_DEVICES_MAX + 1) |
318 | rep stosd |
318 | rep stosd |
Line 319... | Line 319... | ||
319 | 319 | ||
Line 320... | Line 320... | ||
320 | eth_init |
320 | eth_init |
Line 321... | Line 321... | ||
321 | 321 | ||
322 | pppoe_init |
322 | ; pppoe_init |
323 | 323 | ||
Line 826... | Line 826... | ||
826 | mov eax, [eax + NET_DEVICE.device_type] |
826 | mov eax, [eax + NET_DEVICE.device_type] |
827 | mov [esp+32], eax |
827 | mov [esp+32], eax |
828 | ret |
828 | ret |
Line 829... | Line 829... | ||
829 | 829 | ||
830 | .get_dev_name: |
- | |
831 | mov ebx, eax |
830 | .get_dev_name: |
832 | stdcall is_region_userspace, ecx, 64 |
831 | stdcall is_region_userspace, ecx, 64 |
833 | jnz .bad_buffer |
832 | jnz .bad_buffer |
834 | mov esi, [ebx + NET_DEVICE.name] |
833 | mov esi, [eax + NET_DEVICE.name] |
Line 835... | Line 834... | ||
835 | mov edi, ecx |
834 | mov edi, ecx |
836 | 835 | ||
Line 966... | Line 965... | ||
966 | je tcp_api |
965 | je tcp_api |
Line 967... | Line 966... | ||
967 | 966 | ||
968 | cmp ax, API_ARP |
967 | cmp ax, API_ARP |
Line 969... | Line 968... | ||
969 | je arp_api |
968 | je arp_api |
970 | 969 | ||
Line 971... | Line 970... | ||
971 | cmp ax, API_PPPOE |
970 | ; cmp ax, API_PPPOE |
972 | je pppoe_api |
971 | ; je pppoe_api |
Line 973... | Line 972... | ||
973 | 972 | ||
Line 974... | Line 973... | ||
974 | cmp ax, API_IPv6 |
973 | ; cmp ax, API_IPv6 |
975 | je ipv6_api |
974 | ; je ipv6_api |