Changeset eb522e8 in mainline for uspace/lib/net/il/ip_remote.c


Ignore:
Timestamp:
2011-06-01T08:43:42Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (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:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

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

    r9e2e715 reb522e8  
    3636 *
    3737 * @see ip_interface.h
    38  * @see il_interface.h
     38 * @see il_remote.h
    3939 *
    4040 */
     
    6767{
    6868        return (int) async_req_4_0(ip_phone, NET_IP_ADD_ROUTE,
    69             (ipcarg_t) device_id, (ipcarg_t) gateway.s_addr,
    70             (ipcarg_t) address.s_addr, (ipcarg_t) netmask.s_addr);
     69            (sysarg_t) device_id, (sysarg_t) gateway.s_addr,
     70            (sysarg_t) address.s_addr, (sysarg_t) netmask.s_addr);
    7171}
    7272
     
    7878 * @param[in] me        The requesting module service.
    7979 * @param[in] receiver  The message receiver. Used for remote connection.
    80  * @returns             The phone of the needed service.
    81  * @returns             EOK on success.
    82  * @returns             Other error codes as defined for the bind_service()
     80 * @return              The phone of the needed service.
     81 * @return              EOK on success.
     82 * @return              Other error codes as defined for the bind_service()
    8383 *                      function.
    8484 */
     
    8686    async_client_conn_t receiver)
    8787{
    88         return (int) bind_service(service, (ipcarg_t) protocol, me, service,
     88        return (int) bind_service(service, (sysarg_t) protocol, me, service,
    8989            receiver);
    9090}
     
    9393 *
    9494 * @param service       The IP module service. Ignored parameter.
    95  * @returns             The IP module phone on success.
     95 * @return              The IP module phone on success.
    9696 */
    9797int ip_connect_module(services_t service)
     
    121121    services_t service)
    122122{
    123         return generic_device_req_remote(ip_phone, NET_IL_DEVICE, device_id, 0,
     123        return generic_device_req_remote(ip_phone, NET_IP_DEVICE, device_id, 0,
    124124            service);
    125125}
     
    151151        ipc_call_t answer;
    152152        aid_t message_id = async_send_1(ip_phone, NET_IP_GET_ROUTE,
    153             (ipcarg_t) protocol, &answer);
     153            (sysarg_t) protocol, &answer);
    154154       
    155155        if ((async_data_write_start(ip_phone, destination, addrlen) == EOK) &&
     
    164164        }
    165165       
    166         ipcarg_t result;
     166        sysarg_t result;
    167167        async_wait_for(message_id, &result);
    168168       
     
    170170                free(*header);
    171171        else
    172                 *device_id = IPC_GET_DEVICE(&answer);
     172                *device_id = IPC_GET_DEVICE(answer);
    173173       
    174174        return (int) result;
     
    186186 */
    187187int ip_packet_size_req_remote(int ip_phone, device_id_t device_id,
    188     packet_dimension_ref packet_dimension)
    189 {
    190         return generic_packet_size_req_remote(ip_phone, NET_IL_PACKET_SPACE,
     188    packet_dimension_t *packet_dimension)
     189{
     190        return generic_packet_size_req_remote(ip_phone, NET_IP_PACKET_SPACE,
    191191            device_id, packet_dimension);
    192192}
     
    204204 */
    205205int 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)
    207207{
    208208        return generic_received_msg_remote(ip_phone, NET_IP_RECEIVED_ERROR,
     
    225225 *                      function.
    226226 */
    227 int ip_send_msg_remote(int ip_phone, device_id_t device_id, packet_t packet,
     227int ip_send_msg_remote(int ip_phone, device_id_t device_id, packet_t *packet,
    228228    services_t sender, services_t error)
    229229{
    230         return generic_send_msg_remote(ip_phone, NET_IL_SEND, device_id,
     230        return generic_send_msg_remote(ip_phone, NET_IP_SEND, device_id,
    231231            packet_get_id(packet), sender, error);
    232232}
     
    244244{
    245245        return (int) async_req_2_0(ip_phone, NET_IP_SET_GATEWAY,
    246             (ipcarg_t) device_id, (ipcarg_t) gateway.s_addr);
     246            (sysarg_t) device_id, (sysarg_t) gateway.s_addr);
    247247}
    248248
Note: See TracChangeset for help on using the changeset viewer.