Changeset 61bfc370 in mainline for uspace/srv/net/tl/tcp/tcp.c
- Timestamp:
- 2011-01-07T18:57:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e08a733
- Parents:
- 7c34b28f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/tcp.c
r7c34b28f r61bfc370 154 154 155 155 /** Port map key. */ 156 char*key;156 uint8_t *key; 157 157 158 158 /** Port map key length. */ … … 358 358 /* Find the destination socket */ 359 359 socket = socket_port_find(&tcp_globals.sockets, 360 ntohs(header->destination_port), ( const char*) src, addrlen);360 ntohs(header->destination_port), (uint8_t *) src, addrlen); 361 361 if (!socket) { 362 362 /* Find the listening destination socket */ 363 363 socket = socket_port_find(&tcp_globals.sockets, 364 ntohs(header->destination_port), SOCKET_MAP_KEY_LISTENING,365 0);364 ntohs(header->destination_port), 365 (uint8_t *) SOCKET_MAP_KEY_LISTENING, 0); 366 366 } 367 367 … … 998 998 /* Find the destination socket */ 999 999 listening_socket = socket_port_find(&tcp_globals.sockets, 1000 listening_port, SOCKET_MAP_KEY_LISTENING, 0);1000 listening_port, (uint8_t *) SOCKET_MAP_KEY_LISTENING, 0); 1001 1001 if (!listening_socket || 1002 1002 (listening_socket->socket_id != listening_socket_id)) { … … 1022 1022 1023 1023 rc = socket_port_add(&tcp_globals.sockets, listening_port, socket, 1024 ( const char*) socket_data->addr, socket_data->addrlen);1024 (uint8_t *) socket_data->addr, socket_data->addrlen); 1025 1025 assert(socket == socket_port_find(&tcp_globals.sockets, listening_port, 1026 ( const char*) socket_data->addr, socket_data->addrlen));1026 (uint8_t *) socket_data->addr, socket_data->addrlen)); 1027 1027 1028 1028 // rc = socket_bind_free_port(&tcp_globals.sockets, socket, … … 2109 2109 2110 2110 /* Copy the key */ 2111 operation_timeout->key = (( char*) operation_timeout) +2111 operation_timeout->key = ((uint8_t *) operation_timeout) + 2112 2112 sizeof(*operation_timeout); 2113 2113 operation_timeout->key_length = socket->key_length;
Note:
See TracChangeset
for help on using the changeset viewer.