Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4755 → Rev 4756

/branches/network/uspace/srv/net/include/arp_interface.h
52,11 → 52,11
/** Registers the new device and the requesting protocol service.
* Connects to the network interface layer service.
* Determines the device broadcast address, its address lengths and packet size.
* @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
* @param device_id The new device identifier. Input parameter.
* @param protocol The requesting protocol service. Input parameter.
* @param netif The underlying device network interface layer service. Input parameter.
* @param address The local requesting protocol address of the device. Input parameter.
* @param[in] arp_phone The ARP module phone used for (semi)remote calls.
* @param[in] device_id The new device identifier.
* @param[in] protocol The requesting protocol service.
* @param[in] netif The underlying device network interface layer service.
* @param[in] address The local requesting protocol address of the device.
* @returns EOK on success.
* @returns EEXIST if the device is already used.
* @returns ENOMEM if there is not enough memory left.
71,15 → 71,14
/** Translates the given protocol address to the network interface address.
* Broadcasts the ARP request if the mapping is not found.
* Allocates and returns the needed memory block as the data parameter.
* @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
* @param device_id The device identifier. Input parameter.
* @param protocol The requesting protocol service. Input parameter.
* @param address The local requesting protocol address. Input parameter.
* @param translation The translation of the local protocol address. Output parameter.
* @param data The allocated raw translation data container. Output parameter.
* @param[in] arp_phone The ARP module phone used for (semi)remote calls.
* @param[in] device_id The device identifier.
* @param[in] protocol The requesting protocol service.
* @param[in] address The local requesting protocol address.
* @param[out] translation The translation of the local protocol address.
* @param[out] data The allocated raw translation data container.
* @returns EOK on success.
* @returns EINVAL if the configuration parameter is NULL.
* @returns EINVAL if the count parameter is zero (0).
* @returns EINVAL if the address parameter is NULL.
* @returns EBADMEM if the translation or the data parameters are NULL.
* @returns ENOENT if the mapping is not found.
*/
86,8 → 85,8
int arp_translate_req( int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address, measured_string_ref * translation, char ** data );
 
/** Clears the device cache.
* @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
* @param device_id The device identifier. Input parameter.
* @param[in] arp_phone The ARP module phone used for (semi)remote calls.
* @param[in] device_id The device identifier.
* @returns EOK on success.
* @returns ENOENT if the device is not found.
*/
94,10 → 93,10
int arp_clear_device_req( int arp_phone, device_id_t device_id );
 
/** Clears the given protocol address from the cache.
* @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
* @param device_id The device identifier. Input parameter.
* @param protocol The requesting protocol service. Input parameter.
* @param address The protocol address to be cleared. Input parameter.
* @param[in] arp_phone The ARP module phone used for (semi)remote calls.
* @param[in] device_id The device identifier.
* @param[in] protocol The requesting protocol service.
* @param[in] address The protocol address to be cleared.
* @returns EOK on success.
* @returns ENOENT if the mapping is not found.
*/
104,7 → 103,7
int arp_clear_address_req( int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address );
 
/** Cleans the cache.
* @param arp_phone The ARP module phone used for (semi)remote calls. Input parameter.
* @param[in] arp_phone The ARP module phone used for (semi)remote calls.
* @returns EOK on success.
*/
int arp_clean_cache_req( int arp_phone );