Changeset b5e68c8 in mainline for uspace/lib/net/il/arp_remote.c
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/arp_remote.c
re80329d6 rb5e68c8 41 41 #include <async.h> 42 42 #include <errno.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/services.h> 45 44 #include <ipc/arp.h> … … 52 51 * 53 52 * @param service The ARP module service. Ignored parameter. 54 * @return sThe ARP module phone on success.53 * @return The ARP module phone on success. 55 54 */ 56 55 int arp_connect_module(services_t service) … … 65 64 * 66 65 * @param[in] arp_phone The ARP module phone used for (semi)remote calls. 67 * @return sEOK on success.66 * @return EOK on success. 68 67 */ 69 68 int arp_clean_cache_req(int arp_phone) … … 78 77 * @param[in] protocol The requesting protocol service. 79 78 * @param[in] address The protocol address to be cleared. 80 * @return sEOK on success.81 * @return sENOENT if the mapping is not found.79 * @return EOK on success. 80 * @return ENOENT if the mapping is not found. 82 81 */ 83 82 int 84 83 arp_clear_address_req(int arp_phone, device_id_t device_id, services_t protocol, 85 measured_string_ refaddress)84 measured_string_t *address) 86 85 { 87 86 aid_t message_id; 88 ipcarg_t result;87 sysarg_t result; 89 88 90 89 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); 92 91 measured_strings_send(arp_phone, address, 1); 93 92 async_wait_for(message_id, &result); … … 100 99 * @param[in] arp_phone The ARP module phone used for (semi)remote calls. 101 100 * @param[in] device_id The device identifier. 102 * @return sEOK on success.103 * @return sENOENT if the device is not found.101 * @return EOK on success. 102 * @return ENOENT if the device is not found. 104 103 */ 105 104 int arp_clear_device_req(int arp_phone, device_id_t device_id) 106 105 { 107 106 return (int) async_req_1_0(arp_phone, NET_ARP_CLEAR_DEVICE, 108 ( ipcarg_t) device_id);107 (sysarg_t) device_id); 109 108 } 110 109 … … 119 118 * @param[in] netif The underlying device network interface layer service. 120 119 * @param[in] address The local requesting protocol address of the device. 121 * @return sEOK on success.122 * @return sEEXIST if the device is already used.123 * @return sENOMEM if there is not enough memory left.124 * @return sENOENT if the network interface service is not known.125 * @return sEREFUSED if the network interface service is not120 * @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 126 125 * responding. 127 * @return sOther error codes as defined for the126 * @return Other error codes as defined for the 128 127 * nil_packet_get_size() function. 129 * @return sOther error codes as defined for the nil_get_addr()128 * @return Other error codes as defined for the nil_get_addr() 130 129 * function. 131 * @return sOther error codes as defined for the130 * @return Other error codes as defined for the 132 131 * nil_get_broadcast_addr() function. 133 132 */ 134 133 int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol, 135 services_t netif, measured_string_ refaddress)134 services_t netif, measured_string_t *address) 136 135 { 137 136 aid_t message_id; 138 ipcarg_t result;137 sysarg_t result; 139 138 140 139 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); 142 141 measured_strings_send(arp_phone, address, 1); 143 142 async_wait_for(message_id, &result); … … 157 156 * @param[out] translation The translation of the local protocol address. 158 157 * @param[out] data The allocated raw translation data container. 159 * @return sEOK on success.160 * @return sEINVAL if the address parameter is NULL.161 * @return sEBADMEM if the translation or the data parameters are158 * @return EOK on success. 159 * @return EINVAL if the address parameter is NULL. 160 * @return EBADMEM if the translation or the data parameters are 162 161 * NULL. 163 * @return sENOENT if the mapping is not found.162 * @return ENOENT if the mapping is not found. 164 163 */ 165 164 int 166 165 arp_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) 168 167 { 169 168 return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id,
Note:
See TracChangeset
for help on using the changeset viewer.