Changeset c028b22 in mainline for uspace/lib/c/generic/net/icmp_api.c
- Timestamp:
- 2011-07-08T17:01:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc1a727
- Parents:
- 4e36219 (diff), 026793d (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
r4e36219 rc028b22 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.