Changeset b5e68c8 in mainline for uspace/lib/c/generic/net/icmp_api.c
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/icmp_api.c
re80329d6 rb5e68c8 41 41 #include <net/modules.h> 42 42 #include <net/ip_codes.h> 43 44 43 #include <async.h> 45 44 #include <sys/types.h> 46 45 #include <sys/time.h> 47 46 #include <errno.h> 48 49 #include <ipc/ipc.h>50 47 #include <ipc/services.h> 51 48 #include <ipc/icmp.h> … … 66 63 * @param[in] addr The target host address. 67 64 * @param[in] addrlen The torget host address length. 68 * @return sICMP_ECHO on success.69 * @return sETIMEOUT if the reply has not arrived before the65 * @return ICMP_ECHO on success. 66 * @return ETIMEOUT if the reply has not arrived before the 70 67 * timeout. 71 * @return sICMP type of the received error notification.72 * @return sEINVAL if the addrlen parameter is less or equal to68 * @return ICMP type of the received error notification. 69 * @return EINVAL if the addrlen parameter is less or equal to 73 70 * zero. 74 * @return sENOMEM if there is not enough memory left.75 * @return sEPARTY 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. 76 73 */ 77 74 int … … 81 78 { 82 79 aid_t message_id; 83 ipcarg_t result;80 sysarg_t result; 84 81 85 82 if (addrlen <= 0) … … 87 84 88 85 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); 90 87 91 / / send the address88 /* Send the address */ 92 89 async_data_write_start(icmp_phone, addr, (size_t) addrlen); 93 90
Note:
See TracChangeset
for help on using the changeset viewer.