forked from KolibriOS/kolibrios
netstat: better .ini settings parsing.
git-svn-id: svn://kolibrios.org@5589 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b87cf02d06
commit
2cfbdba0b0
@ -32,16 +32,20 @@ ipcfg:
|
|||||||
invoke ini.get_str, net_ini, str_ini_int, str_ini_ip_type, ini_buf, 16, sz_0
|
invoke ini.get_str, net_ini, str_ini_int, str_ini_ip_type, ini_buf, 16, sz_0
|
||||||
; test eax, eax
|
; test eax, eax
|
||||||
; jz .disabled
|
; jz .disabled
|
||||||
cmp dword[ini_buf], 'dhcp'
|
mov eax, dword[ini_buf]
|
||||||
jne @f
|
or eax, 0x20202020
|
||||||
|
cmp eax, 'stat'
|
||||||
|
je @f
|
||||||
mov [option_ip], op_ip_auto
|
mov [option_ip], op_ip_auto
|
||||||
@@:
|
@@:
|
||||||
|
|
||||||
; Read DNS type
|
; Read DNS type
|
||||||
mov [option_dns], op_dns_static
|
mov [option_dns], op_dns_static
|
||||||
invoke ini.get_str, net_ini, str_ini_int, str_ini_dns_type, ini_buf, 16, sz_0
|
invoke ini.get_str, net_ini, str_ini_int, str_ini_dns_type, ini_buf, 16, sz_0
|
||||||
cmp dword[ini_buf], 'dhcp'
|
mov eax, dword[ini_buf]
|
||||||
jne @f
|
or eax, 0x20202020
|
||||||
|
cmp eax, 'stat'
|
||||||
|
je @f
|
||||||
mov [option_dns], op_dns_auto
|
mov [option_dns], op_dns_auto
|
||||||
@@:
|
@@:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user