Changeset b5e68c8 in mainline for uspace/lib/c/generic/net/icmp_api.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/c/generic/net/icmp_api.c

    re80329d6 rb5e68c8  
    4141#include <net/modules.h>
    4242#include <net/ip_codes.h>
    43 
    4443#include <async.h>
    4544#include <sys/types.h>
    4645#include <sys/time.h>
    4746#include <errno.h>
    48 
    49 #include <ipc/ipc.h>
    5047#include <ipc/services.h>
    5148#include <ipc/icmp.h>
     
    6663 * @param[in] addr      The target host address.
    6764 * @param[in] addrlen   The torget host address length.
    68  * @returns             ICMP_ECHO on success.
    69  * @returns             ETIMEOUT if the reply has not arrived before the
     65 * @return              ICMP_ECHO on success.
     66 * @return              ETIMEOUT if the reply has not arrived before the
    7067 *                      timeout.
    71  * @returns             ICMP type of the received error notification.
    72  * @returns             EINVAL if the addrlen parameter is less or equal to
     68 * @return              ICMP type of the received error notification.
     69 * @return              EINVAL if the addrlen parameter is less or equal to
    7370 *                      zero.
    74  * @returns             ENOMEM if there is not enough memory left.
    75  * @returns             EPARTY if there was an internal error.
     71 * @return              ENOMEM if there is not enough memory left.
     72 * @return              EPARTY if there was an internal error.
    7673 */
    7774int
     
    8178{
    8279        aid_t message_id;
    83         ipcarg_t result;
     80        sysarg_t result;
    8481
    8582        if (addrlen <= 0)
     
    8784
    8885        message_id = async_send_5(icmp_phone, NET_ICMP_ECHO, size, timeout, ttl,
    89             tos, (ipcarg_t) dont_fragment, NULL);
     86            tos, (sysarg_t) dont_fragment, NULL);
    9087
    91         // send the address
     88        /* Send the address */
    9289        async_data_write_start(icmp_phone, addr, (size_t) addrlen);
    9390
Note: See TracChangeset for help on using the changeset viewer.