Ignore:
File:
1 edited

Legend:

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

    r014dd57b rffa2c8ef  
    4444#include <errno.h>
    4545
    46 #include <ipc/ipc.h>
    4746#include <ipc/services.h>
    4847#include <ipc/net.h>
     
    6463#include <ip_interface.h>
    6564#include <icmp_client.h>
    66 #include <icmp_interface.h>
     65#include <icmp_remote.h>
    6766#include <net_interface.h>
    6867#include <socket_core.h>
     
    12041203}
    12051204
     1205/** Per-connection initialization
     1206 *
     1207 */
     1208void tl_connection(void)
     1209{
     1210}
     1211
    12061212/** Processes the TCP message.
    12071213 *
     
    12171223 * @see IS_NET_TCP_MESSAGE()
    12181224 */
    1219 int tl_module_message(ipc_callid_t callid, ipc_call_t *call,
     1225int tl_message(ipc_callid_t callid, ipc_call_t *call,
    12201226    ipc_call_t *answer, size_t *answer_count)
    12211227{
     
    14991505
    15001506        /* Release the application phone */
    1501         ipc_hangup(app_phone);
     1507        async_hangup(app_phone);
    15021508
    15031509        printf("release\n");
     
    24472453                                    SERVICE_TCP, IPC_GET_ERROR(*icall));
    24482454                       
    2449                         ipc_answer_0(iid, (sysarg_t) rc);
     2455                        async_answer_0(iid, (sysarg_t) rc);
    24502456                        break;
    24512457                default:
    2452                         ipc_answer_0(iid, (sysarg_t) ENOTSUP);
     2458                        async_answer_0(iid, (sysarg_t) ENOTSUP);
    24532459                }
    24542460               
     
    24722478        tcp_globals.net_phone = net_phone;
    24732479       
    2474         tcp_globals.icmp_phone = icmp_connect_module(SERVICE_ICMP,
    2475             ICMP_CONNECT_TIMEOUT);
     2480        tcp_globals.icmp_phone = icmp_connect_module(ICMP_CONNECT_TIMEOUT);
    24762481        tcp_globals.ip_phone = ip_bind_service(SERVICE_IP, IPPROTO_TCP,
    24772482            SERVICE_TCP, tcp_receiver);
Note: See TracChangeset for help on using the changeset viewer.