Changes in uspace/srv/net/tl/tcp/tcp.c [28a3e74:014dd57b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/srv/net/tl/tcp/tcp.c ¶
r28a3e74 r014dd57b 44 44 #include <errno.h> 45 45 46 #include <ipc/ipc.h> 46 47 #include <ipc/services.h> 47 48 #include <ipc/net.h> … … 63 64 #include <ip_interface.h> 64 65 #include <icmp_client.h> 65 #include <icmp_ remote.h>66 #include <icmp_interface.h> 66 67 #include <net_interface.h> 67 68 #include <socket_core.h> … … 299 300 return tcp_release_and_return(packet, NO_DATA); 300 301 301 #if 0 302 printf("header len %d, port %d \n", TCP_HEADER_LENGTH(header), 303 ntohs(header->destination_port)); 304 #endif 302 // printf("header len %d, port %d \n", TCP_HEADER_LENGTH(header), 303 // ntohs(header->destination_port)); 304 305 305 result = packet_get_addr(packet, (uint8_t **) &src, (uint8_t **) &dest); 306 306 if (result <= 0) … … 1063 1063 tcp_process_acknowledgement(socket, socket_data, header); 1064 1064 1065 socket_data->next_incoming = ntohl(header->sequence_number); /* + 1; */1065 socket_data->next_incoming = ntohl(header->sequence_number); // + 1; 1066 1066 pq_release_remote(tcp_globals.net_phone, packet_get_id(packet)); 1067 1067 socket_data->state = TCP_SOCKET_ESTABLISHED; … … 1204 1204 } 1205 1205 1206 /** Per-connection initialization1207 *1208 */1209 void tl_connection(void)1210 {1211 }1212 1213 1206 /** Processes the TCP message. 1214 1207 * … … 1224 1217 * @see IS_NET_TCP_MESSAGE() 1225 1218 */ 1226 int tl_m essage(ipc_callid_t callid, ipc_call_t *call,1219 int tl_module_message(ipc_callid_t callid, ipc_call_t *call, 1227 1220 ipc_call_t *answer, size_t *answer_count) 1228 1221 { … … 1506 1499 1507 1500 /* Release the application phone */ 1508 async_hangup(app_phone);1501 ipc_hangup(app_phone); 1509 1502 1510 1503 printf("release\n"); … … 1708 1701 if (socket->port > 0) { 1709 1702 socket_ports_exclude(&tcp_globals.sockets, 1710 socket->port , free);1703 socket->port); 1711 1704 socket->port = 0; 1712 1705 } … … 2454 2447 SERVICE_TCP, IPC_GET_ERROR(*icall)); 2455 2448 2456 async_answer_0(iid, (sysarg_t) rc);2449 ipc_answer_0(iid, (sysarg_t) rc); 2457 2450 break; 2458 2451 default: 2459 async_answer_0(iid, (sysarg_t) ENOTSUP);2452 ipc_answer_0(iid, (sysarg_t) ENOTSUP); 2460 2453 } 2461 2454 … … 2479 2472 tcp_globals.net_phone = net_phone; 2480 2473 2481 tcp_globals.icmp_phone = icmp_connect_module(ICMP_CONNECT_TIMEOUT); 2474 tcp_globals.icmp_phone = icmp_connect_module(SERVICE_ICMP, 2475 ICMP_CONNECT_TIMEOUT); 2482 2476 tcp_globals.ip_phone = ip_bind_service(SERVICE_IP, IPPROTO_TCP, 2483 2477 SERVICE_TCP, tcp_receiver); … … 2493 2487 rc = packet_dimensions_initialize(&tcp_globals.dimensions); 2494 2488 if (rc != EOK) { 2495 socket_ports_destroy(&tcp_globals.sockets , free);2489 socket_ports_destroy(&tcp_globals.sockets); 2496 2490 goto out; 2497 2491 }
Note:
See TracChangeset
for help on using the changeset viewer.