Zeroconfig: fixed static IP setting

git-svn-id: svn://kolibrios.org@3844 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-07-30 21:06:03 +00:00
parent 012d01ec29
commit fee4d46bd3

View File

@ -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