Changeset eb522e8 in mainline for uspace/lib/net/tl/icmp_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/tl/icmp_remote.c

    r9e2e715 reb522e8  
    3333/** @file
    3434 * ICMP interface implementation for remote modules.
    35  * @see icmp_interface.h
     35 * @see icmp_remote.h
    3636 */
    3737
    38 #include <icmp_interface.h>
     38#include <icmp_remote.h>
    3939#include <net/modules.h>
    4040#include <packet_client.h>
     
    4242#include <async.h>
    4343#include <errno.h>
    44 #include <ipc/ipc.h>
    4544#include <ipc/services.h>
    4645#include <ipc/icmp.h>
     
    5756 * @param[in] mtu       The error MTU value.
    5857 * @param[in] packet    The original packet.
    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.
     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.
    6261 */
    6362int
    6463icmp_destination_unreachable_msg(int icmp_phone, icmp_code_t code,
    65     icmp_param_t mtu, packet_t packet)
     64    icmp_param_t mtu, packet_t *packet)
    6665{
    67         async_msg_3(icmp_phone, NET_ICMP_DEST_UNREACH, (ipcarg_t) code,
    68             (ipcarg_t) packet_get_id(packet), (ipcarg_t) mtu);
     66        async_msg_3(icmp_phone, NET_ICMP_DEST_UNREACH, (sysarg_t) code,
     67            (sysarg_t) packet_get_id(packet), (sysarg_t) mtu);
    6968        return EOK;
    7069}
     
    7877 * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls.
    7978 * @param[in] packet    The original packet.
    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.
     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.
    8382 */
    84 int icmp_source_quench_msg(int icmp_phone, packet_t packet)
     83int icmp_source_quench_msg(int icmp_phone, packet_t *packet)
    8584{
    8685        async_msg_2(icmp_phone, NET_ICMP_SOURCE_QUENCH, 0,
    87             (ipcarg_t) packet_get_id(packet));
     86            (sysarg_t) packet_get_id(packet));
    8887        return EOK;
    8988}
     
    9897 * @param[in] code      The error specific code.
    9998 * @param[in] packet    The original packet.
    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.
     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.
    103102 */
    104 int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t packet)
     103int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t *packet)
    105104{
    106         async_msg_2(icmp_phone, NET_ICMP_TIME_EXCEEDED, (ipcarg_t) code,
    107             (ipcarg_t) packet_get_id(packet));
     105        async_msg_2(icmp_phone, NET_ICMP_TIME_EXCEEDED, (sysarg_t) code,
     106            (sysarg_t) packet_get_id(packet));
    108107        return EOK;
    109108}
     
    119118 * @param[in] pointer   The problematic parameter offset.
    120119 * @param[in] packet    The original packet.
    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.
     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.
    124123 */
    125124int icmp_parameter_problem_msg(int icmp_phone, icmp_code_t code,
    126     icmp_param_t pointer, packet_t packet)
     125    icmp_param_t pointer, packet_t *packet)
    127126{
    128         async_msg_3(icmp_phone, NET_ICMP_PARAMETERPROB, (ipcarg_t) code,
    129             (ipcarg_t) packet_get_id(packet), (ipcarg_t) pointer);
     127        async_msg_3(icmp_phone, NET_ICMP_PARAMETERPROB, (sysarg_t) code,
     128            (sysarg_t) packet_get_id(packet), (sysarg_t) pointer);
    130129        return EOK;
    131130}
Note: See TracChangeset for help on using the changeset viewer.