Changeset b5e68c8 in mainline for uspace/lib/net/il/arp_remote.c


Ignore:
Timestamp:
2011-05-12T16:49:44Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f36787d7
Parents:
e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/il/arp_remote.c

    re80329d6 rb5e68c8  
    4141#include <async.h>
    4242#include <errno.h>
    43 #include <ipc/ipc.h>
    4443#include <ipc/services.h>
    4544#include <ipc/arp.h>
     
    5251 *
    5352 * @param service       The ARP module service. Ignored parameter.
    54  * @returns             The ARP module phone on success.
     53 * @return              The ARP module phone on success.
    5554 */
    5655int arp_connect_module(services_t service)
     
    6564 *
    6665 * @param[in] arp_phone The ARP module phone used for (semi)remote calls.
    67  * @returns             EOK on success.
     66 * @return              EOK on success.
    6867 */
    6968int arp_clean_cache_req(int arp_phone)
     
    7877 * @param[in] protocol  The requesting protocol service.
    7978 * @param[in] address   The protocol address to be cleared.
    80  * @returns             EOK on success.
    81  * @returns             ENOENT if the mapping is not found.
     79 * @return              EOK on success.
     80 * @return              ENOENT if the mapping is not found.
    8281 */
    8382int
    8483arp_clear_address_req(int arp_phone, device_id_t device_id, services_t protocol,
    85     measured_string_ref address)
     84    measured_string_t *address)
    8685{
    8786        aid_t message_id;
    88         ipcarg_t result;
     87        sysarg_t result;
    8988
    9089        message_id = async_send_2(arp_phone, NET_ARP_CLEAR_ADDRESS,
    91             (ipcarg_t) device_id, protocol, NULL);
     90            (sysarg_t) device_id, protocol, NULL);
    9291        measured_strings_send(arp_phone, address, 1);
    9392        async_wait_for(message_id, &result);
     
    10099 * @param[in] arp_phone The ARP module phone used for (semi)remote calls.
    101100 * @param[in] device_id The device identifier.
    102  * @returns             EOK on success.
    103  * @returns             ENOENT if the device is not found.
     101 * @return              EOK on success.
     102 * @return              ENOENT if the device is not found.
    104103 */
    105104int arp_clear_device_req(int arp_phone, device_id_t device_id)
    106105{
    107106        return (int) async_req_1_0(arp_phone, NET_ARP_CLEAR_DEVICE,
    108             (ipcarg_t) device_id);
     107            (sysarg_t) device_id);
    109108}
    110109
     
    119118 * @param[in] netif     The underlying device network interface layer service.
    120119 * @param[in] address   The local requesting protocol address of the device.
    121  * @returns             EOK on success.
    122  * @returns             EEXIST if the device is already used.
    123  * @returns             ENOMEM if there is not enough memory left.
    124  * @returns             ENOENT if the network interface service is not known.
    125  * @returns             EREFUSED if the network interface service is not
     120 * @return              EOK on success.
     121 * @return              EEXIST if the device is already used.
     122 * @return              ENOMEM if there is not enough memory left.
     123 * @return              ENOENT if the network interface service is not known.
     124 * @return              EREFUSED if the network interface service is not
    126125 *                      responding.
    127  * @returns             Other error codes as defined for the
     126 * @return              Other error codes as defined for the
    128127 *                      nil_packet_get_size() function.
    129  * @returns             Other error codes as defined for the nil_get_addr()
     128 * @return              Other error codes as defined for the nil_get_addr()
    130129 *                      function.
    131  * @returns             Other error codes as defined for the
     130 * @return              Other error codes as defined for the
    132131 *                      nil_get_broadcast_addr() function.
    133132 */
    134133int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol,
    135     services_t netif, measured_string_ref address)
     134    services_t netif, measured_string_t *address)
    136135{
    137136        aid_t message_id;
    138         ipcarg_t result;
     137        sysarg_t result;
    139138
    140139        message_id = async_send_3(arp_phone, NET_ARP_DEVICE,
    141             (ipcarg_t) device_id, protocol, netif, NULL);
     140            (sysarg_t) device_id, protocol, netif, NULL);
    142141        measured_strings_send(arp_phone, address, 1);
    143142        async_wait_for(message_id, &result);
     
    157156 * @param[out] translation The translation of the local protocol address.
    158157 * @param[out] data     The allocated raw translation data container.
    159  * @returns             EOK on success.
    160  * @returns             EINVAL if the address parameter is NULL.
    161  * @returns             EBADMEM if the translation or the data parameters are
     158 * @return              EOK on success.
     159 * @return              EINVAL if the address parameter is NULL.
     160 * @return              EBADMEM if the translation or the data parameters are
    162161 *                      NULL.
    163  * @returns             ENOENT if the mapping is not found.
     162 * @return              ENOENT if the mapping is not found.
    164163 */
    165164int
    166165arp_translate_req(int arp_phone, device_id_t device_id, services_t protocol,
    167     measured_string_ref address, measured_string_ref *translation, char **data)
     166    measured_string_t *address, measured_string_t **translation, uint8_t **data)
    168167{
    169168        return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id,
Note: See TracChangeset for help on using the changeset viewer.