Subversion Repositories Kolibri OS

Rev

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

Rev 7722 Rev 7915
Line 4418... Line 4418...
4418
Parameters:
4418
Parameters:
4419
  * eax = 74 - function number
4419
  * eax = 74 - function number
4420
  * bl = 0 - subfunction number
4420
  * bl = 0 - subfunction number
4421
  * bh = device number
4421
  * bh = device number
4422
Returned value:
4422
Returned value:
4423
  * eax = device type number
4423
  * eax = device type number, -1 on error
Line 4424... Line 4424...
4424
 
4424
 
4425
---------------------- Constants for registers: ----------------------
4425
---------------------- Constants for registers: ----------------------
4426
  eax - SF_NETWORK_GET (74)
4426
  eax - SF_NETWORK_GET (74)
4427
   bl - SSF_DEVICE_TYPE (0)
4427
   bl - SSF_DEVICE_TYPE (0)
Line 4854... Line 4854...
4854
======================================================================
4854
======================================================================
4855
Parameters:
4855
Parameters:
4856
  * eax = 76 - function number
4856
  * eax = 76 - function number
4857
  * high half of ebx = 1 (IPv4)
4857
  * high half of ebx = 1 (IPv4)
4858
  * bh = device number
4858
  * bh = device number
4859
  * bl = 7 (Set DNS address)
4859
  * bl = 7 (Set subnet mask)
4860
  * ecx = subnet mask
4860
  * ecx = subnet mask
4861
Returned value:
4861
Returned value:
4862
  * eax = -1 on error
4862
  * eax = -1 on error
Line 4863... Line 4863...
4863
 
4863
 
Line 4994... Line 4994...
4994
  * ecx = ARP entry number (0 based)
4994
  * ecx = ARP entry number (0 based)
4995
  * edi = ptr to buffer where ARP entry will be written
4995
  * edi = ptr to buffer where ARP entry will be written
4996
Returned value:
4996
Returned value:
4997
  * eax = -1 on error
4997
  * eax = -1 on error
4998
Remarks:
4998
Remarks:
4999
	ARP_entry struct is defined in ARP.inc in kernel and currently looks like this:
4999
  * ARP_entry struct is defined in ARP.inc in kernel and currently
-
 
5000
    looks like this:
5000
struct  ARP_entry
5001
struct  ARP_entry
5001
        IP              dd ?
5002
        IP              dd ?
5002
        MAC             dp ?
5003
        MAC             dp ?
5003
        Status          dw ?
5004
        Status          dw ?
5004
        TTL             dw ?
5005
        TTL             dw ?
5005
ends
5006
ends
Line 5006... Line 5007...
5006
 
5007
 
5007
======================================================================
5008
======================================================================
5008
==== Function 76, Protocol 5 - ARP, Subfunction 4, Add ARP entry ====
5009
===== Function 76, Protocol 5 - ARP, Subfunction 4, Add ARP entry ====
5009
======================================================================
5010
======================================================================
5010
Parameters:
5011
Parameters:
5011
  * eax = 76 - function number
5012
  * eax = 76 - function number
5012
  * high half of ebx = 5 (ARP)
5013
  * high half of ebx = 5 (ARP)
5013
  * bh = device number
5014
  * bh = device number
5014
  * bl = 4 (Add ARP entry)
5015
  * bl = 4 (Add ARP entry)
5015
  * esi = ptr to buffer holding ARP entry
5016
  * esi = ptr to buffer holding ARP entry
5016
Returned value:
5017
Returned value:
5017
  * eax = -1 on error
5018
  * eax = -1 on error
5018
Remarks:
5019
Remarks:
Line 5019... Line 5020...
5019
	See previous function for details on ARP entry.
5020
  * See previous function for details on ARP entry.
5020
 
5021
 
5021
======================================================================
5022
======================================================================
5022
=== Function 76, Protocol 5 - ARP, Subfunction 5, Remove ARP entry ====
5023
=== Function 76, Protocol 5 - ARP, Subfunction 5, Remove ARP entry ===
5023
======================================================================
5024
======================================================================
5024
Parameters:
5025
Parameters:
5025
  * eax = 76 - function number
5026
  * eax = 76 - function number
5026
  * high half of ebx = 5 (ARP)
5027
  * high half of ebx = 5 (ARP)
5027
  * bh = device number
5028
  * bh = device number
5028
  * bl = 3 (Read ARP entry)
5029
  * bl = 5 (Remove ARP entry)
5029
  * ecx = ARP entry number (0 based), use -1 to clear whole ARP table.
5030
  * ecx = ARP entry number (0 based), use -1 to clear whole ARP table.
Line 5030... Line 5031...
5030
Returned value:
5031
Returned value: