Changeset 60ab6c3 in mainline for uspace/srv/net/tl
- Timestamp:
- 2010-03-10T05:46:54Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5782081
- Parents:
- 71b00dcc (diff), b48ebd19 (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. - Location:
- uspace/srv/net/tl
- Files:
-
- 4 edited
-
icmp/icmp.c (modified) (1 diff)
-
icmp/icmp_client.c (modified) (2 diffs)
-
tcp/tcp.c (modified) (2 diffs)
-
udp/udp.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp.c
r71b00dcc r60ab6c3 41 41 #include <fibril_synch.h> 42 42 #include <stdint.h> 43 #include <string.h> 43 44 44 45 #include <ipc/ipc.h> -
uspace/srv/net/tl/icmp/icmp_client.c
r71b00dcc r60ab6c3 37 37 38 38 #include <errno.h> 39 //#include <stdio.h> 39 40 #ifdef CONFIG_DEBUG 41 #include <stdio.h> 42 #endif 40 43 41 44 #include <sys/types.h> … … 70 73 } 71 74 // remove debug dump 72 // printf("ICMP error %d (%d) in packet %d\n", header->type, header->code, packet_get_id(packet)); 75 #ifdef CONFIG_DEBUG 76 printf("ICMP error %d (%d) in packet %d\n", header->type, header->code, packet_get_id(packet)); 77 #endif 73 78 return sizeof(icmp_header_t); 74 79 } -
uspace/srv/net/tl/tcp/tcp.c
r71b00dcc r60ab6c3 1241 1241 } 1242 1242 1243 // release the application phone 1244 ipc_hangup(app_phone); 1245 1243 1246 printf("release\n"); 1244 1247 // release all local sockets … … 1277 1280 // TODO release as connection lost 1278 1281 //tcp_refresh_socket_data(socket_data); 1282 fibril_rwlock_write_unlock(socket_data->local_lock); 1279 1283 }else{ 1280 1284 // retransmit 1281 tcp_retransmit_packet(socket, socket_data, timeout->sequence_number);1282 }1283 fibril_rwlock_write_unlock(socket_data->local_lock);1285 // tcp_retransmit_packet(socket, socket_data, timeout->sequence_number); 1286 fibril_rwlock_write_unlock(socket_data->local_lock); 1287 } 1284 1288 }else{ 1285 1289 fibril_mutex_lock(&socket_data->operation.mutex); -
uspace/srv/net/tl/udp/udp.c
r71b00dcc r60ab6c3 508 508 } 509 509 510 // release the application phone 511 ipc_hangup(app_phone); 512 510 513 // release all local sockets 511 514 socket_cores_release(udp_globals.net_phone, &local_sockets, &udp_globals.sockets, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
