forked from KolibriOS/kolibrios
Zeroconfig: fixed static IP setting
git-svn-id: svn://kolibrios.org@3844 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
012d01ec29
commit
fee4d46bd3
@ -172,22 +172,34 @@ START:
|
||||
invoke ini.get_str, path, str_ipconfig, str_ip, inibuf, 16, 0
|
||||
mov edx, inibuf
|
||||
call Ip2dword
|
||||
mcall 76, API_IPv4 + 3, edx
|
||||
mov ecx, edx
|
||||
mov ebx, API_IPv4 + 3 ; set IP
|
||||
mov bh, [device]
|
||||
mcall 76
|
||||
|
||||
invoke ini.get_str, path, str_ipconfig, str_gateway, inibuf, 16, 0
|
||||
mov edx, inibuf
|
||||
call Ip2dword
|
||||
mcall 76, API_IPv4 + 9, edx
|
||||
mov ecx, edx
|
||||
mov ebx, API_IPv4 + 9 ; set gateway
|
||||
mov bh, [device]
|
||||
mcall 76
|
||||
|
||||
invoke ini.get_str, path, str_ipconfig, str_dns, inibuf, 16, 0
|
||||
mov edx, inibuf
|
||||
call Ip2dword
|
||||
mcall 76, API_IPv4 + 5, edx
|
||||
mov ecx, edx
|
||||
mov ebx, API_IPv4 + 5 ; set DNS
|
||||
mov bh, [device]
|
||||
mcall 76
|
||||
|
||||
invoke ini.get_str, path, str_ipconfig, str_subnet, inibuf, 16, 0
|
||||
mov edx, inibuf
|
||||
call Ip2dword
|
||||
mcall 76, API_IPv4 + 7, edx
|
||||
mov ecx, edx
|
||||
mov ebx, API_IPv4 + 7 ; set subnet
|
||||
mov bh, [device]
|
||||
mcall 76
|
||||
|
||||
|
||||
mcall -1
|
||||
|
Loading…
Reference in New Issue
Block a user