Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/tl/icmp_remote.c

    rffa2c8ef ra26b9e3  
    3333/** @file
    3434 * ICMP interface implementation for remote modules.
    35  * @see icmp_remote.h
     35 * @see icmp_interface.h
    3636 */
    3737
    38 #include <icmp_remote.h>
     38#include <icmp_interface.h>
    3939#include <net/modules.h>
    4040#include <packet_client.h>
     
    4242#include <async.h>
    4343#include <errno.h>
     44#include <ipc/ipc.h>
    4445#include <ipc/services.h>
    4546#include <ipc/icmp.h>
     
    5657 * @param[in] mtu       The error MTU value.
    5758 * @param[in] packet    The original packet.
    58  * @return              EOK on success.
    59  * @return              EPERM if the ICMP error notifications are disabled.
    60  * @return              ENOMEM if there is not enough memory left.
     59 * @returns             EOK on success.
     60 * @returns             EPERM if the ICMP error notifications are disabled.
     61 * @returns             ENOMEM if there is not enough memory left.
    6162 */
    6263int
    6364icmp_destination_unreachable_msg(int icmp_phone, icmp_code_t code,
    64     icmp_param_t mtu, packet_t *packet)
     65    icmp_param_t mtu, packet_t packet)
    6566{
    66         async_msg_3(icmp_phone, NET_ICMP_DEST_UNREACH, (sysarg_t) code,
    67             (sysarg_t) packet_get_id(packet), (sysarg_t) mtu);
     67        async_msg_3(icmp_phone, NET_ICMP_DEST_UNREACH, (ipcarg_t) code,
     68            (ipcarg_t) packet_get_id(packet), (ipcarg_t) mtu);
    6869        return EOK;
    6970}
     
    7778 * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls.
    7879 * @param[in] packet    The original packet.
    79  * @return              EOK on success.
    80  * @return              EPERM if the ICMP error notifications are disabled.
    81  * @return              ENOMEM if there is not enough memory left.
     80 * @returns             EOK on success.
     81 * @returns             EPERM if the ICMP error notifications are disabled.
     82 * @returns             ENOMEM if there is not enough memory left.
    8283 */
    83 int icmp_source_quench_msg(int icmp_phone, packet_t *packet)
     84int icmp_source_quench_msg(int icmp_phone, packet_t packet)
    8485{
    8586        async_msg_2(icmp_phone, NET_ICMP_SOURCE_QUENCH, 0,
    86             (sysarg_t) packet_get_id(packet));
     87            (ipcarg_t) packet_get_id(packet));
    8788        return EOK;
    8889}
     
    9798 * @param[in] code      The error specific code.
    9899 * @param[in] packet    The original packet.
    99  * @return              EOK on success.
    100  * @return              EPERM if the ICMP error notifications are disabled.
    101  * @return              ENOMEM if there is not enough memory left.
     100 * @returns             EOK on success.
     101 * @returns             EPERM if the ICMP error notifications are disabled.
     102 * @returns             ENOMEM if there is not enough memory left.
    102103 */
    103 int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t *packet)
     104int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t packet)
    104105{
    105         async_msg_2(icmp_phone, NET_ICMP_TIME_EXCEEDED, (sysarg_t) code,
    106             (sysarg_t) packet_get_id(packet));
     106        async_msg_2(icmp_phone, NET_ICMP_TIME_EXCEEDED, (ipcarg_t) code,
     107            (ipcarg_t) packet_get_id(packet));
    107108        return EOK;
    108109}
     
    118119 * @param[in] pointer   The problematic parameter offset.
    119120 * @param[in] packet    The original packet.
    120  * @return              EOK on success.
    121  * @return              EPERM if the ICMP error notifications are disabled.
    122  * @return              ENOMEM if there is not enough memory left.
     121 * @returns             EOK on success.
     122 * @returns             EPERM if the ICMP error notifications are disabled.
     123 * @returns             ENOMEM if there is not enough memory left.
    123124 */
    124125int icmp_parameter_problem_msg(int icmp_phone, icmp_code_t code,
    125     icmp_param_t pointer, packet_t *packet)
     126    icmp_param_t pointer, packet_t packet)
    126127{
    127         async_msg_3(icmp_phone, NET_ICMP_PARAMETERPROB, (sysarg_t) code,
    128             (sysarg_t) packet_get_id(packet), (sysarg_t) pointer);
     128        async_msg_3(icmp_phone, NET_ICMP_PARAMETERPROB, (ipcarg_t) code,
     129            (ipcarg_t) packet_get_id(packet), (ipcarg_t) pointer);
    129130        return EOK;
    130131}
Note: See TracChangeset for help on using the changeset viewer.