Ignore:
File:
1 edited

Legend:

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

    re037e20e r779a47d  
    2727 */
    2828
    29 /** @addtogroup libnet
     29/** @addtogroup ip
    3030 * @{
    3131 */
     
    7272}
    7373
    74 /** Creates bidirectional connection with the ip module service and registers
    75  * the message receiver.
    76  *
    77  * @param[in] service   The IP module service.
    78  * @param[in] protocol  The transport layer protocol.
    79  * @param[in] me        The requesting module service.
    80  * @param[in] receiver  The message receiver. Used for remote connection.
    81  * @returns             The phone of the needed service.
    82  * @returns             EOK on success.
    83  * @returns             Other error codes as defined for the bind_service()
    84  *                      function.
    85  */
    8674int ip_bind_service(services_t service, int protocol, services_t me,
    8775    async_client_conn_t receiver)
     
    9179}
    9280
    93 /** Connects to the IP module.
    94  *
    95  * @param service       The IP module service. Ignored parameter.
    96  * @returns             The IP module phone on success.
    97  */
    9881int ip_connect_module(services_t service)
    9982{
     
    127110}
    128111
    129 /** Return the device identifier and the IP pseudo header based on the
    130  * destination address.
     112/** Return the device identifier and the IP pseudo header based on the destination address.
    131113 *
    132114 * @param[in]  ip_phone    The IP module phone used for (semi)remote calls.
     
    155137            (ipcarg_t) protocol, &answer);
    156138       
    157         if ((async_data_write_start(ip_phone, destination, addrlen) == EOK) &&
    158             (async_data_read_start(ip_phone, headerlen,
    159             sizeof(*headerlen)) == EOK) && (*headerlen > 0)) {
     139        if ((async_data_write_start(ip_phone, destination, addrlen) == EOK)
     140            && (async_data_read_start(ip_phone, headerlen, sizeof(*headerlen)) == EOK)
     141            && (*headerlen > 0)) {
    160142                *header = malloc(*headerlen);
    161143                if (*header) {
    162                         if (async_data_read_start(ip_phone, *header,
    163                             *headerlen) != EOK)
     144                        if (async_data_read_start(ip_phone, *header, *headerlen) != EOK)
    164145                                free(*header);
    165146                }
     
    192173    packet_dimension_ref packet_dimension)
    193174{
    194         return generic_packet_size_req_remote(ip_phone, NET_IL_PACKET_SPACE,
    195             device_id, packet_dimension);
     175        return generic_packet_size_req_remote(ip_phone, NET_IL_PACKET_SPACE, device_id,
     176            packet_dimension);
    196177}
    197178
Note: See TracChangeset for help on using the changeset viewer.