Subversion Repositories Kolibri OS

Rev

Rev 3842 | Rev 4013 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3842 Rev 3844
Line 170... Line 170...
170
        jne     try_dhcp
170
        jne     try_dhcp
Line 171... Line 171...
171
 
171
 
172
        invoke  ini.get_str, path, str_ipconfig, str_ip, inibuf, 16, 0
172
        invoke  ini.get_str, path, str_ipconfig, str_ip, inibuf, 16, 0
173
        mov     edx, inibuf
173
        mov     edx, inibuf
-
 
174
        call    Ip2dword
174
        call    Ip2dword
175
        mov     ecx, edx
-
 
176
        mov     ebx, API_IPv4 + 3       ; set IP
-
 
177
        mov     bh, [device]
Line 175... Line 178...
175
        mcall   76, API_IPv4 + 3, edx
178
        mcall   76
176
 
179
 
177
        invoke  ini.get_str, path, str_ipconfig, str_gateway, inibuf, 16, 0
180
        invoke  ini.get_str, path, str_ipconfig, str_gateway, inibuf, 16, 0
-
 
181
        mov     edx, inibuf
178
        mov     edx, inibuf
182
        call    Ip2dword
-
 
183
        mov     ecx, edx
-
 
184
        mov     ebx, API_IPv4 + 9       ; set gateway
Line 179... Line 185...
179
        call    Ip2dword
185
        mov     bh, [device]
180
        mcall   76, API_IPv4 + 9, edx
186
        mcall   76
181
 
187
 
-
 
188
        invoke  ini.get_str, path, str_ipconfig, str_dns, inibuf, 16, 0
182
        invoke  ini.get_str, path, str_ipconfig, str_dns, inibuf, 16, 0
189
        mov     edx, inibuf
-
 
190
        call    Ip2dword
-
 
191
        mov     ecx, edx
Line 183... Line 192...
183
        mov     edx, inibuf
192
        mov     ebx, API_IPv4 + 5       ; set DNS
184
        call    Ip2dword
193
        mov     bh, [device]
185
        mcall   76, API_IPv4 + 5, edx
194
        mcall   76
-
 
195
 
186
 
196
        invoke  ini.get_str, path, str_ipconfig, str_subnet, inibuf, 16, 0
-
 
197
        mov     edx, inibuf
-
 
198
        call    Ip2dword
Line 187... Line 199...
187
        invoke  ini.get_str, path, str_ipconfig, str_subnet, inibuf, 16, 0
199
        mov     ecx, edx