Changes in uspace/srv/net/tl/icmp/icmp_api.c [21580dd:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp_api.c
r21580dd raadf01e 52 52 #include "icmp_messages.h" 53 53 54 int icmp_echo_msg( int icmp_phone, size_t size, mseconds_t timeout, ip_ttl_t ttl, ip_tos_t tos, int dont_fragment, const struct sockaddr * addr, socklen_t addrlen){55 aid_t 56 ipcarg_t 54 int icmp_echo_msg(int icmp_phone, size_t size, mseconds_t timeout, ip_ttl_t ttl, ip_tos_t tos, int dont_fragment, const struct sockaddr * addr, socklen_t addrlen){ 55 aid_t message_id; 56 ipcarg_t result; 57 57 58 if( addrlen <= 0){58 if(addrlen <= 0){ 59 59 return EINVAL; 60 60 } 61 message_id = async_send_5( icmp_phone, NET_ICMP_ECHO, size, timeout, ttl, tos, ( ipcarg_t ) dont_fragment, NULL);61 message_id = async_send_5(icmp_phone, NET_ICMP_ECHO, size, timeout, ttl, tos, (ipcarg_t) dont_fragment, NULL); 62 62 // send the address 63 async_data_write_start( icmp_phone, addr, ( size_t ) addrlen);63 async_data_write_start(icmp_phone, addr, (size_t) addrlen); 64 64 // timeout version may cause inconsistency - there is also an inner timer 65 // return async_wait_timeout( message_id, & result, timeout);66 async_wait_for( message_id, & result);67 return ( int) result;65 // return async_wait_timeout(message_id, &result, timeout); 66 async_wait_for(message_id, &result); 67 return (int) result; 68 68 } 69 69
Note:
See TracChangeset
for help on using the changeset viewer.