Changeset 1a0fb3f8 in mainline for uspace/srv/net/tl/icmp


Ignore:
Timestamp:
2010-01-04T22:47:30Z (16 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ede63e4
Parents:
b648ae4
Message:

+ icmp and libsocket timeouting connecting

Location:
uspace/srv/net/tl/icmp
Files:
2 edited

Legend:

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

    rb648ae4 r1a0fb3f8  
    4545#include <ipc/services.h>
    4646
     47#include <sys/time.h>
    4748#include <sys/types.h>
    4849
     
    508509}
    509510
    510 int icmp_connect_module( services_t service ){
     511int icmp_connect_module( services_t service, suseconds_t timeout ){
    511512        icmp_echo_ref   echo_data;
    512513        icmp_param_t    id;
  • uspace/srv/net/tl/icmp/icmp_common.c

    rb648ae4 r1a0fb3f8  
    4545#include "icmp_messages.h"
    4646
    47 int icmp_connect_module( services_t service ){
     47int icmp_connect_module( services_t service, suseconds_t timeout ){
    4848        int     phone;
    4949
    50         phone = connect_to_service( SERVICE_ICMP );
     50        phone = connect_to_service_timeout( SERVICE_ICMP, timeout );
    5151        if( phone >= 0 ){
    5252                async_req_0_0( phone, NET_ICMP_INIT );
Note: See TracChangeset for help on using the changeset viewer.