Changes in uspace/lib/c/generic/net/icmp_api.c [64d2b10:6b82009] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/icmp_api.c
r64d2b10 r6b82009 54 54 * timeout occurs. 55 55 * 56 * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls.56 * @param[in] sess The ICMP session. 57 57 * @param[in] size The message data length in bytes. 58 58 * @param[in] timeout The timeout in milliseconds. … … 73 73 */ 74 74 int 75 icmp_echo_msg( int icmp_phone, size_t size, mseconds_t timeout, ip_ttl_t ttl,75 icmp_echo_msg(async_sess_t *sess, size_t size, mseconds_t timeout, ip_ttl_t ttl, 76 76 ip_tos_t tos, int dont_fragment, const struct sockaddr *addr, 77 77 socklen_t addrlen) … … 82 82 if (addrlen <= 0) 83 83 return EINVAL; 84 85 message_id = async_send_5(icmp_phone, NET_ICMP_ECHO, size, timeout, ttl, 84 85 async_exch_t *exch = async_exchange_begin(sess); 86 87 message_id = async_send_5(exch, NET_ICMP_ECHO, size, timeout, ttl, 86 88 tos, (sysarg_t) dont_fragment, NULL); 87 89 88 90 /* Send the address */ 89 async_data_write_start(icmp_phone, addr, (size_t) addrlen); 91 async_data_write_start(exch, addr, (size_t) addrlen); 92 93 async_exchange_end(exch); 90 94 91 95 async_wait_for(message_id, &result);
Note:
See TracChangeset
for help on using the changeset viewer.