Changes in uspace/lib/net/tl/icmp_remote.c [a26b9e3:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/icmp_remote.c
ra26b9e3 rffa2c8ef 33 33 /** @file 34 34 * ICMP interface implementation for remote modules. 35 * @see icmp_ interface.h35 * @see icmp_remote.h 36 36 */ 37 37 38 #include <icmp_ interface.h>38 #include <icmp_remote.h> 39 39 #include <net/modules.h> 40 40 #include <packet_client.h> … … 42 42 #include <async.h> 43 43 #include <errno.h> 44 #include <ipc/ipc.h>45 44 #include <ipc/services.h> 46 45 #include <ipc/icmp.h> … … 57 56 * @param[in] mtu The error MTU value. 58 57 * @param[in] packet The original packet. 59 * @return sEOK on success.60 * @return sEPERM if the ICMP error notifications are disabled.61 * @return sENOMEM 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. 62 61 */ 63 62 int 64 63 icmp_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) 66 65 { 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); 69 68 return EOK; 70 69 } … … 78 77 * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls. 79 78 * @param[in] packet The original packet. 80 * @return sEOK on success.81 * @return sEPERM if the ICMP error notifications are disabled.82 * @return sENOMEM 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. 83 82 */ 84 int icmp_source_quench_msg(int icmp_phone, packet_t packet)83 int icmp_source_quench_msg(int icmp_phone, packet_t *packet) 85 84 { 86 85 async_msg_2(icmp_phone, NET_ICMP_SOURCE_QUENCH, 0, 87 ( ipcarg_t) packet_get_id(packet));86 (sysarg_t) packet_get_id(packet)); 88 87 return EOK; 89 88 } … … 98 97 * @param[in] code The error specific code. 99 98 * @param[in] packet The original packet. 100 * @return sEOK on success.101 * @return sEPERM if the ICMP error notifications are disabled.102 * @return sENOMEM 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. 103 102 */ 104 int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t packet)103 int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t *packet) 105 104 { 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)); 108 107 return EOK; 109 108 } … … 119 118 * @param[in] pointer The problematic parameter offset. 120 119 * @param[in] packet The original packet. 121 * @return sEOK on success.122 * @return sEPERM if the ICMP error notifications are disabled.123 * @return sENOMEM 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. 124 123 */ 125 124 int 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) 127 126 { 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); 130 129 return EOK; 131 130 }
Note:
See TracChangeset
for help on using the changeset viewer.