Changeset 7a68fe5 in mainline for uspace/srv/net/tl/tcp/tcp.c
- Timestamp:
- 2011-10-10T06:58:55Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2ea6392
- Parents:
- e68c834 (diff), 80099c19 (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/tl/tcp/tcp.c
re68c834 r7a68fe5 169 169 static int tcp_release_after_timeout(void *); 170 170 171 static int tcp_process_packet( device_id_t, packet_t *, services_t);171 static int tcp_process_packet(nic_device_id_t, packet_t *, services_t); 172 172 static int tcp_connect_core(socket_core_t *, socket_cores_t *, 173 173 struct sockaddr *, socklen_t); … … 177 177 size_t); 178 178 static packet_t *tcp_get_packets_to_send(socket_core_t *, tcp_socket_data_t *); 179 static void tcp_send_packets( device_id_t, packet_t *);179 static void tcp_send_packets(nic_device_id_t, packet_t *); 180 180 181 181 static void tcp_process_acknowledgement(socket_core_t *, tcp_socket_data_t *, … … 205 205 static void tcp_queue_received_end_of_data(socket_core_t *socket); 206 206 207 static int tcp_received_msg( device_id_t, packet_t *, services_t, services_t);207 static int tcp_received_msg(nic_device_id_t, packet_t *, services_t, services_t); 208 208 static int tcp_process_client_messages(async_sess_t *, ipc_callid_t, 209 209 ipc_call_t); … … 220 220 tcp_globals_t tcp_globals; 221 221 222 int tcp_received_msg( device_id_t device_id, packet_t *packet,222 int tcp_received_msg(nic_device_id_t device_id, packet_t *packet, 223 223 services_t receiver, services_t error) 224 224 { … … 238 238 } 239 239 240 int tcp_process_packet( device_id_t device_id, packet_t *packet, services_t error)240 int tcp_process_packet(nic_device_id_t device_id, packet_t *packet, services_t error) 241 241 { 242 242 size_t length; … … 1251 1251 bzero(socket_data, sizeof(*socket_data)); 1252 1252 socket_data->state = TCP_SOCKET_INITIAL; 1253 socket_data->device_id = DEVICE_INVALID_ID;1253 socket_data->device_id = NIC_DEVICE_INVALID_ID; 1254 1254 socket_data->window = NET_DEFAULT_TCP_WINDOW; 1255 1255 socket_data->treshold = socket_data->window; … … 1335 1335 } 1336 1336 if (tl_get_ip_packet_dimension(tcp_globals.ip_sess, 1337 &tcp_globals.dimensions, DEVICE_INVALID_ID,1337 &tcp_globals.dimensions, NIC_DEVICE_INVALID_ID, 1338 1338 &packet_dimension) == EOK) { 1339 1339 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, … … 1651 1651 /* Sent packet? */ 1652 1652 packet = pq_find(socket_data->outgoing, sequence_number); 1653 printf("retransmit %d\n", packet_get_id(packet));1654 1653 if (packet) { 1655 1654 pq_get_order(packet, NULL, &data_length); … … 1790 1789 1791 1790 /* Send the packet */ 1792 printf("connecting %d\n", packet_get_id(packet));1793 1791 tcp_send_packets(socket_data->device_id, packet); 1794 1792 … … 2004 2002 } 2005 2003 2006 void tcp_send_packets( device_id_t device_id, packet_t *packet)2004 void tcp_send_packets(nic_device_id_t device_id, packet_t *packet) 2007 2005 { 2008 2006 packet_t *next;
Note:
See TracChangeset
for help on using the changeset viewer.