Changeset 048cd69 in mainline for uspace/srv/net/tcp/tcp.c
- Timestamp:
- 2015-06-07T15:41:04Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 204ba47
- Parents:
- 4d11204 (diff), c3f7d37 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/tcp.c
r4d11204 r048cd69 1 1 /* 2 * Copyright (c) 201 2Jiri Svoboda2 * Copyright (c) 2015 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 42 42 #include <io/log.h> 43 43 #include <stdio.h> 44 #include <stdlib.h> 44 45 #include <task.h> 45 46 47 #include "conn.h" 46 48 #include "ncsim.h" 47 49 #include "pdu.h" 48 50 #include "rqueue.h" 49 #include "s ock.h"51 #include "service.h" 50 52 #include "std.h" 51 53 #include "tcp.h" … … 159 161 { 160 162 tcp_segment_t *dseg; 161 tcp_sockpair_t rident;163 inet_ep2_t rident; 162 164 163 165 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_received_pdu()"); … … 178 180 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_init()"); 179 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 180 189 tcp_rqueue_init(); 181 190 tcp_rqueue_fibril_start(); … … 192 201 } 193 202 194 rc = tcp_s ock_init();195 if (rc != EOK) { 196 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing s ocket service.");203 rc = tcp_service_init(); 204 if (rc != EOK) { 205 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing service."); 197 206 return ENOENT; 198 207 }
Note:
See TracChangeset
for help on using the changeset viewer.