Changeset cf3aee19 in mainline for uspace/srv/net/tcp/tcp.c


Ignore:
Timestamp:
2015-06-17T23:45:24Z (9 years ago)
Author:
Michal Koutný <xm.koutny+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
523b17a
Parents:
fc7bf19 (diff), 2654afb (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:

Sync with mainline

File:
1 edited

Legend:

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

    rfc7bf19 rcf3aee19  
    11/*
    2  * Copyright (c) 2012 Jiri Svoboda
     2 * Copyright (c) 2015 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4242#include <io/log.h>
    4343#include <stdio.h>
     44#include <stdlib.h>
    4445#include <task.h>
    4546
     47#include "conn.h"
    4648#include "ncsim.h"
    4749#include "pdu.h"
    4850#include "rqueue.h"
    49 #include "sock.h"
     51#include "service.h"
    5052#include "std.h"
    5153#include "tcp.h"
     
    159161{
    160162        tcp_segment_t *dseg;
    161         tcp_sockpair_t rident;
     163        inet_ep2_t rident;
    162164
    163165        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_received_pdu()");
     
    178180        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_init()");
    179181
     182        rc = tcp_conns_init();
     183        if (rc != EOK) {
     184                assert(rc == ENOMEM);
     185                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing connections");
     186                return ENOMEM;
     187        }
     188
    180189        tcp_rqueue_init();
    181190        tcp_rqueue_fibril_start();
     
    192201        }
    193202
    194         rc = tcp_sock_init();
    195         if (rc != EOK) {
    196                 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing socket service.");
     203        rc = tcp_service_init();
     204        if (rc != EOK) {
     205                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing service.");
    197206                return ENOENT;
    198207        }
Note: See TracChangeset for help on using the changeset viewer.