From fee4d46bd30643caabccbb7b392a80ceae7bad54 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 30 Jul 2013 21:06:03 +0000 Subject: [PATCH] Zeroconfig: fixed static IP setting git-svn-id: svn://kolibrios.org@3844 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/zeroconf/zeroconf.asm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/programs/network/zeroconf/zeroconf.asm b/programs/network/zeroconf/zeroconf.asm index ea6c148e19..0a3a21ec89 100644 --- a/programs/network/zeroconf/zeroconf.asm +++ b/programs/network/zeroconf/zeroconf.asm @@ -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