Board.KolibriOS.org

Official KolibriOS board
It is currently Tue Jan 21, 2020 3:21 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 35 posts ]  Go to page Previous 1 2 3
Author Message
PostPosted: Mon Jul 15, 2013 10:43 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
G@К wrote:
Привет
Не нашел как настроить IP вручную для сети (роутер не назначает ip адрес, возможно не работает DHCP)


It needs to be set in network.ini
In the future, netstat should also be able to do it.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Mon Jul 29, 2013 8:27 am 
Offline

Joined: Tue Apr 16, 2013 10:22 am
Posts: 9
Zeroconf

Не хватает нуля после имени файла
Code:
path            db  '/sys/network.ini'


И еще нужно изменить код, при обращении к api-ipv4
Code:
 mcall   76, API_IPv4 + 3, edx

примерно на такой
Code:
        mov     ebx , API_IPv4+3
        mov     bh, [device]
        mcall   76, , edx

        invoke  ini.get_str, path, str_ipconfig, str_gateway, inibuf, 16, 0
        mov     edx, inibuf
        call    Ip2dword

        mov     ebx , API_IPv4+9
        mov     bh, [device]
        mcall   76, , edx

        invoke  ini.get_str, path, str_ipconfig, str_dns, inibuf, 16, 0
        mov     edx, inibuf
        call    Ip2dword

        mov     ebx , API_IPv4+5
        mov     bh, [device]
        mcall   76, , edx

        invoke  ini.get_str, path, str_ipconfig, str_subnet, inibuf, 16, 0
        mov     edx, inibuf
        call    Ip2dword

        mov     ebx , API_IPv4+7
        mov     bh, [device]
        mcall   76, API_IPv4 + 7, edx

_________________
Сделай шаг, и дорога появится сама собой

Стив Джобс


Top
   
PostPosted: Mon Jul 29, 2013 9:17 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
G@К: The first error should be fixed now, the second, I did not understand, sorry :)

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Tue Jul 30, 2013 11:27 pm 
Offline

Joined: Tue Apr 16, 2013 10:22 am
Posts: 9
G@К wrote:
И еще нужно изменить код, при обращении к api-ipv4


hidnplayr wrote:
I did not understand


Zeroconf работает с network.ini IP адрес устанавливается в loopback


Attachments:
netstat.png
netstat.png [ 13.22 KiB | Viewed 1912 times ]

_________________
Сделай шаг, и дорога появится сама собой

Стив Джобс
Top
   
PostPosted: Wed Jul 31, 2013 12:07 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Ok, should be fixed now

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 35 posts ]  Go to page Previous 1 2 3

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited