Работа с сетью

KoOS network development
  • Zeroconf

    Не хватает нуля после имени файла

    Code: Select all

    path            db  '/sys/network.ini'
    И еще нужно изменить код, при обращении к api-ipv4

    Code: Select all

     mcall   76, API_IPv4 + 3, edx
    примерно на такой

    Code: Select all

            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
    Сделай шаг, и дорога появится сама собой

    Стив Джобс
  • 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
  • G@К wrote: И еще нужно изменить код, при обращении к api-ipv4

    hidnplayr wrote: I did not understand
    Zeroconf работает с network.ini IP адрес устанавливается в loopback
    Attachments
    netstat.png
    netstat.png (13.22 KiB)
    Viewed 8215 times
    Сделай шаг, и дорога появится сама собой

    Стив Джобс
  • 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
  • punk_joker wrote:Не определяется сетевуха в последней ночной сборке: Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0)
    Do you still have it? It can be made to work with latest AR81xx driver but have been unable to test.
    "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
  • Who is online

    Users browsing this forum: No registered users and 2 guests