Changeset 71b00dcc in mainline for uspace/srv/net/tl/icmp/icmp_api.c


Ignore:
Timestamp:
2010-03-07T22:51:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (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.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/icmp/icmp_api.c

    rb5cbff4 r71b00dcc  
    5252#include "icmp_messages.h"
    5353
    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;
     54int 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;
    5757
    58         if( addrlen <= 0 ){
     58        if(addrlen <= 0){
    5959                return EINVAL;
    6060        }
    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);
    6262        // 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);
    6464        // 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;
    6868}
    6969
Note: See TracChangeset for help on using the changeset viewer.