forked from KolibriOS/kolibrios
Merge new network stack with trunk
git-svn-id: svn://kolibrios.org@3545 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -72,54 +72,7 @@ ugui_mouse_delay_def db '0x00A',0
|
||||
udev_midibase db 'midibase',0
|
||||
udev_midibase_def db '0x320',0
|
||||
endg
|
||||
;set up netvork configuration
|
||||
proc set_network_conf
|
||||
locals
|
||||
par db 30 dup(?)
|
||||
endl
|
||||
pushad
|
||||
|
||||
;[net]
|
||||
;active
|
||||
lea eax, [par]
|
||||
invoke ini.get_int, conf_fname, unet, unet_active, 0
|
||||
or eax, eax
|
||||
jz .do_not_set_net
|
||||
mov eax, [stack_config]
|
||||
and eax, 0xFFFFFF80
|
||||
add eax, 3
|
||||
mov [stack_config], eax
|
||||
call ash_eth_enable
|
||||
|
||||
;addr
|
||||
lea eax, [par]
|
||||
push eax
|
||||
invoke ini.get_str, conf_fname, unet, unet_addr, eax, 30, unet_def
|
||||
pop eax
|
||||
stdcall do_inet_adr, eax
|
||||
mov [stack_ip], eax
|
||||
|
||||
;mask
|
||||
lea eax, [par]
|
||||
push eax
|
||||
invoke ini.get_str, conf_fname, unet, unet_mask, eax, 30, unet_def
|
||||
pop eax
|
||||
stdcall do_inet_adr, eax
|
||||
mov [subnet_mask], eax
|
||||
|
||||
;gate
|
||||
lea eax, [par]
|
||||
push eax
|
||||
invoke ini.get_str, conf_fname, unet, unet_gate, eax, 30, unet_def
|
||||
pop eax
|
||||
stdcall do_inet_adr, eax
|
||||
mov [gateway_ip], eax
|
||||
.do_not_set_net:
|
||||
popad
|
||||
ret
|
||||
|
||||
|
||||
endp
|
||||
iglobal
|
||||
if lang eq sp
|
||||
include 'core/conf_lib-sp.inc'
|
||||
|
Reference in New Issue
Block a user