Board.KolibriOS.org
http://board.kolibrios.org/

The new network stack
http://board.kolibrios.org/viewtopic.php?f=11&t=1254
Страница 5 из 5

Автор:  hidnplayr [ Пн сен 11, 2017 11:17 pm ]
Заголовок сообщения:  Re: The new network stack

Fixed in #6971

Автор:  0CodErr [ Пт фев 16, 2018 4:19 pm ]
Заголовок сообщения:  Re: The new network stack

Still have a question is it an issue or not? viewtopic.php?f=11&t=1254&p=69232#p69046 Maybe I just don't understand something?

Автор:  hidnplayr [ Сб апр 21, 2018 4:05 pm ]
Заголовок сообщения:  Re: The new network stack

0CodErr писал(а):
Код:
======================================================================
========== Function 74, Subfunction 8, Get TX byte counter. ==========
======================================================================
Parameters:
  * eax = 74 - function number
  * bl = 8 - subfunction number
  * bh = device number
Returned value:
  * eax = Number of bytes sent since device start (lower dword)
                  -1 on error
  * ebx = Number of bytes sent since device start (higher dword)
======================================================================
========== Function 74, Subfunction 9, Get RX byte counter. ==========
======================================================================
Parameters:
  * eax = 74 - function number
  * bl = 9 - subfunction number
  * bh = device number
Returned value:
  * eax = Number of bytes received since device start (lower dword)
                  -1 on error
  * ebx = Number of bytes received since device start (higher dword)
What if number of bytes is for example 0x1ffffffff?

Yes, it is an issue.

0CodErr писал(а):
Also the function below may have the same problem.
Код:
======================================================================
==== Function 76, Protocol 0 - Ethernet, Subfunction 0, Read MAC. ====
======================================================================
Parameters:
  * eax = 76 - function number
  * high half of ebx = 0 (Ethernet)
  * bh = device number
  * bl = 0 (Read MAC)
Returned value:
  * eax = -1 on error, otherwise lower bits of MAC
  * bx = upper bits of MAC


Edit: Yes, it is also an issue, fix could be to use only lower 2 bytes of EAX for MAC on success.

Автор:  0CodErr [ Сб апр 21, 2018 4:37 pm ]
Заголовок сообщения:  Re: The new network stack

hidnplayr писал(а):
upper 2 bytes of EAX will be 0 when there is no error
I don't understand why.
Since the MAC address is a 6-byte value.
According to the description of the function EAX contains lower(not higher) bits of MAC.

Автор:  hidnplayr [ Сб апр 21, 2018 5:44 pm ]
Заголовок сообщения:  Re: The new network stack

0CodErr: You are correct, I did not read my own documentation. See previous post.

Страница 5 из 5 Часовой пояс: UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/