Ignore:
File:
1 edited

Legend:

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

    rffa2c8ef r014dd57b  
    4444#include <errno.h>
    4545
     46#include <ipc/ipc.h>
    4647#include <ipc/services.h>
    4748#include <ipc/net.h>
     
    6364#include <ip_interface.h>
    6465#include <icmp_client.h>
    65 #include <icmp_remote.h>
     66#include <icmp_interface.h>
    6667#include <net_interface.h>
    6768#include <socket_core.h>
     
    12031204}
    12041205
    1205 /** Per-connection initialization
    1206  *
    1207  */
    1208 void tl_connection(void)
    1209 {
    1210 }
    1211 
    12121206/** Processes the TCP message.
    12131207 *
     
    12231217 * @see IS_NET_TCP_MESSAGE()
    12241218 */
    1225 int tl_message(ipc_callid_t callid, ipc_call_t *call,
     1219int tl_module_message(ipc_callid_t callid, ipc_call_t *call,
    12261220    ipc_call_t *answer, size_t *answer_count)
    12271221{
     
    15051499
    15061500        /* Release the application phone */
    1507         async_hangup(app_phone);
     1501        ipc_hangup(app_phone);
    15081502
    15091503        printf("release\n");
     
    24532447                                    SERVICE_TCP, IPC_GET_ERROR(*icall));
    24542448                       
    2455                         async_answer_0(iid, (sysarg_t) rc);
     2449                        ipc_answer_0(iid, (sysarg_t) rc);
    24562450                        break;
    24572451                default:
    2458                         async_answer_0(iid, (sysarg_t) ENOTSUP);
     2452                        ipc_answer_0(iid, (sysarg_t) ENOTSUP);
    24592453                }
    24602454               
     
    24782472        tcp_globals.net_phone = net_phone;
    24792473       
    2480         tcp_globals.icmp_phone = icmp_connect_module(ICMP_CONNECT_TIMEOUT);
     2474        tcp_globals.icmp_phone = icmp_connect_module(SERVICE_ICMP,
     2475            ICMP_CONNECT_TIMEOUT);
    24812476        tcp_globals.ip_phone = ip_bind_service(SERVICE_IP, IPPROTO_TCP,
    24822477            SERVICE_TCP, tcp_receiver);
Note: See TracChangeset for help on using the changeset viewer.