Changes in uspace/srv/net/tcp/tcp.c [2989c7e:9787a93] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/tcp.c
r2989c7e r9787a93 1 1 /* 2 * Copyright (c) 201 5Jiri Svoboda2 * Copyright (c) 2012 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 42 42 #include <io/log.h> 43 43 #include <stdio.h> 44 #include <stdlib.h>45 44 #include <task.h> 46 45 47 #include "conn.h"48 46 #include "ncsim.h" 49 47 #include "pdu.h" 50 48 #include "rqueue.h" 51 #include "s ervice.h"49 #include "sock.h" 52 50 #include "std.h" 53 51 #include "tcp.h" … … 161 159 { 162 160 tcp_segment_t *dseg; 163 inet_ep2_t rident;161 tcp_sockpair_t rident; 164 162 165 163 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_received_pdu()"); … … 179 177 180 178 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_init()"); 181 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 179 189 180 tcp_rqueue_init(); … … 201 192 } 202 193 203 rc = tcp_s ervice_init();194 rc = tcp_sock_init(); 204 195 if (rc != EOK) { 205 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing s ervice.");196 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing socket service."); 206 197 return ENOENT; 207 198 }
Note:
See TracChangeset
for help on using the changeset viewer.