Changes in uspace/lib/net/il/ip_remote.c [797b704:d3cdb7f0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/ip_remote.c
r797b704 rd3cdb7f0 36 36 * 37 37 * @see ip_interface.h 38 * @see il_ remote.h38 * @see il_interface.h 39 39 * 40 40 */ … … 67 67 { 68 68 return (int) async_req_4_0(ip_phone, NET_IP_ADD_ROUTE, 69 ( sysarg_t) device_id, (sysarg_t) gateway.s_addr,70 ( sysarg_t) address.s_addr, (sysarg_t) netmask.s_addr);69 (ipcarg_t) device_id, (ipcarg_t) gateway.s_addr, 70 (ipcarg_t) address.s_addr, (ipcarg_t) netmask.s_addr); 71 71 } 72 72 … … 78 78 * @param[in] me The requesting module service. 79 79 * @param[in] receiver The message receiver. Used for remote connection. 80 * @return The phone of the needed service.81 * @return EOK on success.82 * @return Other error codes as defined for the bind_service()80 * @returns The phone of the needed service. 81 * @returns EOK on success. 82 * @returns Other error codes as defined for the bind_service() 83 83 * function. 84 84 */ … … 86 86 async_client_conn_t receiver) 87 87 { 88 return (int) bind_service(service, ( sysarg_t) protocol, me, service,88 return (int) bind_service(service, (ipcarg_t) protocol, me, service, 89 89 receiver); 90 90 } … … 93 93 * 94 94 * @param service The IP module service. Ignored parameter. 95 * @return The IP module phone on success.95 * @returns The IP module phone on success. 96 96 */ 97 97 int ip_connect_module(services_t service) … … 121 121 services_t service) 122 122 { 123 return generic_device_req_remote(ip_phone, NET_I P_DEVICE, device_id, 0,123 return generic_device_req_remote(ip_phone, NET_IL_DEVICE, device_id, 0, 124 124 service); 125 125 } … … 151 151 ipc_call_t answer; 152 152 aid_t message_id = async_send_1(ip_phone, NET_IP_GET_ROUTE, 153 ( sysarg_t) protocol, &answer);153 (ipcarg_t) protocol, &answer); 154 154 155 155 if ((async_data_write_start(ip_phone, destination, addrlen) == EOK) && … … 164 164 } 165 165 166 sysarg_t result;166 ipcarg_t result; 167 167 async_wait_for(message_id, &result); 168 168 … … 170 170 free(*header); 171 171 else 172 *device_id = IPC_GET_DEVICE( answer);172 *device_id = IPC_GET_DEVICE(&answer); 173 173 174 174 return (int) result; … … 186 186 */ 187 187 int ip_packet_size_req_remote(int ip_phone, device_id_t device_id, 188 packet_dimension_ t *packet_dimension)189 { 190 return generic_packet_size_req_remote(ip_phone, NET_I P_PACKET_SPACE,188 packet_dimension_ref packet_dimension) 189 { 190 return generic_packet_size_req_remote(ip_phone, NET_IL_PACKET_SPACE, 191 191 device_id, packet_dimension); 192 192 } … … 204 204 */ 205 205 int ip_received_error_msg_remote(int ip_phone, device_id_t device_id, 206 packet_t *packet, services_t target, services_t error)206 packet_t packet, services_t target, services_t error) 207 207 { 208 208 return generic_received_msg_remote(ip_phone, NET_IP_RECEIVED_ERROR, … … 225 225 * function. 226 226 */ 227 int ip_send_msg_remote(int ip_phone, device_id_t device_id, packet_t *packet,227 int ip_send_msg_remote(int ip_phone, device_id_t device_id, packet_t packet, 228 228 services_t sender, services_t error) 229 229 { 230 return generic_send_msg_remote(ip_phone, NET_I P_SEND, device_id,230 return generic_send_msg_remote(ip_phone, NET_IL_SEND, device_id, 231 231 packet_get_id(packet), sender, error); 232 232 } … … 244 244 { 245 245 return (int) async_req_2_0(ip_phone, NET_IP_SET_GATEWAY, 246 ( sysarg_t) device_id, (sysarg_t) gateway.s_addr);246 (ipcarg_t) device_id, (ipcarg_t) gateway.s_addr); 247 247 } 248 248
Note:
See TracChangeset
for help on using the changeset viewer.