forked from KolibriOS/kolibrios
Updated network system functions documentation.
git-svn-id: svn://kolibrios.org@5871 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
5a795de357
commit
804055638d
@ -3952,11 +3952,11 @@ Returned value:
|
||||
* function does not return value
|
||||
|
||||
======================================================================
|
||||
= Function 74, Subfunction -1, Get number of active network devices. =
|
||||
= Function 74, Subfunction 255, Get number of active network devices. =
|
||||
======================================================================
|
||||
Parameters:
|
||||
* eax = 74 - function number
|
||||
* bl = -1 - subfunction number
|
||||
* bl = 255 - subfunction number
|
||||
Returned value:
|
||||
* eax = number of active network devices
|
||||
|
||||
@ -3968,7 +3968,7 @@ Parameters:
|
||||
* bl = 0 - subfunction number
|
||||
* bh = device number
|
||||
Returned value:
|
||||
* eax = device type
|
||||
* eax = device type number
|
||||
|
||||
======================================================================
|
||||
======== Function 74, Subfunction 1, Get network device name. ========
|
||||
@ -4002,6 +4002,78 @@ Parameters:
|
||||
Returned value:
|
||||
* eax = -1 on error
|
||||
|
||||
======================================================================
|
||||
=========== Function 74, Subfunction 4, Get device pointer. ==========
|
||||
======================================================================
|
||||
Parameters:
|
||||
* eax = 74 - function number
|
||||
* bl = 4 - subfunction number
|
||||
* bh = device number
|
||||
Returned value:
|
||||
* eax = device pointer, -1 on error
|
||||
|
||||
======================================================================
|
||||
========= Function 74, Subfunction 6, Get packet TX counter. =========
|
||||
======================================================================
|
||||
Parameters:
|
||||
* eax = 74 - function number
|
||||
* bl = 6 - subfunction number
|
||||
* bh = device number
|
||||
Returned value:
|
||||
* eax = Number of packets sent since device start, -1 on error
|
||||
|
||||
======================================================================
|
||||
========= Function 74, Subfunction 7, Get packet RX counter. =========
|
||||
======================================================================
|
||||
Parameters:
|
||||
* eax = 74 - function number
|
||||
* bl = 7 - subfunction number
|
||||
* bh = device number
|
||||
Returned value:
|
||||
* eax = Number of packets received since device start, -1 on error
|
||||
|
||||
======================================================================
|
||||
========== 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)
|
||||
|
||||
======================================================================
|
||||
========== Function 74, Subfunction 10, Get link status. =============
|
||||
======================================================================
|
||||
Parameters:
|
||||
* eax = 74 - function number
|
||||
* bl = 10 - subfunction number
|
||||
* bh = device number
|
||||
Returned value:
|
||||
* eax = link status, -1 on error
|
||||
|
||||
Link status:
|
||||
ETH_LINK_DOWN = 0b ; Link is down
|
||||
ETH_LINK_UNKNOWN= 1b ; There could be an active link
|
||||
ETH_LINK_FD = 10b ; full duplex flag
|
||||
ETH_LINK_10M = 100b ; 10 mbit
|
||||
ETH_LINK_100M = 1000b ; 100 mbit
|
||||
ETH_LINK_1G = 1100b ; gigabit
|
||||
|
||||
======================================================================
|
||||
============== Function 75, Subfunction 0, Open socket. ==============
|
||||
======================================================================
|
||||
@ -4118,7 +4190,8 @@ Returned value:
|
||||
* ebx = errorcode
|
||||
Remarks:
|
||||
|
||||
Optstruct: dd level
|
||||
Optstruct:
|
||||
dd level
|
||||
dd optionname
|
||||
dd optlength
|
||||
db options...
|
||||
@ -4136,7 +4209,8 @@ Returned value:
|
||||
* ebx = errorcode
|
||||
Remarks:
|
||||
|
||||
Optstruct: dd level
|
||||
Optstruct:
|
||||
dd level
|
||||
dd optionname
|
||||
dd optlength
|
||||
db options...
|
||||
@ -4151,6 +4225,53 @@ Returned value:
|
||||
* eax = socketnum1, -1 on error
|
||||
* ebx = socketnum2, errorcode on error
|
||||
|
||||
======================================================================
|
||||
============ Function 76, Network options and statistics. ============
|
||||
======================================================================
|
||||
Parameters:
|
||||
* eax = 76 - function number
|
||||
* high half of ebx = protocol number
|
||||
* bh = device number
|
||||
* bl = subfunction number
|
||||
|
||||
Ethernet (0)
|
||||
0 - Read MAC
|
||||
|
||||
IPv4 (1)
|
||||
0 - Read # IP packets send
|
||||
1 - Read # IP packets received
|
||||
2 - Read IP
|
||||
3 - Write IP
|
||||
4 - Read DNS
|
||||
5 - Write DNS
|
||||
6 - Read subnet
|
||||
7 - Write subnet
|
||||
8 - Read gateway
|
||||
9 - Write gateway
|
||||
|
||||
ICMP (2)
|
||||
0 - Read # ICMP packets send
|
||||
1 - Read # ICMP packets received
|
||||
3 - enable/disable ICMP echo reply
|
||||
|
||||
UDP (3)
|
||||
0 - Read # UDP packets send
|
||||
1 - Read # UDP packets received
|
||||
|
||||
TCP (4)
|
||||
0 - Read # TCP packets send
|
||||
1 - Read # TCP packets received
|
||||
|
||||
ARP (5)
|
||||
0 - Read # ARP packets send
|
||||
1 - Read # ARP packets received
|
||||
2 - Read # ARP entry's
|
||||
3 - Read ARP entry
|
||||
4 - Add static ARP entry
|
||||
5 - Remove ARP entry (-1 = remove all)
|
||||
6 - Send ARP announce on specified interface
|
||||
7 - Read # ARP conflicts (IP address conflicts)
|
||||
|
||||
======================================================================
|
||||
=============== Function -1 - terminate thread/process ===============
|
||||
======================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user