Subversion Repositories HelenOS

Rev

Rev 4704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4704 Rev 4723
Line 48... Line 48...
48
 *  This interface is used by other modules.
48
 *  This interface is used by other modules.
49
 */
49
 */
50
/*@{*/
50
/*@{*/
51
 
51
 
52
/** Registers the new device and the requesting protocol service.
52
/** Registers the new device and the requesting protocol service.
-
 
53
 *  Connects to the network interface layer service.
53
 *  Determines the device broadcast address, its address lengths and packet size.
54
 *  Determines the device broadcast address, its address lengths and packet size.
54
 *  @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
55
 *  @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
55
 *  @param device_id The new device identifier. Input parameter.
56
 *  @param device_id The new device identifier. Input parameter.
56
 *  @param protocol The requesting protocol service. Input parameter.
57
 *  @param protocol The requesting protocol service. Input parameter.
57
 *  @param netif The underlying device network interface layer service. Input parameter.
58
 *  @param netif The underlying device network interface layer service. Input parameter.
Line 67... Line 68...
67
 */
68
 */
68
int arp_device_req( int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address );
69
int arp_device_req( int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address );
69
 
70
 
70
/** Translates the given protocol address to the network interface address.
71
/** Translates the given protocol address to the network interface address.
71
 *  Broadcasts the ARP request if the mapping is not found.
72
 *  Broadcasts the ARP request if the mapping is not found.
-
 
73
 *  Allocates and returns the needed memory block as the data parameter.
72
 *  @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
74
 *  @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
73
 *  @param device_id The device identifier. Input parameter.
75
 *  @param device_id The device identifier. Input parameter.
74
 *  @param protocol The requesting protocol service. Input parameter.
76
 *  @param protocol The requesting protocol service. Input parameter.
75
 *  @param address The local requesting protocol address. Input parameter.
77
 *  @param address The local requesting protocol address. Input parameter.
76
 *  @param translation The translation of the local protocol address. Output parameter.
78
 *  @param translation The translation of the local protocol address. Output parameter.
77
 *  @param data The raw translation data container. Output parameter.
79
 *  @param data The allocated raw translation data container. Output parameter.
78
 *  @returns EOK on success.
80
 *  @returns EOK on success.
79
 *  @returns EINVAL if the configuration parameter is NULL.
81
 *  @returns EINVAL if the configuration parameter is NULL.
80
 *  @returns EINVAL if the count parameter is zero (0).
82
 *  @returns EINVAL if the count parameter is zero (0).
81
 *  @returns EBADMEM if the translation or the data parameters are NULL.
83
 *  @returns EBADMEM if the translation or the data parameters are NULL.
82
 *  @returns ENOENT if the mapping is not found.
84
 *  @returns ENOENT if the mapping is not found.