Changeset 26e7d6d in mainline for uspace/lib/c/generic/net/icmp_api.c
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (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
r3842a955 r26e7d6d 42 42 #include <net/ip_codes.h> 43 43 #include <async.h> 44 #include <async_obsolete.h>45 44 #include <sys/types.h> 46 45 #include <sys/time.h> … … 55 54 * timeout occurs. 56 55 * 57 * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls.56 * @param[in] sess The ICMP session. 58 57 * @param[in] size The message data length in bytes. 59 58 * @param[in] timeout The timeout in milliseconds. … … 74 73 */ 75 74 int 76 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, 77 76 ip_tos_t tos, int dont_fragment, const struct sockaddr *addr, 78 77 socklen_t addrlen) … … 83 82 if (addrlen <= 0) 84 83 return EINVAL; 85 86 message_id = async_obsolete_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, 87 88 tos, (sysarg_t) dont_fragment, NULL); 88 89 89 90 /* Send the address */ 90 async_obsolete_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); 91 94 92 95 async_wait_for(message_id, &result);
Note:
See TracChangeset
for help on using the changeset viewer.